Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Single Category with No Link Count (rest with count)

Quote Reply
Single Category with No Link Count (rest with count)
I have about 24 main categories listed on my front page -- there is ONE category that I do not want to show a link count (Category ID #1093 - I have a lot of subcategories). There are also a few subcategories that I don't want to show a link count also (ID #1094 - 1101).

How can I modify the script to know that if those IDs show up NOT to show any link count?

Thank you!

Last edited by:

Me2Be: Feb 22, 2002, 9:36 AM
Quote Reply
Re: [Me2Be] Single Category with No Link Count (rest same) In reply to
I think in subcategory.html you could do:

<%unless ID == some_id%>
<small><i>(<%Number_of_Links%>)</i></small>
<%endif%>

Don't quote me ;)

I think you can use "or" to add more ID's

Last edited by:

RedRum: Feb 22, 2002, 9:19 AM
Quote Reply
Re: [RedRum] Single Category with No Link Count (rest same) In reply to
Thanks for your quick response!

It worked for ONE subcategory, but it doesn't like the "OR" statement (it ignores it). Any clue how to get more than one subcategory, and also, where can I find this so I can do it to the main category page (just for one category)?

Thank you!
Quote Reply
Re: [Me2Be] Single Category with No Link Count (rest same) In reply to
You will just have to repeat the process for each category you don't want listing.

E.g;

Code:
<%unless ID == some_id%>
<small><i>(<%Number_of_Links%>)</i></small>
<%endif%>

<%unless ID == another_id%>
<small><i>(<%Number_of_Links%>)</i></small>
<%endif%>

<%unless ID == and_another_id%>
<small><i>(<%Number_of_Links%>)</i></small>
<%endif%>

Well, hopefully you get the idea.

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: [AndyNewby] Single Category with No Link Count (rest same) In reply to
No, thats why I said you use "or"
Quote Reply
Re: [RedRum] Single Category with No Link Count (rest same) In reply to
Quote:
but it doesn't like the "OR" statement (it ignores it).

And he said the OR didnt work...so i was giving him alternative options! Wink

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: [AndyNewby] Single Category with No Link Count (rest same) In reply to
Hi Andy!

That doesn't seem to work when you duplicate them -- it just seems to ignore all of them and puts the link counts back in. If I just have one instance, it works for that one category, but if I have more than one instance of what you posted, then it doesn't seem to like that.

Redrum, maybe I'm confused as to where you should put the "OR" statement, can you give me an example?

I really appreciate everyone's help on trying to get this to work!
Quote Reply
Re: [AndyNewby] Single Category with No Link Count (rest same) In reply to
>>
And he said the OR didnt work
<<

Hmm...for some reason when I entered the thread it took me straight to your post so I missed the reply..
Quote Reply
Re: [Me2Be] Single Category with No Link Count (rest same) In reply to
The following works for me (I just tested)....

<%unless ID == 2 or ID == 3%>
<small><i>(<%Number_of_Links%>)</i></small>
<%endunless%>


...perhaps you used:

<%unless ID == 2 or 3%>


...instead of:

<%unless ID == 2 or ID == 3%>

Last edited by:

RedRum: Feb 22, 2002, 10:46 AM
Quote Reply
Re: [RedRum] Single Category with No Link Count (rest same) In reply to
In Reply To:
...perhaps you used:
<%unless ID == 2 or 3%>
You are correct, that's what I did Blush -- I'll go try your way now!

Do you know where I can do this for the main page categories?

Thank you, and happy Friday!
Quote Reply
Re: [Me2Be] Single Category with No Link Count (rest same) In reply to
>>Do you know where I can do this for the main page categories<<

It will do it automatically. subcategory.html affects the main page too contrary to the name.
Quote Reply
Re: [Me2Be] Single Category with No Link Count (rest same) In reply to
Quote:
Thank you, and happy Friday!
Every days a happy day Cool
Quote Reply
Re: [RedRum] Single Category with No Link Count (rest same) In reply to
It worked! It worked!!! Thank you :) :) :)