corzblog bbcode parser preview



Here it is! My [search engine fodder] bbcode to html parser, and html to bbcode parser [/search engine fodder]!

This is the actual very onsite parser that parses the bbcode of my blogs and site comments, which as well its usual tasks of, well, you know, the parsing stuff, also moonlights doing a cute wee background demo of itself, you're looking at it. it knew you wanted to do that. hit the "preview" button to see at least one half of the parser's bbcode to html/html to bbcode functionality.

The front-end (below) is built-in to the parser, you just call the function and it creates the form. The cool, super-portable JavaScript bbcode buttons and functions come in the package, too. Have fun. Oh, and by the way, output is 100% pure HTML5, or nice plain bbcode, which ever way you look at it, it's free.

button to undo the last javascript change
cbparser quick bbcode guide..
Most common bbtags are supported, and with cbparser's InfiniTags™ you can pretty much just make up tags as you go along. If cbparser can construct valid html tags out of them, it will. Experimentation is the key, and preview often.

A few bbcode examples..
[b]bold[/b], [i]italic[/i], [big]big[/big], [sm]small[/sm], [img]http://foo.com/image.png[/img], [code]code[/code],[code]teletype[/code], [url="http://foo.com" title="foo!"]foo U![/url], and more.. To post code with indentation and/or strange characters, .htaccess, etc., use [pre][/pre] tags.
download cbparser
an HTML5 compliant bbcode parser



Welcome to the comments facility!


dan - 05.06.04 12:50 pm

awesome! thanks!


jay - 09.06.04 7:36 pm

just what I was looking for! excellent!


zie - 10.06.04 2:16 pm

Oh My God..


cor - 10.06.04 9:04 pm

I'll take that as a compliment! (Damn! I need my lol smiley! hey! I added that to cbparser today too, just do :lol: not in the release yet, laterz)

hmm.. maybe I outta make the comments thing cbparser-driven. now that's a good idea! start the clock!!

thanks for comments, it's been a fun thing to code ever since I ripped it out of the innards of corzblog.

just a silly bbcode parser

;o)
(or

really! start the clock!



cor - 10.06.04 9:13 pm

it worked! of course.

I wonked for a bit, the include line is prepended with a "@" which supresses errors, and the error was that I was trying to redeclare the parser functions in the comments include for this cbparser file, and they were already declared in the cbparser file itself! does that make sense? smiley for :lol:

anyhoo, I added a check..
if(!stristr($_SERVER['REQUEST_URI'],'blog')) {
sorta thing, and it all fell into place. remember that if run corzblog and ever decide to latch on some "comment" mechanism!

where was I? oh yeah! it worked! of course, cbparser-powered comments!

;o)
(or

ps.. I need to make the comments text on this page smaller, though.


joe - 15.06.04 10:54 pm

this is more updated than the one in corzblog, can I just drop it in place to upgrade??


cor - 16.06.04 8:23 am

yes!

It's worth grabbing a fresh copy every now and again and doing just that, it gets updated quite a lot in between corzblog releases. the latest stable zip is always here, though often the onsite version (used here and elsewhere) is newer still, though not always without its foibles.

keep a back-up in any case.

;o)
(or



com - 27.06.04 1:34 am

I AM THE COW!


mooooo




wastZzz - 02.07.04 1:32 am

u are teh god


cor - 02.07.04 10:12 pm

heh, yeah wastZzz , I know. smiley for :lol:

hey! thanks simian [comment since deleted -ed], it was only a question of time, wasn't it. Thanks for demonstrating how bbcode survives inside pre tags. Just more fat for the googlebot to chew on. But we need more instances of the word PHP, though. php this, php that.

come on now kiddies!

;o)
(or



next comments (19 pages)

First, confirm that you are human by entering the code you see..

(if you find the code difficult to decipher, click it for a new one!)


gd verification image

 

Welcome to corz.org!

I'm always messing around with the back-end.. See a bug? Wait a minute and try again. Still see a bug? Mail Me!