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 DEV-Group
 DEV Discussions (General)
 url's with more than one "www."
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

foo
New Member

52 Posts

Posted - 14 March 2003 :  15:24:00  Show Profile
URLs with more than one "www." in them choke the url display code.

For example the following URL
http://www.webhistory.org/wwwdotlists/www-talk.1993q1/0262.html

looks like this:
http://www.webhistory.org/www.lists/www-talk.1993q1/0262.html

Or like this within [ url ][ /url ]
a test link

Tim


Edited by - foo on 14 March 2003 15:24:27

spyordie007
Junior Member

USA
408 Posts

Posted - 14 March 2003 :  16:21:14  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
[url=http://www.webhistory.org/www.lists/www-talk.1993q1/0262.html]link[/url]

link

How about this?

hmm, nevermind. I thought I would try a few variation of the url tag but it doesnt like that either.

-Spy

Power - The only narcotic controlled by the SEC, not the FDA.

Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org
Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum

Edited by - spyordie007 on 14 March 2003 16:23:35
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 14 March 2003 :  16:25:00  Show Profile
really, the only way I see to prevent this is to not look for www as an indicator of a URL. That would require that all URL's start with http:// or ftp://, etc..

by commenting out this line, all of the URL's above work fine:
	'fString = ChkURLs(fString, "www.", 3)
but this one would not be recognized as a URL:

www.webhistory.org/www.lists/www-talk.1993q1/0262.html
Go to Top of Page

foo
New Member

52 Posts

Posted - 17 March 2003 :  23:15:12  Show Profile
Why not just change the CheckURL function to only match/replace www if it is at the begining of the string.

Tim

Go to Top of Page

volition
Starting Member

USA
49 Posts

Posted - 30 May 2003 :  18:21:28  Show Profile  Visit volition's Homepage
quote:
Originally posted by RichardKinser

really, the only way I see to prevent this is to not look for www as an indicator of a URL. That would require that all URL's start with http:// or ftp://, etc..


I need to be able to post URLs with 2 http://www in them.

for example:
http://www.volition.com/go/to.asp?go=http://aawsm.com/forums/

I figured out a way to post them is to replace 2nd : with %3A

http://www.volition.com/go/to.asp?go=http%3A//aawsm.com/forums/

and at the same time there is also a bug when there is an e-mail address in a url.

for example:
This url gives the e-mail of the referrer to the website.
http://www.webbullion.com/wb/ref.cgi?ray @ volition.com

it shows up like this:
ray@volition.com" target="_blank">http://www.webbullion.com/wb/ref.cgi?ray@volition.com

ciao,
Ray

Volition® - The Net's Oldest Free-Stuff Site

Snitz Forum at http://forum.volition.com/
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 19 June 2003 :  07:28:29  Show Profile  Visit D3mon's Homepage
I'm trying to post a link to http://www.rswww .com/ (ignore spaces) but its getting corrupted (I'm assuming this is related to the problems in this topic. The previously suggested fix wouldn't appear to work as its only looking for 'www.' as opposed to 'www'. What to do?

OOps answered my own question, sorry


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"

Edited by - D3mon on 19 June 2003 07:31:00
Go to Top of Page

t1n0m3n
Starting Member

USA
5 Posts

Posted - 19 January 2004 :  01:13:20  Show Profile  Visit t1n0m3n's Homepage  Send t1n0m3n a Yahoo! Message
Change the code below in your "inc_func_common.asp" file:
"fString = ChkURLs(fString, "www.", 3)"
becomes
"fString = ChkURLs(fString, " www.", 3)"
and it fixes this problem, and the only place the URL linking doesn't work is at the very beginning of a post (or if you run a word into the beginning of the link.)
You could do the same thing to the other autolinking functions as well, and it would give you the same effect.

Still a workaround, but it is better than just commenting the statements out.

I hope it helps.

Edited by - t1n0m3n on 19 January 2004 01:23:01
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07