PDA

View Full Version : PHP If user = moderator


Duckface
07-13-2015, 07:47 PM
What can I use for an if statement to determine whether a user is moderator or not i.e. if member is able to access the modcp?

Skyrider
07-13-2015, 08:53 PM
I'm not that much familiar with the mod variables as I haven't used them before, but you could try using:

if (can_moderate() == true) or if can_moderate())

MarkFL
07-13-2015, 09:07 PM
The condition to determine if a user has access to the ModCP is:

$show['modcplink']

Skyrider
07-14-2015, 04:53 AM
^ awesome, good to know :).