Welcome to Gaia! ::


Codebreaking Sex Symbol

8,250 Points
  • Citizen 200
  • Person of Interest 200
  • The Perfect Setup 150
I'm spending my spare time writing a new BBCode parser to replace the two we currently use. It will make improvements that many users have asked for (going back further than the Spring Cleaning of 2012). This will include
  • making the tags parse correctly (as I define it),
  • make BBCode render and look the same on all features across the site,
  • Official documentation


While I'm at it, I would like to ask the community if it has any ideas for improvements.
Are there specific BBCode tags or changes to the BBCode parser that you think would improve Gaia?

Please keep in mind that I need to make sure that all features are safe (from an account standpoint), safe (from an appropriate content standpoint), reasonably quick, and that the features add value -- so I won't be able to accommodate all ideas.
I am, however, willing to listen and accept input and ideas from users and incorporate them if they meet my criteria and many other users agree they would benefit the community.

My suggestion:

I would like to see an "abbreviation" tag like this:
[abbr="ZeroOmega is the BRONY KING!"]ZeroOmega[/abbr]

It would translate into the HTML "ABBR" tag as such:
<abbr title="ZeroOmega is the BRONY KING!" ...>ZeroOmega</abbr>

You will see a special style (maybe a dotted-underline or a different background color) and be able to hover the mouse over the term to see a tooltip of the abbreviation title.

UPDATE: 2013-03-13
I will confirm that these features are in the new parser:
tags:

  • b,
  • i,
  • u,
  • strike,
  • s (alias to "strike" ) **NEW!
  • size (any number between 1 and 128 ),
  • color (most CSS options "#FFF", "#FFFFFF", and english-colors such as "red" and "transparent" ),
  • hilight (background color. inline tag. default: yellow. same color options as "color" tag ) **NEW!
  • spoiler (with an optional title parameter... but character selection for the title is limited. nesting is allowed ),
  • url (no more "malformed URL", it will just plaintext the tag if the URL is not acceptable ),
  • img (same parameter rules as "url" ),
  • imgleft (same parameter rules as "url" ),
  • imgright (same parameter rules as "url" ),
  • quote,
  • code,
  • codein (an inline version of the code tag... suggestions for a different tag name are welcome) **NEW!
  • align (defaults to "left" )
  • left (align)
  • center (align)
  • right (align)
  • justify (align) **NEW!
  • indent (add 15px of space to either the left or the right) **NEW!
  • list (with most/all of the CSS list-style-type"s available as parameters) **NEW options!
  • * (list item... must be under the "list" tag)


The HTML markup is changing (a little for the new BBCode parser features like forums, a lot for the old bbcode parser features like guilds and PMs). It will be more semantic:
b => strong
i => em
strike => del


The security settings of the new BBCode parser are written strictly for the new parser. You will be able to type computer language code into BBCode features and see the expected result... it won't get unnecessarily mangled in overzealous filtering attempts.
Also, stray backslashes will no longer occur and this character pair:
" )
will no longer turn into
& quot; )
... which used to be emoticon-ed.

The same emoticons are available (although I removed the short version of the "cool" emoticon since that is frequently a pain). Emoticons are going to still be required for now... any changes to that will require a lot more work as that will be a per-feature setting.

Plaintext that appears to be a URL will still definitely work if the URL is the only text on the line and might still work if it's on the same line as other non-URL text. Plaintext URLs inside "code" or "codein" tags should no longer be altered.

All tags will auto-close (except perhaps code, codein, url and img, imgleft, imgright, tags).
If a tag is malformed or has an invalid parameter, the parser will not try to fix it for you... it will just skip over the tag.

I will update the WYSIWYG buttons/toolbar to reflect the new/changed tags. Most BBCode features (forum posts, guild posts, guilds home, journals, profile comments, profile "about", signature, marketplace shop, etc) will have the same CSS styling.
In the future, I will try to make a client-side parser as well so you can see your edits without having to submit a form to the server (perhaps even as you type).

I will make a new "BBCode sandbox" feature available to all users so you can test the new code and compare it to existing features. Once that is out and running, I will start migrating features to use the new parser and updating the CSS styles and the WYSIWYG toolbar+buttons.

Eloquent Cutie-Pie

17,000 Points
  • Elocutionist 200
  • Protector of Cuteness 150
  • Senpai's Notice 100
cool domokun stargate

Meriary Brenneven's Significant Otter

Predestined Genius

Great idea! Tooltips!!!!

Quaint Bunny

59,925 Points
  • Bunny Hoarder 150
  • Haunted Haute Couture: Cute 200
  • Stellar Lieutenant 200
An optional title for spoiler tags would be nice.

Celebrating Gaian

carbonphyber

Wouldn't that abbreviation thing be sort of like the spoiler? Except without the word Spoiler there and you being able to substitute the word spoiler for whatever you want? And thus making the SPOILER useless? Not that i'm complaining.
Thanks for giving us the opportunity to help! biggrin

Obsessive Husband

16,275 Points
  • Partygoer 500
  • Perfect Attendance 400
  • Conventioneer 300
[abbr="ZeroOmega is the BRONY KING!"]ZeroOmega[/abbr]
Doesn't work

Wind-up Waffles

Awesome! Thanks for putting this together. smile

Let's see, of the top of my head... why not bring back the old Center tag? Or, I don't know how feasible, but it would be really nice to have List and Table features.

Unholy Lunatic

20,800 Points
  • Abomination 100
  • Jolly Roger 50
  • Jack-pot 100
are different fonts possible?

Saxy Coder

Hm... interesting

Lonely Hellhound

12,875 Points
  • Partygoer 500
  • Hellraiser 500
  • Clambake 200
      If we are talking about BBC code all that I would love right now is for the coding to be the same across all areas of Gaia and not have to switch from one to another.

Unholy Lunatic

20,800 Points
  • Abomination 100
  • Jolly Roger 50
  • Jack-pot 100
Archlord Ayperos
[abbr="ZeroOmega is the BRONY KING!"]ZeroOmega[/abbr]
Doesn't work
he hasn't changed it yet.

Prodigal Inquisitor

14,675 Points
  • Medalist 100
  • Gender Swap 100
  • Invisibility 100
User Image
FUS RO D'aaaaaaw.
Will this affect the BBCodes in guilds, as well?

Unholy Prophet

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬



I don't really get the point of abbreviations, I mean what useful purpose would they serve?



▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Obsessive Husband

16,275 Points
  • Partygoer 500
  • Perfect Attendance 400
  • Conventioneer 300
Pandachan84
Archlord Ayperos
[abbr="ZeroOmega is the BRONY KING!"]ZeroOmega[/abbr]
Doesn't work
he hasn't changed it yet.

I know, I tried it before using xD

Quick Reply

Submit
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum