Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 convert urls to "click here"
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

imweazel
Starting Member

49 Posts

Posted - 07 November 2005 :  09:50:39  Show Profile  Reply with Quote
Instring's and mid's for the URL tag.<
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 07 November 2005 :  10:10:57  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
yeah, but most of my users don't use the URL-tag, that's the problem =/
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 07 November 2005 :  13:45:37  Show Profile  Visit AnonJr's Homepage  Reply with Quote
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?<
Go to Top of Page

imweazel
Starting Member

49 Posts

Posted - 07 November 2005 :  15:13:59  Show Profile  Reply with Quote
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
Go to Top of Page

Bassman
Junior Member

Netherlands
256 Posts

Posted - 07 November 2005 :  15:18:47  Show Profile  Visit Bassman's Homepage  Reply with Quote
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.<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 08 November 2005 :  08:16:23  Show Profile  Reply with Quote

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.”
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 09 November 2005 :  04:27:14  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
Thanks alot!!
Worked like a charm!
I don't know which look better, this solution or the other one (http://forum.snitz.com/forum/topic.asp?TOPIC_ID=57507) though..
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 10 November 2005 :  08:25:29  Show Profile  Reply with Quote
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.”
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 10 November 2005 :  08:38:53  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 10 November 2005 :  09:08:36  Show Profile  Reply with Quote
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.”
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 10 November 2005 :  09:13:48  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07