The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Hi Kh99,
So I am having an issue with the plugin. I'm using the following code: Code:
if ($GLOBALS['forumid'] != 99 AND is_member_of($bbuserinfo, 5,6,7)) { $vbulletin->input->clean_gpc('p', 'accept_rules', TYPE_BOOL); if (!$vbulletin->GPC['accept_rules']) { $errors[] = "<span style='color: #ba0000; background-color: #FDFD65;'>Please scroll down and accept the highlighted rules before submitting your post.</span>"; } } Now if I use is_member_of($bbuserinfo, 5,6,7) it doesn't seem to work. If I put an exclamation in front of it then it works...but I'm not sure why... EDIT: So here's the following things I've tried, as an admin: if ($GLOBALS['forumid'] !=99 AND is_member_of($bbuserinfo, 5,6,7)) <== Doesn't work (lets me post) if ($GLOBALS['forumid'] !=99 AND is_member_of($bbuserinfo, 2,3,4)) <== Works (lets me post) if ($GLOBALS['forumid'] !=99 AND !is_member_of($bbuserinfo, 5,6,7)) <=== Doesn't let me as an admin post (so it works, but not sure why it needs an ! in front of is_member_of) |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|