![]() |
Change [URL] tag in vB to additional link information?
Hello,
I want to modify the code that links to external links on my vB. I think what I need to modify is the [URL] tag. But where can I do this? For example if a user place a link to www.yahoo.com I want it to change it automatically to www.domain.com/redir.php?url=www.yahoo.com |
more then likely, that tag is in the admin/functions.php file.
anyone, please correct me if I'm wrong...anyways...in admin/functions.php, look for PHP Code:
PHP Code:
|
Thanks.... I'll try it.
|
It worked fine....
But unfortunately when is on a link that passes more than one variable thru the URL the redirect doesn't work as it supposed. For example it works great like this: www.domain.com/redirect.php?url=http://www.yahoo.com or www.domain.com/redirect.php?url=http://google.yahoo.com/bin/query?p=pulsorock but if the link refer has more than one variable in the URL like this: www.domain.com/redirect.php?url=http://google.yahoo.com/bin/query?p=pulsorock&hc=0&hs=0 it doesn't work, because when the other variable is called in the URL by the "&" my redirect script thinks is another variable and doesn't count it as the whole URL. The redirected URL by the script is http://google.yahoo.com/bin/query?p=pulsorock instead of the whole URL that is http://google.yahoo.com/bin/query?p=pulsorock&hc=0&hs=0. Here is the part of my script that generates the redirect, maybe someone can tell me what can I do to fix this. PHP Code:
|
okey, I think I know what you need to do....do a search for the following in the same file you just edit..
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|