Gossamer Forum
Home : Products : Links 2.0 : Customization :

Email as URL

Quote Reply
Email as URL
Eliot,

I need to use what people put in the form as the "Contact Email" AS the URL. I've searched the archives and seen where you've given this code.....

My suggestion is that you do not use the URL field for the email address, simply use the Contact Email field as the email link, like the following:

code:

<%if URL%>
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>
<%endif%>

AND

code:

<%ifnot URL%>
<a href="mailto:<%Contact Email%>"><%Contact Name%></a>
<%endif%>

It makes perfect sense for what I need it for, but where, and to which file do I add the code??

links.def?
nph-build.cgi?
templates/add.html?

Thanks!
Quote Reply
Re: Email as URL In reply to
Uh...the link.html, which controls how links will appear in your directory.

Wink

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.