Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

get rid of http:// when there is no url??

Quote Reply
get rid of http:// when there is no url??
Hi,

In link.html there is this piece of code. Why does http:// shows up when there is no url???

<%if URL%>
<small><%URL%></small><br>
<%endif%>

I don't expect http:// also.....


thanks,
ron
Quote Reply
Re: [rsahertian] get rid of http:// when there is no url?? In reply to
Code:
<%if URL%>
<%if URL ne 'http://'%>
<small><%URL%></small><br>
<%endif%>
<%endif%>

The above should work :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] get rid of http:// when there is no url?? In reply to
SmileSmileSmile