News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Show Local Url Titles

Started by Nathaniel, July 17, 2008, 11:17:23 PM

Previous topic - Next topic

Nathaniel

Link to Mod

Show Local URL Titles 2.0.1 by Nathaniel
Overview:

This mod turns the boring Local/Internal URLs for Posts, Threads, Boards and User profile's into their actual titles so that your forums look better and more professional. Its very similar to a functionality from vB which does a similar thing. The mod has settings for parsing the titles on Posting and Page view, as well as a maintenance function that can convert the urls for each of your forum's existing posts.

Example:
This URL (for new websites): "www.yoursite.com/index.php?topic=1"
Would be turned into this title which links to the same page but has different text "Welcome to SMF!".

Settings are found in the Admin panel:
Look in the "Configuration" -> "Modification Settings" -> "Miscellaneous" section of your admin panel.

Backup your database:
Please note that you should always backup your database before using the "Click here to parse the local url titles for all existing messages" function, the mod author takes no liability for the corruption of data.

The License for this mod should be contained within the mod package, in a text file called LICENSE.

Version Support:
This mod is officially supported for SMF 2.0 final only. Below is a list of available versions of this mod and the previous versions of SMF that they supported. Use them at your own risk. The mod author will not be supporting or upgrading this mod in any way for versions of SMF below 2.0.

Version 1.1: SMF 1.1.x and versions of SMF 2 before SMF 2 RC4.
Version 2.0: SMF 2 RC4.
Version 2.0.1: SMF 2 RC5.

Customisation
The "get_local_url_title" function in the "Subs-ShowLocalUrlTitles.php" file has extensive commenting for the $comparisons array, which allows you to specify the url types that are parsed. While the mod includes four comparisons (message, topic, board and user profile) you can add your own there if you want to.

Donate
If this mod has helped you, then feel free to support the developer by Donating. Any amount of money is welcome.

Version Changes:
v2.0.1 - 21 June 2011:
Support for SMF 2.0 final. Minor fix required.

v2.0 - 22 November 2010
Support added for SMF 2 RC4.
Support removed for all earlier versions of SMF, including the SMF 1.1.x branch.
Complete rewrite of the mod.
Added autolinking of urls on post.
Added parsing of url titles on post.
Added maintenance function to parse existing messages.

v1.1
Minor bugfix, any bbc tags inside the url tags were not being parsed.

v1.0
Original Mod release.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Apllicmz




edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Tokzu

#3
Hi, nice mod. But I have a problem, the code of the images linked to other images fails.

Sorry, my english is not very good.  :-[

Example images:
"I don't need a knight in a shinny armor, I need a angel in a trench coat"

My mods:

ghostfreak

When I try to install I get this message:

The package you tried to upload either is not a valid package or has become corrupted.

http://www.xfilesforum.net - Dare To Believe?
http://www.idealforum.co.uk - The Green Blitz!

Nathaniel

@Tokzu,
I have tried to reproduce this error, but I can't do it, with internal or external images. This mod makes absolutely no changes to the image tag, so I am not sure how this issue could be being created, its possible that there may be another mod that isn't compatible with this one, do you have any other mods relating to changing image tags or urls installed?

@ghostfreak,
I am not sure what your problem is, maybe you should try re-downloading the mod and then trying to install it again? Its possible that the download was corrupted. Otherwise I have tested this on clean copies of SMF 1.1.5 and SMF 2 Beta 3.1, if you don't have one of these versions of SMF then that may be the issue. Which version of SMF are you running?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

[unplugged]

#6
I am having the exact same issues as Tokzu. With the mod installed, the [img] tags which would normally display the image inline, now show up as just a link. The mod itself works great. It just interferes with the [img] tags. Uninstalling the mod fixes the image tag problem.

EDIT: The only mod I can think of that might be conflicting would be Pretty URLs. I will uninstall that mod and see if that fixes things.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



[unplugged]

Uninstalling Pretty URLs did not fix the problem. I have quite a few mods installed, so it may be more difficult to narrow it down. I will leave Show Local URL Titles installed so you can see what it is doing. You can click here to view the problem. Thanks in advance for your help.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



ghostfreak

#8
I'm running 1.1.5 LHVWB :)

Oh, and now I receive the message:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

http://www.xfilesforum.net - Dare To Believe?
http://www.idealforum.co.uk - The Green Blitz!

Nathaniel

@SunKing, thanks SunKing. I will have a look into it to see if I can find the cause. If so many people are experiencing problems then I will try to fix this bug as quickly as possible.

@ghostfreak, it definitely should work with your version of SMF. I would suggest trying to install the modification manually, its quite easy to do and you can get instructions from the download page by clicking on "Manual Install Instructions for SMF".



SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Nathaniel

Okay, I worked out what the error is... When you post images or anything inside a url tag, then it doesn't parse the stuff inside the tags so you get the img tags shown instead of the image itself. I will fix this error shortly and upload a new version of the mod.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

qubbah

i have this problem...

Execute Modification     ./Sources/Subs.php     Test failed

can help me to edit for the subs.php in attach..

[unplugged]

This should take care of it. Make a backup of the subs.php first!!

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



qubbah

#13
i cant get it running...

is this mod clash with trimurl mod.. must i uninstalled trimulr mod first?

is this mod only work with only for the site url, not the other site..

i mean when i try it for some url from my site it working great, but when i take the url from other site, that not work... it show original url exactly... not the topic..

Nathaniel

Version 1.1
Minor Bugfix, there was an error where any bbc inside the url tags wouldn't be parsed.

Okay, I finally got around to fixing this bug, it was actually quite easy to fix and because of that I am happy. Thank you to Tokzu and SunKing for informing me of the issue.

@qubbah, I am not sure about the 'trimurl' mod, I will have a look into it sometime and post a small tutorial showing you how to overcome and compatibility issues. I am not entirely sure what you mean by "is this mod only work with only for the site url, not the other site..", but this mod will only work if the links that have been posted are internal, in your website, its uses the settings that you have in your forums 'settings.php' file.

There is no easy way to get the topic from other websites, this mod works by looking the titles up in your database.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

[unplugged]

1.1 works perfectly.
Local URLs are shown as titles. BBC tags are parsed as normal.

Thank you.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Nathaniel

Thanks for *testing* it. ;)

As a note: I highly recommend that you upgrade to version 1.1 if you installed version 1.0, just because of that little annoying bug. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

webdzinez

When I installed it...it says installed successfully ... but the topic URL remains same ... no change

Nathaniel

Can you post a link or an image? Or at least the url that didn't link and the $scripturl setting for your website?

Remember that it only links local urls, and it only does them for posts that are parse for bbc, if that helps at all.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

webdzinez

http://openalternatives.org/forums/index.php/board,1.0.html [nofollow]

here is the URL to the website /..... I may have misunderstood what it does ...but the URL of the Welcome to SMF remains as it is.

Advertisement: