News:

Join the Facebook Fan Page.

Main Menu

hiding Catagory

Started by walker, June 24, 2005, 01:05:12 PM

Previous topic - Next topic

walker

Is there a way to hide a category so that it isn't visible to users
and maybe just link to it on the side bar

for instance
an archive category

Owdy

Admin -> Manage Boards -> modify -> Allowed Groups -> remove all

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

morph

Quote from: Owdy on June 24, 2005, 04:35:45 PM
Admin -> Manage Boards -> modify -> Allowed Groups -> remove all



Yes, but I think he is looking for something where it won't show up on the main page of the forum, but there could be a link to it to access it. But yes, it is possible but it would have to be a mod.

Coming soon!

Kirby

You can put it in the BoardIndex template.

find:

foreach ($context['categories'] as $category)
{


add after:

if ($category['id'] == <the categories ID>)
continue;

That way, it will disappear from the view.

walker

#4
Thanks

That worked just fine  :D

Quoteforeach ($context['categories'] as $category)
   {
     if ($category['id'] == 2 )
         continue;

in my case, as i was hiding category #2 on the index page.
nice easy usefull line--- thanks again


Advertisement: