PDA

View Full Version : How to Hide Categories


Wayne Luke
Mon 6th Aug '01, 10:53am
This is how I answered your support ticket. However I felt everyone should enjoy the response so I am reposting it here.

You can do what you want quite easily. If you assign your category a display order of 0 (zero) it will not show on the main index page. This will include all of its subforums as well.

To access it you can call it by forumid directly. So if you create a category called "Buffy the Vampire Slayer" and it is forumid is 10 the URL would be:
http://www.yourdomain.com/forums/forumdisplay.php?forumid=10.

You could make that easier say something like:
http://www.yourdomain.com/forums/buffy

By creating a new directory and inserting the following into index.php:

<?
header ("Location: http://www.yourdomain.com/forumdisplay.php?forumid=10");
?>


Hope this helps many people.

Zorg
Wed 22nd Aug '01, 12:23pm
Thanks Luke, that works perfect :D

reveltaion456
Wed 29th Aug '01, 1:56am
Got it. Just when I was looking for it too ;)

pranesh
Thu 25th Sep '03, 10:43am
how do i hide or show buttons based on a certain condition. I've had a look at the postbit templates and i know that you are able to edit these templates. But how can u show or hide the buttons based on a certain condition. I need to show certain buttons for a particular user.

eg)
<if $admin >
code for button goes here
</if>

poolking
Thu 25th Sep '03, 11:02am
how do i hide or show buttons based on a certain condition. I've had a look at the postbit templates and i know that you are able to edit these templates. But how can u show or hide the buttons based on a certain condition. I need to show certain buttons for a particular user.

eg)
<if $admin >
code for button goes here
</if>
I think you are better off posting this in one of the "How Do I" sections as this thread is over 2 years old.