Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - spaces in links causing bad links...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

spaces in links causing bad links...

 Post Reply Post Reply Page  12>
Author
Joeee View Drop Down
Newbie
Newbie
Avatar

Joined: 05 August 2003
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joeee Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Joeee View Drop Down
Newbie
Newbie
Avatar

Joined: 05 August 2003
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joeee Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Joeee View Drop Down
Newbie
Newbie
Avatar

Joined: 05 August 2003
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joeee Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Post Options Post Options   Thanks (0) Thanks(0)   Quote Phat Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Joeee View Drop Down
Newbie
Newbie
Avatar

Joined: 05 August 2003
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joeee Quote  Post ReplyReply Direct Link To This Post 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 

Back to Top
Joeee View Drop Down
Newbie
Newbie
Avatar

Joined: 05 August 2003
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joeee Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.