Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 convert urls to "click here"

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
tribaliztic Posted - 04 November 2005 : 07:11:51
I would like to convert all url's posted in the forums to "click here" or something. Url's tend to be too long and screw up the posts...
Any hints?
<
15   L A T E S T    R E P L I E S    (Newest First)
tribaliztic 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 =)
<
Shaggy 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.

<
tribaliztic 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" =)
<
Shaggy Posted - 10 November 2005 : 08:25:29
You're welcome, Tribal'

<
tribaliztic Posted - 09 November 2005 : 04:27:14
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..
<
Shaggy Posted - 08 November 2005 : 08:16:23
Bassman 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.<
imweazel 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.
<
AnonJr 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?<
tribaliztic Posted - 07 November 2005 : 10:10:57
yeah, but most of my users don't use the URL-tag, that's the problem =/
<
imweazel Posted - 07 November 2005 : 09:50:39
Instring's and mid's for the URL tag.<
tribaliztic Posted - 07 November 2005 : 09:20:54
quote:
Originally posted by imweazel

quote:
Originally posted by tribaliztic

I would like to convert all url's posted in the forums to "click here" or something. Url's tend to be too long and screw up the posts...
Any hints?




How about an update query to convert the URL's to the format you're looking for?



How would I know what to convert?
<
golfmann Posted - 07 November 2005 : 08:49:32
quote:
Originally posted by Shaggy

Bassman, how does your mod differ from the default "Prompt" format mode?





It seems a variation to me. I've seen others that use that language in their post link button. That's why I did the button java change noted here:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=57507#329930

It's actually pretty easy with tabbed browsers and all (one step copy & paste), but it would sure be nice to have it automatic as mentioned in my post above. <
Shaggy Posted - 07 November 2005 : 08:33:31
Bassman, how does your mod differ from the default "Prompt" format mode?

<
imweazel Posted - 07 November 2005 : 08:29:20
quote:
Originally posted by tribaliztic

I would like to convert all url's posted in the forums to "click here" or something. Url's tend to be too long and screw up the posts...
Any hints?




How about an update query to convert the URL's to the format you're looking for?<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000 Version 3.4.07