The Arcive of vBulletin Modifications Site. |
|
Open local links in same window; external links in new window Details »»
|
||||||||||||||||||||||||||||||
|
Open local links in same window; external links in new window
Developer Last Online: Aug 2021
By default, vBulletin opens all links in posts in a new window (target="_blank").
This mod opens local links (i.e., links from your domain) in the same window (target="_self"), and external links in a new window or tab (target="_blank"). INSTRUCTIONS: AdminCP >> Style Manager >> Common Templates >> headinclude FIND in headinclude (this is where I added the code but probably anywhere would work): PHP Code:
PHP Code:
![]() Thanks to my son, Wilder Tweedale, for assistance with the code. Update: Quote:
See http://www.qapla.com/mods/misc.php?d...extlinkingbop5 Download Now
Show Your Support
|
||||||||||||||||||||||||||||||
| Благодарность от: | ||
| blind-eddie | ||
| Comments |
|
#2
|
|||
|
|||
|
Before someone asks the obvious question...
Q: How is this mod different from the mod by SweCastel https://vborg.vbsupport.ru/showthread.php?t=256195? A: SweCastel's mod requires editing one of the core vBulletin files. I dislike doing that because it means re-editing the file with every update. The current mod requires template edits only. |
| Благодарность от: | ||
| oldz442 | ||
|
#3
|
||||
|
||||
|
This is a great idea, I use a custom BBCode for local links on my forum but it's annoying to have to worry about which are local and which aren't.
I would just give a heads up to people if they are already loading jquery on their pages they don't need to load it twice- actually 2 different jquery versions may conflict. |
| 2 благодарности(ей) от: | ||
| djbaxter, puertoblack2003 | ||
|
#4
|
|||
|
|||
|
Quote:
![]() To be honest, I thought it was loaded in native vBulletin installations but couldn't get the script to work without the load line added. |
|
#5
|
||||
|
||||
|
VB4 uses jquery on only a few pages. Yahoo YUI is the default library on all pages.
|
|
#6
|
|||
|
|||
|
Quote:
See http://www.qapla.com/mods/misc.php?d...extlinkingbop5 |
|
#7
|
||||
|
||||
|
I didn't want to release my own here since if it wasn't for yours I wouldn't have thought to do it.
|
|
#8
|
|||
|
|||
|
Well, suffice it to say that I'm now using yours.
![]() And I wouldn't be offended in the slightest if you re-released your mod here. |
| Благодарность от: | ||
| BirdOPrey5 | ||
|
#9
|
||||
|
||||
|
Thanks. I put it up here: https://vborg.vbsupport.ru/showthread.php?t=286348 :up:
|
|
#10
|
|||
|
|||
|
Excellent... To others, I'm now using the BOP5 mod on four vB4 forums... highly recommended.
|
![]() |
|
|