Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: xPandax on March 06, 2014, 09:04:54 AM

Title: Auto [iurl] For Internal Links And "nofollow" For External Links
Post by: xPandax on March 06, 2014, 09:04:54 AM


Auto [iurl] For Internal Links And "nofollow" For External Links
(For SMF 2.0.x)
Mod by xPandax | Other Mods (http://custom.simplemachines.org/mods/index.php?action=profile;u=158159) by xPandax


Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3767) | Support Thread for this Mod (http://www.simplemachines.org/community/index.php?topic=519432.0)


Features
This mod differentiates the internal links from external links and

How-To-Check if this Mod Actually Works in your Forum
Go to a thread that has both internal & external links. Right click -> view page source and then search for the internal & external links.

Before installing this mod, the links will appear like

<a href="INTERNAL_LINK" class="bbc_link" target="_blank">INTERNAL LINK</a>
<a href="EXTERNAL_LINK" class="bbc_link" target="_blank">EXTERNAL LINK</a>


After installing the mod, the links will appear like

<a href="INTERNAL_LINK" class="bbc_link">INTERNAL LINK</a>
<a href="EXTERNAL_LINK" class="bbc_link" target="_blank" rel="nofollow">EXTERNAL LINK</a>



Supported Themes
Works on all the themes without any custom edits!


Supported SMF Versions
Tested on fresh installation of 2.0.4.


Supported Languages
NA.


Support
If you need support with this mod, please use the Support Thread for this Mod (http://www.simplemachines.org/community/index.php?topic=519432.0).


Changelog
v1.0 - Initial release.


Warning
If you are using v1.0 of Simple Youtube Video Embedder/BBC (http://custom.simplemachines.org/mods/index.php?mod=3751), then please upgrade to v1.1 or later before installing this mod to prevent error while mod install/uninstall operations.



License

This is free and unencumbered mod released into the public domain. For more information, see http://unlicense.org/ (http://unlicense.org/) or the accompanying UNLICENSE file.