Member
Member
kjonescubist   30-07-2021, 21:05
#1

I'm looking to add a few blocks of text that would only display for the master user. I see there is a class for isMasterUser( $user ). Would that be the best one to use?

Administrator
Administrator
acrylian   30-07-2021, 21:19
#2

On standard theme context use something like this:

  if(zp_loggedin(ADMIN_RIGHTS) && $_zp_current_admin_obj->master) {  … } 

Within a function $_zp_current_admin_obj must be declared global if not already

Member
Member
kjonescubist   02-08-2021, 14:04
#3

Perfect. Thank you!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.