Gossamer Forum
Home : Products : Gossamer Links : Discussions :

WebPage Link on Links Listed

Quote Reply
WebPage Link on Links Listed
I am using my version of links SQL as a local business directory and am trying to figure out some alternatives for the http:// field.

I want to keep the option because many businesses have websites, but by the same token, 50% do not. I am looking for a fix that would not produce a "page not found" in the users browser if they click on the business name for the ones that do not have a website.

I am sure that this has been done before and that it is a fairly basic mod, but I am afraid it is out of my scope.

Any help would sure be appreciated!

Sincerely,

Bob
Quote Reply
Re: [bobl] WebPage Link on Links Listed In reply to
In Reply To:
I am using my version of links SQL as a local business directory and am trying to figure out some alternatives for the http:// field.

I want to keep the option because many businesses have websites, but by the same token, 50% do not. I am looking for a fix that would not produce a "page not found" in the users browser if they click on the business name for the ones that do not have a website.

I am sure that this has been done before and that it is a fairly basic mod, but I am afraid it is out of my scope.

Any help would sure be appreciated!

Sincerely,

Bob


you could just do that in the templates with something like...


<%if URL != 'http://'%><A HREF="<% URL %>"><%endif%>BUSINESS NAME HERE <%if URL != 'http://'%></A><%endif%>


that "should" put a link in if the URL doesn't equal "http://" - ie. if it's anything longer than that. If it is that, it won't include a link but instead just list the business name.

This is untested, but it looks right. Angelic

regan.

Last edited by:

ryel01: May 8, 2002, 10:29 PM
Quote Reply
Re: [ryel01] WebPage Link on Links Listed In reply to
Hi Regan,

Thanks for replying to this post. I think I see where you are going, but can you tell me which template this would have to be included in?

Thanks!
Quote Reply
Re: [bobl] WebPage Link on Links Listed In reply to
In Reply To:
Hi Regan,

Thanks for replying to this post. I think I see where you are going, but can you tell me which template this would have to be included in?

Thanks!


"link.html" should be the one you're looking for!

Sly


just a thought - if you still want to count the click throughs etc, you should probably use the full link back to your jump.cgi script. something like this..

<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>">

regan.

Last edited by:

ryel01: May 8, 2002, 11:36 PM