Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to handle "blank URLs"

Quote Reply
How to handle "blank URLs"
Hi,

I am basically building a travel guide and many of the places we want to list in it do not have web sites. This means that I have to be able to add to the links directory without having a URL.

To do this, I have edited links.def and changed the following

Code:
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],

to
Code:
URL => [2, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp'],

I now need to change the code in site_html.pl to make sure it does not call jump.cgi with an invalid id it reports

Error: Can't find link id: 4

Here I changed the message to show

Error: This site does not have a website on the Internet. The information provided in the description is all we have configured for them.

Quote Reply
Re: How to handle "blank URLs" In reply to
Uh...there is a Mod called isLinked in the Resource Center that will do what you want...

BTW: The Resource Center (linked in every Forum home page) is the first place to check out Modification ideas before submitting questions in the Forum.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.