Amazingly Simple and Beautiful. Brand spankin' new free SMF themes every month.

Titled Links

Mick in Mods
Jul 17, 2012
Titled Links



Titled Links

Created By: SlammedDime
Taken Over: Mick G.
Updated By: Mick G.
Compatible: SMF 1.1.16, SMF 2.0.2
Visit us at idesign360.com


Introduction
Using this mod will give URLs posted in your topics an automatic title.  I saw this on another forum I visit and thought it to be pretty nifty, so I coded this up for SMF.

If a user posts a link outside of [url] [/url] bbcode tags, this mod will find them, look up the webpage, get the title, and replace the link with a bbcoded url with the webpages title... similar to below:

http://www.mysitehere.com
   
will be transformed into

My Website Title

If the page or title cannot be found, the URL in the post is not changed.

This change is made when the post is made or edited, it is not done on the fly, as that may cause lags in load time.

There are also options in the admin interface for Posts so you can turn this feature on or off, and also limit the number of URLs to convert.

convert_urls.php is a tool that can be used to convert all urls in existing messages to titled urls.  I have tested this on a message table with 12,000 messages and it worked as it should, but I cannot promise that it will always work.  Any errors should be reported to the topic for this mod.

Installation
1. Download from the SimpleMachines.org Mod Site.
2. Upload to your forum using the built-in Package Manager.
3. Install using the built-in Package Manager.

Support
For best support, please visit https://idesignSMF.com

Changelog

2.1: Updated to SMF 1.1.16 & 2.0.2 by Mick G., idesign360.com
2.0: Updated to SMF 1.1.14 & 2.0 by Mick G., idesign360.com
1.2: Taken over by Mick G., updated for RC3/1.1.11
1.1b: Same bug, typo...
1.1a: Bug with URLs that had regex characters in them.
1.1: No code changes, just updated installer for 1.1.3.
1.1: Added settings to 'Posts And Topics'.  Removed XSS vulnerability.
1.0: Initial Release

Tagged with: titled links seo internal links 


Mick

Mick G

Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time and has a weakness for Tacos and Pizza.

Website: https://www.idesignsmf.com/

    


0 Comments



Connect with us:


Improve SMF

If you wish to contribute to the development of SMF you can contribute to the coding discussions taking place on Github. You are also welcome to suggest features which you would like to see added to the software in the Feature Requests board.

  Receive our monthly newsletter right in your inbox.


Advertisement  




 Mods
In this category you will find plugins related to SMF development. Here we present some new mods to help you get the most of your SMF installation.



go up