MyBB Community Forums
Administrator Control Panel in PHP - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: Administrator Control Panel in PHP (/thread-205489.html)



Administrator Control Panel in PHP - CezPlayer - 2016-10-29

I tried with:
if ($mybb->usergroup['canadmincp'])
but it is not working, what name have admin cp in PHP?


RE: Administrator Control Panel in PHP - doylecc - 2016-10-29

It's:
if ($mybb->usergroup['cancp'])



RE: Administrator Control Panel in PHP - CezPlayer - 2016-10-29

Thank you very much for help


RE: Administrator Control Panel in PHP - Dr_The_One - 2016-10-29

What is this?
can anyone explain it.


RE: Administrator Control Panel in PHP - CezPlayer - 2016-10-29

I'm writing plugin. It's reminder. I needed ACP name in PHP because I wanted to set such that user, which has permission to ACP showed up reminder (I'm setting reminders for different groups).
Thank you, Google Translator Wink