View Full Version : Only External Links Open in New Windows
filburt1
04-05-2003, 10:00 PM
This hack modifies the [url] tag such that links that point outside of your forums' URL open in new windows. Links that point to anything in your domain open in the same window.
Screenshot not applicable.
ULTIMATESSJ
04-06-2003, 04:32 PM
heh i never realised that they opened in the same window anyways, lol anyways nice hack
/me clicks install
filburt1
04-06-2003, 04:33 PM
Today at 12:32 PM ULTIMATESSJ said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=378325#post378325)
heh i never realised that they opened in the same window anyways, lol anyways nice hack
* ULTIMATESSJ clicks install
They don't; by default all [url] links open in new windows, regardless of the URL.
NuclioN
04-06-2003, 05:01 PM
Nice, but when you have a shoutbox/vbchat on the index it opens links in the chat and not as a new page. :confused:
filburt1
04-06-2003, 05:46 PM
That's because it's an iframe...
Boofo
04-06-2003, 06:08 PM
Your code is wrong in the instructions file.
This:
return "<a href=\"$righturl\" target=\"blank\">".str_replace('\"', '"', $hyperlink)."</a>";
should be this:
return "<a href=\"$righturl\" target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>";
You missed the underscore. ;)
filburt1
04-06-2003, 06:17 PM
Gah, fixed :)
Aaron1
04-08-2003, 06:56 AM
Excellent hack!
I was waiting for a long time for that.
Clicks install!
etraak
04-13-2003, 04:39 PM
Do you know if this hack will also work with VbPortal? Do you know if I need to change anything else in VbPortal or just this hack in VBulletin? Any help on this would be greatly apreciated.
Thanks.
Best regards,
Bob :confused:
filburt1
04-13-2003, 04:40 PM
If vBPortal uses vB's code parsing functions then it will work.
etraak
04-13-2003, 05:02 PM
Does not work with VbPortal at all. It works as long as your in the Forum tab area but I added this hack and no change to my site or pages at all. Still opens new page when you click below on either home or contact us. Do you see any other ways around this? Thanks.
Regards,
Bob
www.homenetworkingworld.com
filburt1
04-13-2003, 05:04 PM
I don't know. I don't officially support his hack, especially when it comes to interactions between other hacks.
etraak
04-13-2003, 05:17 PM
Finally got it to work. I was placing "target=blank" in the field which will indeed place another page in the way.
So far so good ... My screw up .. I am still in the learning phase of all this.
Bob :laugh:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.