| Author |
Topic Search Topic Options
|
Joeee
Newbie
Joined: 05 August 2003
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Topic: spaces in links causing bad links... Posted: 09 February 2004 at 2:06pm |
Hi everyone,
For some reason, spaces are being inserted into long words on my site... it's not really an issue except when people post links, which are almost always long. For example, this line causes problems on my site:
Internet Explorer's Technical Overview (v6) - http://www.microsoft.com/windows/ie/techinfo/overview/default.asp
There is a space between the l and the t in default.asp which causes it to be a bad link. How do I prevent this???
Thanks!
Edited by Joeee
|
 |
Joeee
Newbie
Joined: 05 August 2003
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 February 2004 at 2:07pm |
P.S. It doesn't happen on your site, so I'm doing something wrong.
here's what it looks like on my site:
Internet Explorer's Technical Overview (v6) - http://www.microsoft.com/windows/ie/techinfo/overview/defaul t.asp
|
 |
Joeee
Newbie
Joined: 05 August 2003
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 February 2004 at 5:20pm |
I did search the site for keywords: spaces links and that type of thing and found nothing. Please help! if this question has been answered before, just point me to the right place.
Thanks!
|
 |
Phat
Senior Member
Joined: 23 February 2003
Status: Offline
Points: 386
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 February 2004 at 10:32pm |
|
I think i read some thing the other day about this being an issue with
asp or IE. I think it has to do with the length of the URL.
Borg had an answer.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 February 2004 at 6:03am |
|
So that long words, links, etc. are word wrapped and don't mess up the
formatting of the page they are split at the 60th character.
However, the actual HTML for the link should not be split. If this is
happening on your forum try reuploading the files in the functions
folder again as the HTML for the link should not be broken.
Like on this site, the secound link you posted is displayed with a
space in it, but when clicked on the HTML for the link is not.
|
|
|
 |
Joeee
Newbie
Joined: 05 August 2003
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 February 2004 at 2:03pm |
Is there any way to automatically recognize that we're dealing with a link and not break it? Since it sounds like you've thought a lot about this issue boRg, is this a good idea? Maybe something like the above would be turned into the following automatically?:
Internet Explorer's Technical Overview (v6) - http://www.microsoft.com/
but, still link to the original:
http://www.microsoft.com/windows/ie/techinfo/overview/default.asp
Is that a good idea? Thanks!
Andy
|
 |
Joeee
Newbie
Joined: 05 August 2003
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 February 2004 at 2:05pm |
|
P.S. This problem is only with the basic post editor... which is what I default my users to. There's no actual linking involved. Just people posting text like so:
Internet Explorer's Technical Overview (v6) - http://www.microsoft.com/windows/ie/techinfo/overview/defaul t.asp
Then, when the user cuts and pastes this link, they get the error.
Thanks
Edited by Joeee
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 February 2004 at 6:02pm |
|
It will happen with text links as above as these are not HTML links so can't be indentified.
You could always increase where strings are split by changing the value in the file:-
Line 564 of the file functions_filters.asp that reads:-
Const intMaxWordLength = 60
Change 60 to a higher number, or get your users to use the URL button to make the text link into a proper HTML link.
|
|
|
 |