Monk3h Posted May 4, 2008 Share Posted May 4, 2008 To keep tribe members from doing actions they shouldnt be able to do i am currently using this. if ($stat[id] != $mytribe[owner]) How would i edit this so that tribe Coowners are alowed to view these areas as well as Owners? Im not sure how to add the if ($stat[id] != $mytribe[owner] or $mytribe[coowner]) Please help.. Link to comment https://forums.phpfreaks.com/topic/104082-nubji-question/ Share on other sites More sharing options...
DarkWater Posted May 4, 2008 Share Posted May 4, 2008 if ($stat[id] != $mytribe[owner] || $stat[id] !=$mytribe[coowner]) { echo "You can't view this!"; } else { //Display some stuff } That's the best I can give you based on the code you gave us, lol. Link to comment https://forums.phpfreaks.com/topic/104082-nubji-question/#findComment-532824 Share on other sites More sharing options...
Monk3h Posted May 4, 2008 Author Share Posted May 4, 2008 That didnt work. When a coowner tries to view a section with that at the start it still displays the "You are now a tribe owner message" Even tho they should be able to view it. :S Link to comment https://forums.phpfreaks.com/topic/104082-nubji-question/#findComment-532829 Share on other sites More sharing options...
Monk3h Posted May 4, 2008 Author Share Posted May 4, 2008 Also the Tribe Leader cant View that area now. =/ Link to comment https://forums.phpfreaks.com/topic/104082-nubji-question/#findComment-532841 Share on other sites More sharing options...
Monk3h Posted May 4, 2008 Author Share Posted May 4, 2008 I was looking for && instead of ||. Managed to go thru all the possible ones and founf the right one. Thanks for your help. Link to comment https://forums.phpfreaks.com/topic/104082-nubji-question/#findComment-532844 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.