PDA

View Full Version : password forum


prcast
04-09-2004, 03:37 PM
I am trying to make it so i can limit which usergroup doesn't need to have password to access their section but i keep messing it up.



global $permissions, $usergroupcache, $bbuserinfo, $stylevar, $scriptpath;
if (!$password OR ($permissions['adminpermissions'] & CANCONTROLPANEL) OR ($permissions['adminpermissions'] & ISMODERATOR) OR can_moderate($forumid) OR <b>!($usergroupcache["$USERGROUPID"]['forumpermissions'] & NOPASSWORD)</b>)

i just can't figure out what to set so it looks at my forumspermissingroup and see if it says to bypass password or not.

Zachery
04-09-2004, 03:52 PM
I am trying to make it so i can limit which usergroup doesn't need to have password to access their section but i keep messing it up.



global $permissions, $usergroupcache, $bbuserinfo, $stylevar, $scriptpath;
if (!$password OR ($permissions['adminpermissions'] & CANCONTROLPANEL) OR ($permissions['adminpermissions'] & ISMODERATOR) OR can_moderate($forumid) OR <b>!($usergroupcache["$USERGROUPID"]['forumpermissions'] & NOPASSWORD)</b>)

i just can't figure out what to set so it looks at my forumspermissingroup and see if it says to bypass password or not.
well remove the <b> </b> around it for starters

prcast
04-09-2004, 05:01 PM
well remove the <b> </b> around it for starters
that was done on purpose to show where i am messing up. i am trying to get it to check the forum usergroup permission. it keeps screwing up either always showing the forum or just the password screen. i need it so i can set certain forums up with password and only certain groups can access it without the password.