Auto [iurl] For Internal Links And "nofollow" For External Links

Started by xPandax, March 06, 2014, 09:04:54 AM

Previous topic - Next topic


Auto [iurl] For Internal Links And "nofollow" For External Links
(For SMF 2.0.x)
Mod by xPandax | Other Mods by xPandax

This mod differentiates the internal links from external links and

  • automatically adds "iurl" tag for internal links, so that internal links are opened in the same window
  • automatically adds "nofollow" only for external links

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

If you need support with this mod, please use the Support Thread for this Mod.

v1.0 - Initial release.

If you are using v1.0 of Simple Youtube Video Embedder/BBC, then please upgrade to v1.1 or later before installing this mod to prevent error while mod install/uninstall operations.


This is free and unencumbered mod released into the public domain. For more information, see or the accompanying UNLICENSE file.