![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
Open local links in same window; external links in new window
![]() Developer Last Online: Jan 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):
ADD AFTER:
Save. Done. ![]() Thanks to my son, Wilder Tweedale, for assistance with the code. Update:
Originally Posted by BirdOPrey5
BOP5 has just published a javascript version of this as a product, which may be easier for many to implement and which avoids possible increases in page load times.![]()
See http://www.qapla.com/mods/misc.php?d...extlinkingbop5 Download Now Only licensed members can download files, Click Here for more information. Show Your Support
The following members like this post: blind-eddie
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Mini Mods Open Local links in same window, External in new window | SweCastel | vBulletin 4.x Add-ons | 19 | 08 Nov 2013 15:01 |
Mini Mods Same Window For Local Links | Viper007Bond | vBulletin 3.6 Add-ons | 54 | 02 Nov 2011 16:59 |
Comments |
#2
|
|||
|
|||
Before someone asks the obvious question...
Q: How is this mod different from the mod by SweCastel http://www.vbulletin.org/forum/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.
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management The following members like this post: 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.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. The following members like this post: djbaxter, puertoblack2003
|
#4
|
|||
|
|||
Originally Posted by BirdOPrey5
Thanks. ![]()
![]() 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.
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#5
|
||||
|
||||
VB4 uses jquery on only a few pages. Yahoo YUI is the default library on all pages.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#6
|
|||
|
|||
Originally Posted by BirdOPrey5
BOP5 has just published a javascript version of this as a product, which may be easier for many to implement and which avoids possible increases in page load times.![]()
See http://www.qapla.com/mods/misc.php?d...extlinkingbop5
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#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.
![]()
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#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.
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management The following members like this post: BirdOPrey5
|
#9
|
||||
|
||||
Thanks. I put it up here: http://www.vbulletin.org/forum/showthread.php?t=286348
![]()
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#10
|
|||
|
|||
Excellent... To others, I'm now using the BOP5 mod on four vB4 forums... highly recommended.
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 17:40.