The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
in_array problems
I was using this to set permissions on a php page:
PHP Code:
|
#2
|
||||
|
||||
I think it should be:
Code:
if (is_member_of($vbulletin->userinfo, 1, 3, 4, 8)) |
#3
|
|||
|
|||
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:
|
#4
|
|||
|
|||
is_member_of($vbulletin->userinfo, 1,3,4,8);
|
#5
|
|||
|
|||
Unfortunately that produces the same result.
|
#6
|
|||
|
|||
What's code did you use?
|
#7
|
|||
|
|||
Quote:
PHP Code:
PHP Code:
|
#8
|
||||
|
||||
Use this and post the full results back here;
PHP Code:
|
#9
|
|||
|
|||
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
|
#10
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|