The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Open Internal Links in Same Tab - Ported by BOP5 (VB 4.x & VB 3.x) Details »» | ||||||||||||||||||||||||||
Open Internal Links in Same Tab - Ported by BOP5 (VB 4.x & VB 3.x)
Developer Last Online: Aug 2023
Brought to you by BirdOPrey5.
NOTE: If you already use jquery on all pages see this mod instead: https://vborg.vbsupport.ru/showthread.php?t=286030 The purpose of this mod is to automatically turn any "internal" links into links that open in the same window (or tab) instead of always opening in a new window. By default all links added with the[URL] BBCode in vBulletin become links that open in new windows. This uses JavaScript to automatically fix this. You can add multiple domains in the settings to be treated as "internal" domains. If you don't add any it will try to atuomatically detect the domain being used. Note: If you add *any* domains then you must specify all local domains, it will not try to auto-detect. Mod becomes active upon installation. Go to Admin CP -> Settings -> Options -> Open Internal Links in Same Window... to enable/disable mod and edit the domain(s) considered local. If the user is browsing with JavaScript disabled then links will always open in a new window like is the usual behvior. Live Demo: Demo Link Should be compatible with all vBulletins between 3.6.0 and 5.0.0. (So all 3.8.x and 4.x.x for sure.) Has been tested and found compatible with all current major browsers: IE9, FF 13 & 14, Chrome, Opera, and Safari. I need to thank 2 others for this mod: djbaxter on vBulletin.org and his similar mod. His mod does something similar but is jquery based. This makes the JavaScript code simpler but requires the jquery library be loaded on every page load. vBulletin doesn't use jquery on most pages so that could add significantly to loading times. And... Alen Grakalic who posted an original JavaScript on Css Globe: Open External Links in New Window Automatically | Css Globe I modified this publicly available code to have it work with vBulletin and allow for multiple local domains, however a lot of the code bign used remains his. So thanks to djbaxter for the idea and Alen for a great jump-start on the code (I'm not a big fan of JavaScript ) ------------------------------------------------------ Please "Mark as Installed" if you use this. Nominate MOTM if you LOVE it! Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
3 благодарности(ей) от: | ||
djbaxter, RichieBoy67, Toorak Times |
Comments |
#2
|
||||
|
||||
Reserved.
|
#3
|
||||
|
||||
Adding an option to force external links (all other domains you don't list) to open in a new tab would be convenient.
|
#4
|
||||
|
||||
How? The links already open in new tab if you don't use this?
|
#5
|
|||
|
|||
Very nice BOP5. I installed on 4.1.12p2 and works perfectly. This is very useful in the mod and admin forums where internal links are always being posted. Having them open in the same window was a great idea.
|
Благодарность от: | ||
BirdOPrey5 |
#6
|
||||
|
||||
This is not my experience. For me any external link (unless tagged with "_blank") will open in the same tab taking the user away from your website.
|
#7
|
||||
|
||||
Where are these external links? If they are custom links you created yourself then I would expect you use _blank f you wanted to?
I guess I wasn't figuring there wold be any external links not custom created or created by bbcode. I will see what I can do but would like to see an example for sure. |
#8
|
|||
|
|||
Installed on vBulletin 4.1.3pl5 with thanks ...
Seems to work great ... :up: Regards, Doug |
Благодарность от: | ||
BirdOPrey5 |
#9
|
|||
|
|||
how can i open audiclubtr.com/anasayfa links in new tab ?
http://www.audiclubtr.com/f26/audi-t...uyuruldu-2246/ |
#10
|
||||
|
||||
If audiclubtr.com is your domain then you can't. If you need to open internal links in new tabs, don't use this mod.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|