The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What conditional to use for an infraction group?
I have a custom feature on my forum that I don't want users restricted by infractions to be able to use. Normally, to restrict access for a certain usergroup I would do this:
Code:
if (!is_member_of($vbulletin->userinfo, X)) This doesn't work for infraction groups though; I'm guessing because vBulletin only overrides their permissions with my restricted usergroup settings instead of actually moving them into the usergroup. So what do I need to use to block their access? Note that this code is in a php file and not the template, in case that makes a difference. |
#2
|
|||
|
|||
I found it. So I don't contribute to the many useless search results I had to dig through before getting to something that worked, here it is:
Code:
if ($vbulletin->userinfo['ipoints'] < 1) In my case, I'm hiding the next bit of code from anyone who has more than 1 infraction point. The "1" is the number of infraction points; change it to what applies to your forum. |
3 благодарности(ей) от: | ||
CAG CheechDogg, ozzy47, tbworld |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|