tokenyank |
10-23-2005 07:24 AM |
Because as it is now any link that is http://whatever.com does not get parsed through the link.php only links with www in them.
So, I'll take your word that I don't need to declare the http:// but could you tell us how to add another domain to the variable as I would like to declare that domain.com is handled the same way as www.domain.com, also I have another domain that is not part of my vB domain but do not want the link.php to parse it...
So, long post made short... Could you tell us how to add more domains so it will not parse through links.php?
I just tried it like this:
Code:
$url_info = parse_url($rightlink);
if ($url_info["host"]=="www.YOURDOMAIN.de") || ($url_info["host"]=="YOURDOMAIN.de") || ($url_info["host"]=="http://YOURDOMAIN.de") || ($url_info["host"]=="http://www.YOURDOMAIN.de"):
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
else:
return "<a href=\"http://www.YOURDOMAIN.de/forum/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
endif;
and it did not work
|