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 (eleven pages)   show all comments

Ali - 23.09.05 10:20 am

<?php echo 'neat!'; ?>



cor - 27.09.05 8:33 pm

<?php

if ($you == 'patient') {
  
// wait for it..
  
$cbparser = 'all-new';
  
$feature1 = '100% xhtml compliant';
  
$feature2 = '100% css styled';
  
$featurex = 'and more!';
}
// check out corzblog for the latest and greatest developments.
// release date to be announced.

?>


Yeah, I like it!

;o)
(or


cor - 04.10.05 5:30 am

it's back!

Expect this page to be a bit messy for a while because a) the new cbparser is still in progress, and that's the version running here, and b) while cbparser is outputing nice xhtml, corz.org is still messy old htmlsoup.

but you get the idea.

;o)
(or


lalala - 04.10.05 10:32 am

where can I download the latest version? Thanks


lalala - 04.10.05 10:39 am

another suggestion, if I type [B]bla and don't close it, your script should close it automatically for me.


cor - 04.10.05 4:01 pm

You can't! It's not ready for distribution yet (there are still a few bugs to iron out). When it is, it will be in the /beta section, as ever.

Auto-closing tags isn't on the cards, if you need that sort of thing, check out the PEAR package.

;o)
(or


Joe Blonde - 11.10.05 12:35 pm

the new version is looking real good, will it be ready soon? smiley for :D

Joe


Napolux - 20.10.05 10:37 am

Hi there!!!

Great work with this!!!!!!


Rotzi - 17.11.05 7:55 pm

thx dude 4 that script
works fine ;P


cor - 18.11.05 2:03 pm

cheers! feck, I still haven't gotten the new version up yet, as you can see by this page, I got a bit sidetracked in middle of the whole xhtml update thing, but the parser works great, these site comments are 100% validating XHTML! smiley for :lol:

Maybe this weekend, but definitely in your inbox if you are motivated enough to mail me about it. Watch out though, after fixing my gmx settings today (so they disabled that old method, huh) I got a zillion and five mails to get through smiley for :roll:

ho hum..

;o)
(or


tundra - 07.12.05 8:17 pm

2 adam:
the id right after the semicolon is the $bbcode_uid which is generated with make_bbcode_uid function in bbcode.php file. It makes every bbcode in the post unique.


next comments (9 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!