Creating a bbcode with callback

Status
This content is read-only, or is not open for further replies.

Codelizard

Guest
offline
Hey folks,

I need to make a new bbcode to emulate functionality we had in a bbcode back in 1.5. This bbcode is a little involved, so its going to need a callback. For example:

[PTABLE="width:25%,color:#eeff00,bgcolor:green"]
Click to expand...

would be rendered as:

<table style="width:25%;color:$eeff00;background-color:green">
Click to expand...

I need to take everything past the "=" and change all commas to semicolons, and write style="results" into the tag. Its a little too much for a simple html replacement, so i need to use a callback. Theres...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom