The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
tweak of existing mod (own redirector)
Redlabour has said it is ok to have someone else look into this for me so I am posting a request. (oringinal mod: https://vborg.vbsupport.ru/showthrea...1&page=1&pp=15)
Basically what this mod does (if you haven't yet seen it) is parse all links through your own redirector (local links.php rather than a service like anon.to or safeurl.de)... This works fine as it is now, but it only parses links with www. in the url so any links posted without the www is still a direct link. I've tried to change the code myself with no success Basically, all I want is the abilibilty to declare multiple domains in class_bbcode... i.e. this: Code:
$url_info = parse_url($rightlink); if ($url_info["host"]=="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; 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") || ($url_info["host"]=="YOURDOMAIN2.de") || ($url_info["host"]=="YOURDOMAIN3.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; Thanks in advance Anyone? Bueller? haha, I like the automerge! Bumping has to be more creative now, eh? So what happens if you need to make another post ? Weired! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|