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.
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 )
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?
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.
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?
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.
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.
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.
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.