Hi guys,

What I want to do is alter each line of text within the CODE tags to auto include something on the end.

Eg. A user types this  -

1
2
3

and the output needs to be

1 - [url=http://none.com/?id=1]Link[/url]
2 - [url=http://none.com/?id=2]Link[/url]
3 - [url=http://none.com/?id=3]Link[/url]

but with the URL tags properly linked.

Is there any way to do this?

ps. I already have the code to explode the variable by \n - I tried using $text but that affects the entire post, not just the bits between the tags.....

Just above it.

Hi guys,

I want to add a link above all URL & CODE bbcode boxes that uses the text from inside the bbcodes.


eg.

http://hereismylink.com

This is what I want to output (but with hyperlink closer to the top of the code box)


Link

http://hereismylink.com