Advertisement:

Navigation

SMF Mod Site

Mod Name:
Titled Links
Created By:
Mick.
Type:
Posting
First Created:
May 29, 2007, 06:50:40 AM
Last Modified:
July 28, 2018, 12:01:32 AM
Latest Version:
1.2
Compatible With:
1.1.11, 2.0 RC3, 2.0.15
Total Downloads:
37210

Download this mod

convert_urls.php (16kB) [1605]
(kB) []
Manual Install Instructions for SMF

Description:

Titled Links


Created By: SlammedDime
Taken Over: JBlaze
Updated By: JBlaze
Taken Over: idesignSMF
Updated By: idesignSMF
Compatible: SMF 2.0



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  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 http://www.jblaze.net/forum.

Changelog
Code: [Select]
1.2: Taken over by JBlaze, 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