Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Hidden category name

Quote Reply
Hidden category name
Hi
is there a way to mark a top or sub category to be hidden so visitors can not access it through the regular interface?
Kind of like the adult in DMOS..

Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Hidden category name In reply to
This was discussed awhile back during the BETA development of LINKS SQL 2.0.

Basically, what you need to do is the following:

1) Add a column called Hidden (ENUM - 'Yes','No', DEFAULT = No) n the Category table.

2) Then hack the nph-build.cgi by adding a conditional statement that checks the value of the Hidden column.
========================================
Buh Bye!

Cheers,
Me

Last edited by:

AnthroRules: Sep 25, 2001, 8:18 PM
Quote Reply
Re: [Chewbaca] Hidden category name In reply to
Is a sample available how to hack the script that I can hide a category using dynamic pages?

Michael

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Heckler] Hidden category name In reply to
Quote:
2) Then hack the nph-build.cgi by adding a conditional statement that checks the value of the Hidden column.

Hello all,

Can somebody tell me how to hack the nph-build.cgi the way Eliot say above ?


Please help ..
Quote Reply
Re: [reenee] Hidden category name In reply to
You don't need to add any columns nor hack nph-build.cgi Smile

In subcategory.html try surrounding the code with:

<%unless Short_Name eq 'Adult'%>

...code...

<%endunless%>

Change Adult to the category name you want to hide. If you want to hide large numbers of categories then you may then need to add a column but it still doesn't require changes to nph-build.cgi.

Last edited by:

Paul: Mar 16, 2002, 1:25 AM
Quote Reply
Re: [Paul] Hidden category name In reply to
Thank you so much paul, i will try it later .... thanks again ..