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 |
#12
|
||||
|
||||
Many thanks was looking days for an solution like this
|
#13
|
||||
|
||||
Quote:
|
#14
|
||||
|
||||
External links will always open in a new tab with or without this mod installed.
|
#15
|
||||
|
||||
From the the articles page https://www.mightymoiety.com/content.php?117-lifestyle, as an unregistered user I click the link https://www.mightymoiety.com/forum.php in the (If is your first visit) notice but it is still opening up in a new tab.. The mod is enabled..
Is there a setting somewhere? Ta. |
#16
|
||||
|
||||
How have you added that banner where the links are at?
|
#17
|
||||
|
||||
I see it is probably the default_guest_message in Notices. So you go to the ACP --> Notices --> Notices Manager, click on edit for the default_guest_message
In the field Notice HTML find all instances of _blank and change it to _self |
Благодарность от: | ||
DemOnstar |
#18
|
||||
|
||||
Quote:
You guys............................ Sorted |
#19
|
||||
|
||||
Not a problem, glad to help.
|
#20
|
|||
|
|||
Thanks for this installed and working on 4.2.2
|
#21
|
|||
|
|||
I can't get this to work. Did I misunderstand it? I want to open all outside links in new tabs, but everything continues to open in the same one. I have tried adding:
domain.com forum.domain.com nothing at all And all 3 options still left links opening in same page. Using 4.2.2. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|