Jump to content


Photo

hiding a category question


  • Please log in to reply
2 replies to this topic

#1 darkcarnival

darkcarnival
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts

Posted 11 March 2006 - 01:45 AM

hi,

on a program i made i would like to hide member-only categories but i do not know how to do it.

currently the category will appear but when a gust enters it they get a access denied message. iidealy i would like it to be hidden from guests.

question is, how do i do this?

thanks :)

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 11 March 2006 - 02:35 AM

if ($you_are_a_member == "yes") {
    echo category;
}

I'm sure you can work something like that into your script.
Legend has it that reading the manual never killed anyone.
My site

#3 darkcarnival

darkcarnival
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts

Posted 11 March 2006 - 03:35 AM

ok yeah that sounds simple enough :)

thanks :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users