Free-Conversant Support / Conditional Macro: userIsZoneAdmin
 Home   About Conversant   Free Sites   Hosting   Support   XML-RPC 

Search



Documentation >> Conditionals >> users >> userIsZoneAdmin

Conditional Macro: userIsZoneAdmin

Operators:

  • no operators

Usage Notes

  • This is a unary macro, it doesn't work with any standard |conditional operator|.

  • In a web page, this macro will evaluate to true if the current user is an admin on of the zone that contains the current conversation, and is logged in. Otherwise, it returns false.

  • In email, this is how it works:

    • If the site is in Single-Subscriber mode (using a mailing list), then it will always return false because the single email is being sent to all subscribers.

    • If the site is in Multi-Subscriber mode, then it will behave exactly like it does when being used in a web page. That is, if the person receiving the message is an admin for the zone that contains the site that's sending the message, it returns true. If the person receiving the message is not a zone admin, it returns false.

Examples

This example would show line 1 to Zone Admins (of this site), and line 2 to everyone else.

<!--#if condition="userIsZoneAdmin"-->

1. Your are a manager of this site's zone, and can see this line.

<!--#else-->

2. You're not a manager of this site's zone, or you haven't logged in, so this is what you see.

<!--#endIf-->

See the above code in action, here:

2. You're not a manager of this site's zone, or you haven't logged in, so this is what you see.
View in DG