![]() |
IF user can moderate here
I know that I can use can_moderate() to find out if a user can moderate at all but how I can I check if they can moderate in forum x?
Would be great if there is something like: PHP Code:
Sorry for the bump but I really need this for an awesome mod ;) |
Bump?
|
can_moderate($forumid = 0, $do = '', $userid = -1, $usergroupids = '');
Code:
$forumid int Specific forum to check. If not set, will check whether the user is a moderator of any forum at all. |
It has overloads right? So this will work?
PHP Code:
|
Overloads? No.
If you want to check more then 1 forum you'll have to repeat the function call for each one. |
Okay thanks just one more thing.
What can I put in $do? Is there a list of things you can provide? e.g. how would I check if the user can open threads? |
Quote:
You can read up on them here: https://vborg.vbsupport.ru/showthread.php?t=166940 |
Thanks, I've checked that out.
|
Theres a "list" so to speak in '/includes/xml/bitfields_vbulletin.xml'
They'll be listed under "ugp" > "forumpermissions" and "misc" > "moderatorpermissions". You'll be interested in the name attribute. |
Thanks very much!
|
All times are GMT. The time now is 10:53 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:
|