El Dorado

A full-stack community web application written in Ruby/Rails
BBcode documentation, part 1 « El Dorado « almost effortless
 
Tue, 20 May 2008, 12:48pm #1
irkenInvader
Member
Zim
Registered: May, 2008
Last visit: Wed, 04 Jun 2008
Posts: 85

I believe you asked for (and I promised to deliver!) some documentation for your bbcodeizer implementation.

I've uploaded a doc for the basic tags here.

I tried to keep the markup as simple as possible. If you want me to add any class or id properties anywhere, let me know.

I'll upload and post here when I get the other tags done.


Zim wrote:

Invader’s blood marches through my veins like giant, radioactive rubber pants! The pants command me! Do not ignore my veins!

Offline
Tue, 20 May 2008, 1:17pm #2
Trevor
Administrator
Wait-ill-fix-it
Registered: Sep, 2005
Last visit: 10 hours ago
Posts: 226

This is great! Thanks so much for your help. I'll look forward to you finishing up the docs, and I can pull them into El Dorado core.

Offline
Tue, 20 May 2008, 2:53pm #3
irkenInvader
Member
Zim
Registered: May, 2008
Last visit: Wed, 04 Jun 2008
Posts: 85

I updated the "basic" document to include the "hidden" tags (nsfw, spoiler, and hide=).

I couldn't count on importing the javascript from el-dorado, so I had to roll my own simple function to hide the text within a link.

I think it will work for the purposes of examples, though.

Once again, that link is: http://irken.homeip.net/files/basic-bbcode-help.html


Zim wrote:

Invader’s blood marches through my veins like giant, radioactive rubber pants! The pants command me! Do not ignore my veins!

Offline
Tue, 20 May 2008, 3:49pm #4
Trevor
Administrator
Wait-ill-fix-it
Registered: Sep, 2005
Last visit: 10 hours ago
Posts: 226

Cool! Another thing I was thinking of is releasing this BBCode plugin (a hacked-up version of the original BBCodeizer) on github as a fork. Then, other people could potentially use it and/or contribute more stuff. If we did that, perhaps this documentation could go in there, and El Dorado could somehow pull from there, since it wouldn't really be a part of "core" anymore, but it's own plugin.

Offline
Tue, 20 May 2008, 3:51pm #5
Elk
New member
Registered: May, 2008
Last visit: Sat, 31 May 2008
Posts: 4

Thats cool, I was looking for something like that.

I am no regex ninja, but wouldn't it be possible to make an expression that searched for all three "spoiler" "nsfw" and "answer" tags, just seeing as they basically have the the same function. It's not a gripe i have with BBcodizer, rather something i was genuinely wondering about.

Offline
Tue, 20 May 2008, 6:20pm #6
Trevor
Administrator
Wait-ill-fix-it
Registered: Sep, 2005
Last visit: 10 hours ago
Posts: 226

I suppose you could. There's actually "spoiler", "nsfw", and now "hide" that allows you to define custom text to put in there. I think they're probably all useful enough as shortcuts on their own, but you could take out spoiler and nsfw...? I think it might confuse people who were just guessing, though. As for the backend, I think you might be able to simplify things, but it works so I'm not bothered :)

Offline