Search Webmaster Help and Solution

Making BBCode

I want to do something like this:
PHP Code: reverse_template(That was [b]cool![/b], [b]{TEXT}[/b], <span class=old>{TEXT#}</span>);
And have it return something like this:
HTML Code: That was <span class="bold">cool!</span> I have a good plan on how to do it, but I have no clue on how to keep the "cool!" substring intact.

Basically, it will change the string to something like this:

Quote: "That was <span class="bold">{TEXT1}</span>" And then after changing all the tags, itll replace "{TEXT1}" to "cool!"

Again, I have no idea how to get that substring... I want to do something like this:
PHP Code: reverse_template(That was [b]cool![/b], [b]{TEXT}[/b], <span class=old>{TEXT#}</span>);
And have it return something like this:
HTML Code: That was <span class="bold">cool!</span> I have a good plan on how to do it, but I have no clue on how to keep the "cool!" substring intact.

Basically, it will change the string to something like this:

Quote: "That was <span class="bold">{TEXT1}</span>" And then after changing all the tags, itll replace "{TEXT1}" to "cool!"

Again, I have no idea how to get that substring...

View Complete Thread with Replies

Related Items

Query failed: connection to localhost:3354 failed (errno=111, msg=Connection refused).