The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
|||
|
|||
<i>if ($url_info["host"]=="www.YOURDOMAIN.de"):</i>
^^ What about YOURDOMAIN.DE without the www. ? |
#3
|
||||
|
||||
Can´t work because vBulletin does not use URL´s without www. for redirecting unhacked.
Was this just a question if it works or do you need this without www. ? But of course you can ad this Line so that it works with both. With www. or without. |
#4
|
|||
|
|||
what does this hack do?
|
#5
|
||||
|
||||
Sorry i forget :
Demo - that?s what it looks like if you click on a Link (http://www.google.de) where the Hack is installed : http://www.redlabour.de/forum/links..../www.google.de I have inserted a Screenshot for Hack in Action above in the first Posting ! |
#6
|
||||
|
||||
Quote:
|
#7
|
|||
|
|||
Thanks!!
works great. |
#8
|
||||
|
||||
@Paul M - sorry i think this is selfexplaining.
|
#9
|
|||
|
|||
Quote:
This means that the end site cannot see where the request originated... it basically is anonymising the requests of your user. You might think this is pointless, but some organisations such as the BNP in the UK frequently check their logfiles and visit sites that links came from. In this instance using this hack will prevent a political conversation from being invaded by trolls from sites linked to. In a one-liner: It anonymises hyperlinks on your forum by preventing referer information being sent to the end site. |
#10
|
||||
|
||||
And it opens a Disclaimer before Redirecting to the other Site what is necessary in some European Countries.
|
#11
|
||||
|
||||
thx for this hack.... work very fine....
|
#12
|
|||
|
|||
Quote:
Some will put domain.com or http://www.domain.com or http://domain.com Where you say you can add a line so it works with both, would you do it like this? Instead of 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"): 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; |
#13
|
||||
|
||||
Quote:
Why did you want to do this ? |
#14
|
|||
|
|||
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; |
#15
|
||||
|
||||
Oh now i understand - i will take a look of it tomorrow.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|