![]() |
[SOLVED] i need condition if user not moderator
Hello ,
i need php condition " if user is moderator " In other words, I want Run Code only if is this user is a moderator Like : PHP Code:
|
Just for certain moderators or the moderator group?
|
Quote:
Code:
/** Code:
if (can_moderate(0, '', $userid)) |
Quote:
Quote:
i think is working , but i have problem ... i want show this code for only moderators but it also Shows for admin :( No other solution if i don't want to use usegroupid |
Nice call @Kh99, I would modify that routine. Seems like the way to go, at least I have not found anything better. :)
|
Quote:
Code:
<if condition="can_moderate() AND !($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'])"> Otherwise, you can write a plugin to do whatever checks you want and set a variable. |
One question, is can_moderate available in all areas?
|
Quote:
Not sure what you mean.. This conditional goes around what ever you want to have those conditions. It is only going to work where ever that code is placed and surrounded with the conditional. |
Quote:
|
THNX kh99, IT'S WORKING GOOD
PHP Code:
Quote:
i try this Conditionals to be sure if user is " moderate the current forum" but not work on template [memberaction_dropdown] for vb4 PHP Code:
PHP Code:
|
All times are GMT. The time now is 01:04 AM. |
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:
|