Show Local Url Titles

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

Previous topic - Next topic

Nathaniel

#40
@agentx42,
Remember that they have to be Internal/Local Urls, it won't change the title or Url for external Urls. So if you put a link like "http://www.cai.servebbs.org:8080/smf/index.php/topic,47.0.html", it will replace it with the title of the thread.
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]

@agentx42

The mod is for local URLs such as posting a link to another topic within the forum. If you were to post in that forum a link such as http://www.cai.servebbs.org:8080/smf/index.php?action=post;topic={topic ID} then it will show the title (subject) of that topic instead of the full URL. Hope that made sense. ;)

EDIT: LHVWB types faster than I do.  :P
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



agentx42

That makes sense.... I had a bald moment  :o

Do you know if there is anything available for external URls?

Nathaniel

Quote from: agentx42 on July 26, 2008, 10:19:32 PM
Do you know if there is anything available for external URls?

As far as I know there is nothing, its something that I have thought about, but I haven't actually looked at implementing. It would probably involve actually looking up their webpages, so that would be a bit of a pain. If you have any suggestions for how to do that then I am more than happy to consider them.
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.

L'AltroWeb

#44
@LHVWB:
I have installed also trimUrl and fix with your info!
Now is good but....
Please can you test to fix also prettyurl problem?
If you want test you can see here:
http://darkwolf.altervista.org/forum/lofi.php?topic=10.0
or here
http://darkwolf.altervista.org/forum/help-desk/richieste-novit-sul-sito/msg1350/#msg1350

Nathaniel

#45
Okay, I will have a look over it and see if I can come up with some sort of soluction.

Edit: Okay, I can see why it doesn't work, the Pretty Urls mod, completely changes the urls of the forum. I will have a look at making a version of this mod which works with that mod, but for the moment they remain incompatible.

I will do another version of this mod when the next versions of SMF come out, and I have to update them. I will try to include compatibility with the Pretty Urls mod at the same time. ;)
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.

ellion

this is different to pretty_urls is it?

Nathaniel

Quote from: ellion on July 30, 2008, 01:52:52 PM
this is different to pretty_urls is it?

Yes its completely different, pretty urls makes your urls look different, this mod only replaces the text for your internal/local links to your posts/threads/boards which have been posted inside your forum. Because Pretty Urls changes the urls for the forums, it means that this mod will no longer detect them as local and just assume that they are external links.

I need to add a case with pretty urls being local if the pretty urls mod is installed.
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

Just as an update for this mod:

I am going to create version 1.2 of this mod sometime across the next few weeks, it will change the functionality of the mod so that local URLs are replaced with their titles when they are posted, as opposed to when they are viewed, I will also have an option that will allow you to convert URLs from old posts into their titles.

This is to dramatically increase the efficiency of this mod, because at the moment, it converts them every time anyone tries to view the URLs, which creates a whole load of inefficient database queries.

Thank you to Alundra for informing/reminding me about the inefficiency of this 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.

Angelotus

I will wait for the next release then ;D

ddarrell

Thanks, mod worked as advertised.

darrell
i know just enough to really screw up ;D

Deprecated

I like this mod. It's one of the dozen or so that I run on my production site, and most of the dozen were self-written. :)

That's a good improvement,  doing it when posted instead of done each time viewed. More better. :)

Sakae

Waiting for next update to get it working with Pretty URL...
http://www.tigrelog.com.br
l: simple p: machines

tridirk

Does this work with 1.1.6?  I had it with 1.1.5 and it was great, when I updated I lost it, and now it says it isn't compatible?
Learning SMF..... Thanks for your help!

Nathaniel

It should be compatible. Try the package attached to this post.

I have been holding off the upgrade for this mod until I fix the features that need changing.
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.

tridirk

That worked Great... Thanks, that is how the links should look.
Learning SMF..... Thanks for your help!

Zurka

Quote from: LHVWB on September 19, 2008, 07:14:01 PM
It should be compatible. Try the package attached to this post.

I have been holding off the upgrade for this mod until I fix the features that need changing.

i have this problem... SMF 1.1.6


Nathaniel

@goxy86,
Do you have any other url related mods installed?
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.

Zurka

Quote from: LHVWB on September 22, 2008, 07:36:37 PM
@goxy86,
Do you have any other url related mods installed?

All mods

1.     Global Headers Footers     1.3     
2.    YouTube BBCode    2.3    
3.    Board Viewers Mod    1.2    
4.    Hide Tag    1.7.1    
5.    Enhanced Quick Reply Box 2.0.2    2.0.2    
6.    MCLegendII.2    2.0    
7.    Custom BBCode    2.00    
8.    Member Color Link    3.0.2    
9.    Users Active in Last 24 Hours    1.0    
10.    Disable shouting    1.0    
11.    Trim Url    1.0.2    
12.    SMF 1.0.14 / 1.1.6 Update    1.0    
13.    AvatarOnBoard    2.1

11.    Trim Url    1.0.2???

Nathaniel

@goxy86,
The compatibilty issue with the Trim Url mod, has already been addressed in an earlier post in this topic.

Here is a link to that tutorial:
http://www.simplemachines.org/community/index.php?topic=250317.msg1629315#msg1629315
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.

Advertisement: