im currently working on converting BB code on my phpbb2 board into html, without using the scripts in it, because it messes up my homepage.
However, it is not as easy as thought.
the
[img] [/img]
tags are easy! but i need to combat the quote and URL tags.
It saves the Quotes as:
[quote:id#] [/quote:id#]
Now, i need a function which will "replace the next "]" (for example) after every [quote:"
So with
[quote:id#]
it will replace the [quote: with that i set and the ] following it, with another string i set.
Does anyone know of this? and also of a function which will be able to cut/copy the text/values between 2 sets of text - for example a URL tag
[ URL] [ /URL] and [ URL=] [ /URL] (this one same as quote tho)
Thanks for any help!