Author |
Topic |
imweazel
Starting Member
49 Posts |
Posted - 07 November 2005 : 09:50:39
|
Instring's and mid's for the URL tag.< |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 07 November 2005 : 10:10:57
|
yeah, but most of my users don't use the URL-tag, that's the problem =/ < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 07 November 2005 : 13:45:37
|
quote: Originally posted by tribaliztic
yeah, but most of my users don't use the URL-tag, that's the problem =/
Maybe replace the link with the text "stinkin long url - use the tag". Bet they'll only do it once!
Seriously though - instead of trying to put some elipses in the middle, why not pear the display down to the domain and keep the rest intact?
i.e.: http://www.reallylongulr.com/dir/subdir/insanethirddir/thatpage.asp?arg=onetoomany&another=istomuch
becomes: http://www.reallylongurl.com on display, but the link points to the appropriate location?< |
|
|
imweazel
Starting Member
49 Posts |
Posted - 07 November 2005 : 15:13:59
|
Did some messing around with SQL. Since you stated your users paste the link I converted this:
stuff before http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60076 stuff after
to this:
stuff before click here stuff after
Using a update query, based on "http://" appearing in the reply.
The query gets formatted in the posting so it doesn't appear exactly as shown.
UPDATE FORUM_REPLY SET FORUM_REPLY.R_MESSAGE = Left([r_message],InStr([r_message],"http://")-1) & 'click here' & Mid([r_message],InStr(InStr([r_message],"http://"),[r_message]," "),Len([r_message])-InStr(InStr([r_message],"http://"),[r_message]," ")+1) WHERE (((FORUM_REPLY.R_MESSAGE) Like "*http://*"));
Granted, this is not an elegant solution. < |
Edited by - imweazel on 07 November 2005 15:22:38 |
|
|
Bassman
Junior Member
Netherlands
256 Posts |
Posted - 07 November 2005 : 15:18:47
|
quote: Originally posted by Shaggy
Bassman, how does your mod differ from the default "Prompt" format mode?
Noting, like golfmann posted its just a small change.< |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 08 November 2005 : 08:16:23
|
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 10 November 2005 : 08:25:29
|
You're welcome, Tribal'
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 10 November 2005 : 08:38:53
|
Maybe release this as a mod with an admin interface where you can choose if you want this or just "clipped urls" =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 10 November 2005 : 09:08:36
|
Ay, if someone wants to do that once we get the clipped version working, fire away; I just don't have the time these days to write up and support mods.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 10 November 2005 : 09:13:48
|
Neither have I but I don't think it would be that hard. I'll give it a try when it's all working =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Topic |
|