Additional Info
Type
Package ID
karlbenson:internallinksusesam
First Created
October 09, 2007, 07:49:42 PM
Last Updated
March 18, 2008, 10:28:55 AM

Internal Links Use Same Window v1.2

All internal SMF urls in posts/pms etc to open in the same window rather than a new window.
Compatible With 1.1.4, 1.1.5, 2.0 Beta 3 Public, 2.0 Beta 3.1 Public
Latest version v1.2
Downloads 3,323
Reviews 0
Rating 0/5
Subscribers 6
License (View License)
Author(s)
This mod has been taken over by WDM2005
The new link for which is http://custom.simplemachines.org/mods/index.php?mod=1255


INTERNAL LINKS USE SAME WINDOW v1.2
By Karl Benson

Link to Mod | Support Topic | Demo | Donate

Compatibility
For SMF 1.1.x and SMF 2.0 Beta x

Introduction
This simple mod fixes all internal SMF urls in posts/pms etc to open in the same window rather than a new window.

Alot of people either just post straight links (which get autoconverted to bbcode), don't know about [iurl][/iurl], can't be bothered or forget to use it when posting links to other smf pages on your site.
So that sometimes results in having many new tabs/windows opening for internal links when really opening in the same window is preferrable.

Features
o Makes local links (to local smf pages) open in same window
(It detects $scripturl at the beginning of the link)
o Makes adjustment if using queryless urls.
o Works for both www. and non www. links

Installation
Any previous versions of this mod need to be uninstalled prior to installing this version.

Install the mod via the SMF Package Manager, and your done. It installs on ALL themes automatically as it only affects Source files.

There are NO theme edits required and there are NO language strings to translate.

Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Donate
Has this modification helped you? Support the developer by Donating

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 - 9th October 2007
o Initial release per request
1.1 - 16th October 2007
o Fixed bug with dots (.) not escaped
o Added /u modifier for when using UTF-8
1.2 - 13th February 2008
o Checked 2.0 compatible (no changes necessary)
o Improved/optimized regex pattern
o Added adjustment to use boardurl instead of scripturl if using queryless urls
o Fixed to work for www. and non www. versions
o Updated readme
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: