![]() |
in_array problems
I was using this to set permissions on a php page:
PHP Code:
|
I think it should be:
Code:
if (is_member_of($vbulletin->userinfo, 1, 3, 4, 8)) |
Thanks for the response. I gave that a shot earlier and it's weird, everyone is still being blocked.
If I do: PHP Code:
PHP Code:
PHP Code:
|
is_member_of($vbulletin->userinfo, 1,3,4,8);
|
Unfortunately that produces the same result.
|
What's code did you use?
|
Quote:
PHP Code:
PHP Code:
|
Use this and post the full results back here;
PHP Code:
|
Array ( [userid] => 2105 [usertitle] => Owner [customtitle] => 1 [joindate] => 949813200 [daysprune] => 0 [lastvisit] => 1155232031 [lastactivity] => 1155232031 [lastpost] => 1155229271 [posts] => 12168 [timezoneoffset] => -5 [membergroupids] => [displaygroupid] => 6 [reputation] => 350
|
I've removed alot of the unnecessary stuff from your post
You are a member of usergroup 6 and didn't get "No Permission" echoed out, so it seems to be working to me. |
All times are GMT. The time now is 10:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|