View private shouts in MyShoutbox
#12
(2012-10-20, 05:05 AM)$*ch~irfan*$ Wrote: if ($mybb->user['uid'] == intval($userID) || $mybb->user['uid'] == $row['uid'] || $mybb->usergroup['cancp'] == 1)


my owner group id is 9

that code is correct

if ($mybb->user['uid'] == intval($userID) || $mybb->user['uid'] == $row['uid'] || $mybb->usergroup['cancp'] == 9)

No. Basically, what the added bit of what first code is saying is "If this group can access the ACP, then do this". It's pretty much binary/boolean (for want of a better explanation) - 1 is true, 0 is false.

TL;DR the code on top is correct.
Please don't PM me for support. Smile
Reply


Messages In This Thread
View private shouts in MyShoutbox - by Paul H. - 2011-07-01, 02:07 AM
RE: View private shouts in MyShoutbox - by mbw227 - 2011-07-05, 06:53 PM
RE: View private shouts in MyShoutbox - by mbw227 - 2011-07-06, 04:15 AM
RE: View private shouts in MyShoutbox - by Krytic - 2012-10-20, 10:58 AM
RE: View private shouts in MyShoutbox - by Krytic - 2012-10-21, 12:35 AM
RE: View private shouts in MyShoutbox - by Krytic - 2012-10-24, 04:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)