The Arcive of vBulletin Modifications Site. |
|
Only External Links Open in New Windows Details »»
|
|||||||||||||||||||||||||
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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
heh i never realised that they opened in the same window anyways, lol anyways nice hack
/me clicks install |
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
||||
|
||||
|
Nice, but when you have a shoutbox/vbchat on the index it opens links in the chat and not as a new page.
|
|
#5
|
|||
|
|||
|
That's because it's an iframe...
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
|||
|
|||
|
Gah, fixed
|
|
#8
|
||||
|
||||
|
Excellent hack!
I was waiting for a long time for that. Clicks install! |
|
#9
|
|||
|
|||
|
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
|
|
#10
|
|||
|
|||
|
If vBPortal uses vB's code parsing functions then it will work.
|
![]() |
|
|