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!


previous comments (five pages)   show all comments

cor - 22.12.04 1:27 pm

yeah, it went haywire for a day, all better now though. ages ago, in fact. my hosts' "automatic advertising program" was thankfully removed from corz.org. clearly I need more PayPal buttons onsite.

nah, the big question for me is; how did I miss your comment? a few other things were wonky that day, comment notfification must have been affected. I wonder is there are any others? hmm..

aye, apart from my host's web server disappearing every other night, all night , everything works great! *sigh*

;o)
(or


anonymous - 31.12.04 3:29 pm

This is FANTASTIC parser! Keep up good work! smiley for :D


mattC - 07.01.05 2:46 am

Maybe I seem noobish to ask this question. but i want to know anyway.

Where can i find the whole list of BBCodes available for use and their descriptions? I can't seem to find them anywhere. Though there are bits and pieces here and there. I'm looking for a WHOLE list mind you. :)

TIA

if cor can email me when there is an answer, that would be great!
just want to say that this is a great piece of work! smiley for :D go on cor!


cor - 07.01.05 10:50 am

mattC, thank you!

it's a job I've been putting off.

see, originally this very page was simply that, but the tags got out of control, this page needed to be more, and your post was just the motivation I needed to sit down and do a good old list proper.

I put it here, and I hope you find it useful.

;o)
(or



pat - 09.01.05 12:07 am

There's a colfusion version of this over at nomorepasting thought you might like to know. I think it only goes one way.

pat


cor - 11.01.05 6:12 pm

cool! thanks pat!

Yer right, it only does the bbcode-to-html side of things, but handy nonetheless. Amazing to see someone actually give me credit, usually folks just rip my stuff clean off! hehe

well spotted!

;o)
(or


mattC - 12.01.05 1:27 am

thanks corz. :)


Chris - 12.01.05 12:00 pm

Hi, has anyone ever experienced having problems seeing the advanced options. I have cleared cache and passwords to login to the advanced options and i still cannot see the pages. The links come up at the left hand side but the main page does not change to the options for that selection. Have tried resetting router etc with no luck, any help would be great, thanks in advance, chris. ;-)




cor - 21.01.05 2:44 pm

Hey Chris! you gott ease up on the booze dude! smiley for :lol:

mind you, the comment mechanism has been acting kinda weird these days. could be, erm...

;o)


jdf - 06.02.05 9:35 am

How do i get the parser to NOT accept a comment that has HTML, or strip it out or something like that. Your parser seems to accept both HTML and bbcode and process any script. Is there something I could add to your script to prevent them from using HTML?
Thankx. Great Script.


cor - 11.02.05 3:52 pm

Currently, cbparser will strip HTML links (optional), but leave regular HTML structures alone. It won't process php scripts, of course.

It would be trivial to kill all HTML tags, a line like..
$bb2html = strip_tags($bb2html);
would do that. Drop it inside the function, right after the global statement. (say, line 155, if you are using the current beta) I may add a preference.

I've always seen the ability to drop into html when needed as a great thing, I'm curious, what exactly are you trying to prevent?

;o)
(or


next comments (15 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 autoconfig.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!