1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Couple of improvements to BBML/UBB parsing

Discussion in 'Forum announcements' started by dRD, Aug 28, 2006.

  1. dRD

    dRD I hate titles Staff Member

    Joined:
    Jun 10, 1999
    Messages:
    8,312
    Likes Received:
    191
    Trophy Points:
    143
    We have a set of new UBB tags available for testing -- people note that as we're testing these, their functionality and looks might change at any time during the next 1-2 weeks, so please, don't adopt the habit to use them in all your messages -- and don't use these tags in your sig as of yet.

    First of all, now tags will be rendered only if they are closed properly, so "open" tags wont make the site look funny anymore.

    The basic new tags are:

    [ u ] for underline
    [ s ] for strikethrough
    [ pre ] or [ code ] for pasting something you wish to show in unformatted format, with fixed-width font

    Furthermore, a new "experimental" tag is added:

    [ myimg=(standard|thumb) ]image_id[ /myimg ] -- this will render either a standard or thumbnail -sized image from "my.afterdawn.com" images, using the ID of the image.

    The improvements:

    [ quote ] will now also include an option to add a nick of the person you're quoting: [ quote=dRD ]text here[ /quote ] (the =dRD part being the improvement)

    [ url ]http://linkhere.example[ /url ] works as always, but now you can also have text labels for links, using them like this:

    [ url=http://linkhere.example ]An example of a link[ /url ]

    And one, weird, experimental case:

    You can use color red now in your posts, by using

    [ color=red ]the text here you want to have in red[ /color ]

    No other colors are supported as of now and trying to use other colors wont render the tag at all :)

    Some examples:

    This is [s]strikethrough[/s].

    This is [b]bold[/b].

    This is [u]underlined[/u].

    This is [i]italics[/i].

    This is [color=red]in red[/color].

    This is [url=http://www.afterdawn.com]A new type of link[/url]

    [pre]This is pre-formatted text[/pre]

    And this is an example of the "myimg" using "thumb":

    [myimg=thumb]31[/myimg]
     
    Last edited: Aug 28, 2006
  2. LOCOENG

    LOCOENG Moderator Staff Member

    Joined:
    Feb 4, 2005
    Messages:
    10,818
    Likes Received:
    4
    Trophy Points:
    118
    Sweet...once again, you've gone above and beyond expectations. Nice pic as well...wink, wink.
     
  3. tocool4u

    tocool4u Guest

    This is so [bold] cool [/bold]
     
    Last edited by a moderator: Aug 28, 2006
  4. herbsman

    herbsman Moderator Staff Member

    Joined:
    Sep 3, 2002
    Messages:
    3,377
    Likes Received:
    0
    Trophy Points:
    66
    very nice addition , you're doing some good work there homeboy :)
     
  5. The_Fiend

    The_Fiend Guest

    Nice addition dRD, but the implementation of that color code worries me...
     
  6. dRD

    dRD I hate titles Staff Member

    Joined:
    Jun 10, 1999
    Messages:
    8,312
    Likes Received:
    191
    Trophy Points:
    143
    Why?
     
  7. zippyd

    zippyd Active member

    Joined:
    Aug 4, 2004
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    66
    At first thought only having one color available seemed wierd, but then thinking more, I see it as a good thing. It'll give members another option to add emphasis to their posts or make them stand out in some way or another without turning posts into total rainbow skittles meltdown. The only issue I see is people posting in red and red only.... that would be.... well.... unpleasant for lack of better words.

    Can any of these tags be used within each other... ie underlined italics or red urls etc...? <---- Hope I didn't just cause another headache ;)
     
    Last edited: Aug 29, 2006
  8. dRD

    dRD I hate titles Staff Member

    Joined:
    Jun 10, 1999
    Messages:
    8,312
    Likes Received:
    191
    Trophy Points:
    143
    All the tags should be capable for nesting, so yes, you can make stuff to appear in bold, italics and red at the same time.
     
  9. garmoon

    garmoon Regular member

    Joined:
    Oct 7, 2004
    Messages:
    3,971
    Likes Received:
    0
    Trophy Points:
    46
    Seems like great progress to me.
     
  10. LOCOENG

    LOCOENG Moderator Staff Member

    Joined:
    Feb 4, 2005
    Messages:
    10,818
    Likes Received:
    4
    Trophy Points:
    118



    Who would even try posting all in red, that is just absurd
     
    Last edited: Aug 29, 2006
  11. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    people are gonna do it Loco, i'd better keep my sunglasses next to my laptop, next to my paracetamol
     
  12. dRD

    dRD I hate titles Staff Member

    Joined:
    Jun 10, 1999
    Messages:
    8,312
    Likes Received:
    191
    Trophy Points:
    143
    creaky: Don't worry, I have no intention whatsoever to make the forums look like an acid trip from 60s -- no smilies, no avatars and most likely I wont add more than 1 or 2 additional colors available to messages. Same goes for font size changes, I'll most likely add something like [head] to allow making sub-headers for stuff like guides, etc, but no wide range of font size changes you see in other forums.

    Call me old-fashioned and I'll show you thousand sites that make a person with epilepsy to have seizures ;-)
     
  13. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    phew! - old fashioned is fine by me guv :p
     
  14. zippyd

    zippyd Active member

    Joined:
    Aug 4, 2004
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    66
    hmmm wouldn't be talking about mine would you..... ;P
     
  15. arniebear

    arniebear Active member

    Joined:
    Jan 2, 2005
    Messages:
    7,191
    Likes Received:
    0
    Trophy Points:
    96
    This is so cool
     
  16. The_Fiend

    The_Fiend Guest

    /me likes old fashioned too. *Does like creaky and keeps sunglasses close*
     
  17. Lethal_B

    Lethal_B Moderator Staff Member

    Joined:
    Jul 12, 2005
    Messages:
    4,061
    Likes Received:
    6
    Trophy Points:
    68
    Very nice implementations, dRD.

    The colour thing also worries me slightly, as I can see some people posting some ridiculously bright messages, and abusing them, but we'll see.

    Hotlinking is something I have always wanted when posting in the aD forums, so good going.
     
  18. rav009

    rav009 Active member

    Joined:
    Nov 14, 2005
    Messages:
    2,204
    Likes Received:
    0
    Trophy Points:
    66
    Very nice :-D
     
  19. arniebear

    arniebear Active member

    Joined:
    Jan 2, 2005
    Messages:
    7,191
    Likes Received:
    0
    Trophy Points:
    96
    I don't think it will be abused to much, as new posters usually have a hard time with the quotes and img so I doubt if the will get the color........now addicts are another story :)
     
  20. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    i've seen a few uses of bold red sentences this morning, its gawd-awful...
     

Share This Page