PDA

View Full Version : Prefixing [URL] links...


devolution
10-25-2007, 11:14 PM
Hi,

I'm trying to prefix any links that users enter with the {URL} tag

So for example if they enter http://www.google.com
The system would provide the link as http://www.mysite.com/redir.php?link=http://www.google.com

I'm trying to do this so I have a prefix/loader page appear before they proceed to the link they clicked on.

Any help appreciated!

Thanks...

Brad
10-25-2007, 11:26 PM
Open the php file located at: /forumroot/includes/class_bbcode.php

Find:

// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";

Above that add:

// Hack for redirection!
$rightlink = "http://www.mysite.com/redir.php?l=$rightlink";

Not Tested

:)

devolution
10-25-2007, 11:27 PM
Thanks for the quick reply! :D

Brad
10-25-2007, 11:30 PM
I edited my post due to a typo, make sure you used the most recent one I posted. :)