Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Open Internal Links in Same Tab - Ported by BOP5 (VB 3.x & VB 4.x) Details »
Open Internal Links in Same Tab - Ported by BOP5 (VB 3.x & VB 4.x)
Mod Version: 1.00, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Apr 2018 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (3 votes - 5.00 average) Installs: 15
Released: 05 Aug 2012 Last Update: 05 Aug 2012 Downloads: 33
Supported Uses Plugins Re-usable Code  

Brought to you by BirdOPrey5.

NOTE: If you already use jquery on all pages see this mod instead: http://www.vbulletin.org/forum/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.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	open-internal-links-settings.jpg
Views:	128
Size:	64.1 KB
ID:	140338  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Open Internal Links in Same Tab - Ported by BOP5 (VB 4.x & VB 3.x) BirdOPrey5 vBulletin 4.x Add-ons 24 16 Oct 2014 09:05
Miscellaneous Hacks AdminCP & ModCP open in new window/tab lordtopcat vBulletin 3.7 Template Modifications 19 14 Jul 2011 18:59

Comments
  #2  
Old 05 Aug 2012, 14:34
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Reserved.
__________________
-Joe (@BirdOPrey5) Former Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #3  
Old 06 Aug 2012, 03:29
Midohash's Avatar
Midohash Midohash is offline
 
Join Date: Aug 2010
Thanks for the mod ... Will it improve page ranking by keeping members and visitors to stay in the forum rather than to leave it when they open an external link?
__________________
منتديات المطاريد
https://www.almatareed.org
Reply With Quote
  #4  
Old 06 Aug 2012, 03:49
Midohash's Avatar
Midohash Midohash is offline
 
Join Date: Aug 2010
Installed
__________________
منتديات المطاريد
https://www.almatareed.org
Reply With Quote
  #5  
Old 06 Aug 2012, 12:21
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Midohash View Post
Thanks for the mod ... Will it improve page ranking by keeping members and visitors to stay in the forum rather than to leave it when they open an external link?
Doubt it. In fact I am 100% sure it won't since this uses JavaScript to rewrite the links and search engine bots ignore javascript.

Also, I'm pretty sure the target of a URL doesn't affect SEO but never checked.
__________________
-Joe (@BirdOPrey5) Former Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.

Last edited by BirdOPrey5; 06 Aug 2012 at 12:31.
Reply With Quote
  #6  
Old 06 Aug 2012, 20:50
Midohash's Avatar
Midohash Midohash is offline
 
Join Date: Aug 2010
Originally Posted by BirdOPrey5 View Post
Doubt it. In fact I am 100% sure it won't since this uses JavaScript to rewrite the links and search engine bots ignore javascript.

Also, I'm pretty sure the target of a URL doesn't affect SEO but never checked.
Thank you. I thought initially it could improve the page rank, but now after your explanation, what are the expected benefits from it? ... also, does it cause db queries?
__________________
منتديات المطاريد
https://www.almatareed.org
Reply With Quote
  #7  
Old 06 Aug 2012, 21:41
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
There are no db queries.

The benefit is simply if people link from one thread to another in threads and posts on your forum it is more convenient usually to have those links open in the same tab, but by default they open in a new tab.

For example this link:

http://www.vbulletin.org/forum/forumdisplay.php?f=235

If you click on it, it will open in a new tab or browser window. But if you had this mod installed it would open in the same tab so users don't have to worry about having multiple tabs open to the same site.
__________________
-Joe (@BirdOPrey5) Former Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #8  
Old 06 Aug 2012, 22:58
Midohash's Avatar
Midohash Midohash is offline
 
Join Date: Aug 2010
Originally Posted by BirdOPrey5 View Post
There are no db queries.

The benefit is simply if people link from one thread to another in threads and posts on your forum it is more convenient usually to have those links open in the same tab, but by default they open in a new tab.

For example this link:

http://www.vbulletin.org/forum/forumdisplay.php?f=235

If you click on it, it will open in a new tab or browser window. But if you had this mod installed it would open in the same tab so users don't have to worry about having multiple tabs open to the same site.
Thanks a lot for the comprehensive reply.
__________________
منتديات المطاريد
https://www.almatareed.org
Reply With Quote
  #9  
Old 13 Aug 2012, 23:37
tehPARADOX tehPARADOX is offline
 
Join Date: Feb 2007
Tagged.
__________________
Reply With Quote
  #10  
Old 22 Aug 2012, 09:18
Blueracer66's Avatar
Blueracer66 Blueracer66 is offline
 
Join Date: Sep 2008
Real name: Kevin
Works on vBulletin 3.8.7 PL3. Thanks!
__________________
AllConsoleGamers All-Console Pro Gaming Community (beta)
Reply With Quote
  #11  
Old 29 Sep 2012, 22:06
tehPARADOX tehPARADOX is offline
 
Join Date: Feb 2007
Okay after further reading into this mod, I believe it might have the opposite effect in terms of seo and ranking.

Google loves internal linking, especially between articles and posts. It passes link juice. Though I haven't tested this mod, by your description it's using javascript. If google can't see it, it's not there.
__________________
Reply With Quote
  #12  
Old 30 Sep 2012, 17:44
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
You can believe what you want but I am sure this mod doesn't hurt SEO.
__________________
-Joe (@BirdOPrey5) Former Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #13  
Old 30 Sep 2012, 19:29
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Real name: CM
Voted: Excellent Work of BirdoPrey! I am doing a cleanup on my forum, Hopefully when I am done I might come and Install this one for sure..... Thanks a lot for sharing this one with us!
__________________
I am having a little break from vB Developing. I am trying to finish my PHP and MYSQL courses for now. I will answer all my PM's if anyone needed help for my products, but only when I can be online on vB.org. Its great to see new and old developers keeping vB.org alive! Thank you all for your support!CM
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 17:46.

Layout Options | Width: Wide Color: