Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 18th, 2003, 01:35 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default Automatic URLs

Hi there,

Is it somehow possible that the forum no longer changes URLs automatically, but that you have to use the [url] tags?

I have tried pasting some MSDN / Microsoft support links (and tried others as well) that take the following format:

http://support.microsoft.com/default...NoWebContent=1

As you can see, part of their QueryString is a new URL. The automatic URL formatter gets confused and turns this into 2 different links, whether you use the [url] tags to surround the entire link or not......


Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #2 (permalink)  
Old June 18th, 2003, 07:35 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Imar,

Does the same thing happen if you set the URL in the URL tag? .. Testing below..

http://support.microsoft.com/default...NoWebContent=1

Hal Levy
Daddyshome, LLC
NOT a Wiley/Wrox Employee
  #3 (permalink)  
Old June 18th, 2003, 07:35 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

ok- that worked worse....

Hal Levy
Daddyshome, LLC
NOT a Wiley/Wrox Employee
  #4 (permalink)  
Old June 18th, 2003, 08:00 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

LOL, ;)

Yeah, that was my experience as well. That's how I originally found out about the problem.


Imar
  #5 (permalink)  
Old June 18th, 2003, 09:43 AM
Friend of Wrox
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 207
Thanks: 0
Thanked 1 Time in 1 Post
Default

The problem is being cause by the "automatic" URL detection in the Snitz forum software.

It is getting fooled by the extra "http://" in the URL.

The only way I can see to work around this is to turn off the automatic parsing and require that everyone use the URL forum code tags. When automatic parsing is off, then these kinds of URL's work fine inside of the forum tags.

Of course the disadvantage is that if you put in a URL without using the forum codes, then it won't be clickable.

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
  #6 (permalink)  
Old June 18th, 2003, 09:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: London, , United Kingdom.
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yet another instance of Snitz falling short of our old email system :D

There are two secrets to success in this world:
1. Never tell everything you know
  #7 (permalink)  
Old June 18th, 2003, 09:54 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Bruce,
I'd wonder if there's a way to upgrade the detection system... Outlook seems to be able to do it, so we should be able to also :)

Hal Levy
Daddyshome, LLC
NOT a Wiley/Wrox Employee
  #8 (permalink)  
Old June 18th, 2003, 10:02 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
quote:
Bruce,
I'd wonder if there's a way to upgrade the detection system... Outlook seems to be able to do it, so we should be able to also :)
Exactly, all the code should do is look for the first http and then consider everything up to the first space, tab line break etc to be part of the URL. You'd still run into problems when people try to link to http://Blablabla/My New Page.html but I think that can't be solved.

Outlook chokes on that as well; it can't handle URLs with spaces correctlty.....

Imar
  #9 (permalink)  
Old June 18th, 2003, 10:43 AM
Friend of Wrox
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 207
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:Originally posted by chrislepingwell
 Yet another instance of Snitz falling short of our old email system :D

There are two secrets to success in this world:
1. Never tell everything you know
That's hardly a constructive comment.

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
  #10 (permalink)  
Old June 18th, 2003, 10:44 AM
Friend of Wrox
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 207
Thanks: 0
Thanked 1 Time in 1 Post
Default

Unfortunately, the code appears to be quite complicated. The automatic URL parsing handles much more the just "http://". It handles email addresses, ftp URL's, https, and special cases of "www." This is just the automatic (implicit) detection (ie. not inside of the URL tags). Different code handle the explicit URL's (inside of tags).

You're welcome to look at the code to see if it can be improved. The code is mostly ASP but does include some javascript regular expressions. You can download the code for the current version of Snitz at http://forum.snitz.com/. The code that handles the URL detection/conversion is in inc_func_common.asp

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Base URLs - FCKeditor retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 January 9th, 2008 02:23 AM
Automatic URLs bodenzord Forum and Wrox.com Feedback 2 January 4th, 2005 04:19 PM
Relative URLs? groupmatch BOOK: ASP.NET Website Programming Problem-Design-Solution 21 December 16th, 2004 10:53 AM
urls muhammadtahir4000 HTML Code Clinic 1 December 9th, 2004 04:41 AM
Complex URLs wells XSLT 3 June 16th, 2004 04:17 AM



All times are GMT -4. The time now is 10:57 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.