Open local links in same window; external links in new window
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): PHP Code:
<vb:if condition="$stylevar['favicon']">
PHP Code:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
Thanks to my son, http://www.wildertweedale.com, for assistance with the code. Update:
Quote 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?do=producthelp&pid=intextlinkingbop5 Download
Open internal links same window external links new window.txt (600 Bytes, 42 downloads) |
Similar Mods
Mini Mods Open Local links in same window, External in new window | vBulletin 4.x Add-ons |
Mini Mods Same Window For Local Links | vBulletin 3.6 Add-ons |