View Full Version : help with the bb url code
Limitter
01-31-2004, 08:03 PM
Hi ,
I can't find a option, where I can edit the bb code for [url]!
Where is this option saved? I want to know it, because I want to add to every directlink a redirect script!
In thefunctions_bbcodeparse.php can't find this option!
$rightlink = "http://$rightlink"
my link
$rightlink = "http://http://www.safeurl.de/?$rightlink"
someone can help me ?
Limitter
Zachery
01-31-2004, 08:30 PM
Hi ,
I can't find a option, where I can edit the bb code for [url]!
Where is this option saved? I want to know it, because I want to add to every directlink a redirect script!
In thefunctions_bbcodeparse.php can't find this option!
$rightlink = "http://$rightlink"
my link
$rightlink = "http://http://www.safeurl.de/?$rightlink"
someone can help me ?
Limitter
Youd need to edit the the bbcode file, all bbcode is hard coded now :)
Andreas
01-31-2004, 09:32 PM
In functions_bbcodeparse find
// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
Replace it with
// standard URL hyperlink
$rightlink = urlencode($rightlink);
return "<a href=\"http://www.yoursite.net/derefer.php?url=$rightlink\" target=\"_blank\">$text</a>";
This should work.
Limitter
02-01-2004, 07:13 AM
@ KirbyDE
it does not work
it converts the URL, but the link ( http://www.yoursite.net/derefer.php? ) is not to be found in the URL
Limitter
Andreas
02-01-2004, 11:10 AM
Well, you must replace YOURsite.net with the actual URL of your derefer/redirect-script ;)
Limitter
02-01-2004, 11:15 AM
I have
L.
Limitter
02-01-2004, 11:18 AM
or it goes only with a Script not also with http://www.safeurl.de/?www.site.com
???
L.
Limitter
02-01-2004, 11:23 AM
the right Code
// standard URL hyperlink
$rightlink = urlencode($rightlink);
return "<a href=\"http://anonym.to/?$rightlink\" target=\"_blank\">$text</a>";
Andreas
02-01-2004, 11:36 AM
Dass www.safeurl.de existiert war mir nicht bewusst.
Dachte das sollte nur ein Beispiel sein ;)
Wie auch immer - einfach die URL zum verwendeten Redirect/Derefer-Script vor $rightlink und gut is.
Limitter
02-01-2004, 03:25 PM
@ KirbyDE
this ist the outgoing URL after the modification
http://anonym.to/?http%3A%2F%2Fht4xs.ath.cx%2Fuser%2Faldi65%2Fsets% 2FAU26%2F2004-01-27%2Findex.htm
and this ist the right URL
http://ht4xs.ath.cx/user/aldi65/sets/AU26/2004-01-27/index.htm
:confused:
Limitter
Andreas
02-01-2004, 03:32 PM
The URL is correct, just urlencoded which is necessary if the destination URL contains special characters like &
klaus die maus
02-28-2004, 06:22 PM
Super danke ich hab echt schon zustände bekommen
Funtzt prima
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.