Gossamer Forum
Quote Reply
The counter
<%if URL eq 'http://'%>
<a class="category_links" target="_blank" href="<%rewrite_url($ID,$Title)%>"><%Title%></a>
<%else%>
<a class="category_links" target="_blank" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a><%endif%>

This is a peace of code I use so people can submit information with no URL the detailed pages have the RewriteEngine On
<%rewrite_url($ID,$Title)%>
so the URLs are friendly for the search engines. The problem is I need the counter for the pages with no URL also; this way it doesn’t count how many times the link pointing to the detailed page has been clicked.
(The regular links with URL works fine)
If anyone can come up with some miracle <%else%> code it would be really nice and helpful. Or should I give up the Friendly URLs or the counter on all pages?

Any ideas or opinions are very welcome.


Last edited by:

modifier: Jan 15, 2005, 10:47 PM
Quote Reply
Re: [modifier] The counter In reply to
Just in case someone understand what I’m talking about.

I have temporarily solved the problem so the counter will not show up on the detailed pages with no URL

here is what I used

<%if URL eq 'http://'%><%else%>

Hits: <b><%Hits%></b><br>
<%endif%>


Simple, Cool
If I will have some extra time I will look for info to set up extra counter for the detailed pages.