Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Help with Counter!!

Quote Reply
Help with Counter!!
How do I remove the counter next to the categories on index.html?

Thanks
Mack
Quote Reply
Re: Help with Counter!! In reply to
hi,

if you mean that
"There are 142 links for you to choose from!"


search in your home.html template for entry
<%grand_total%>

------------------
ciao
Nicky
mse.nicky.net




Quote Reply
Re: Help with Counter!! In reply to
Thats not it, I don't have a <%grand_total%> in my home.html.

Mack
Quote Reply
Re: Help with Counter!! In reply to
hi,

sorry, well i know now what you mean

if you using TEMPLATES look at
bottom of site_html_templates.pl
for
Quote:
# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;
}



------------------
ciao
Nicky
mse.nicky.net




Quote Reply
Re: Help with Counter!! In reply to
Nicky,

Thank you for directing me to the location of the code regarding $numlinks. I removed the following "<small class="numlinks">($numlinks)</small>" which did the job.

Thank you very much! Smile
Mack
Quote Reply
Re: Help with Counter!! In reply to
When I remove the following code
"<small class="numlinks">($numlinks)</small>" from the site_html_templates.pl file, it removes numlinks all the pages. HELP, I only
want to remove numlinks from the main index.html file but not on the subcategories.

Thanks
Mack
Quote Reply
Re: Help with Counter!! In reply to
There are some codes I provided in the Modification Forum that allows you to keep the $numlinks variable in the sub-category pages BUT does not print them in the Main home page.

Please search the Modification Forum more carefully.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Help with Counter!! In reply to
I tried this mod - but - I cant get rid of the () charactors,
What did I miss.???
Thanks
Quote Reply
Re: Help with Counter!! In reply to
Yea...You did not delete the () that encompass the $numlinks variable.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Help with Counter!! In reply to
Eliot,

I search the Modifications forum as you suggested but with not luck. By the way, I am using the Yahoo template. Please help, I am going crazy!!!

Thanks
Mack
Quote Reply
Re: Help with Counter!! In reply to
Go here:

http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/004205.html

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------