Warning: Undefined variable $filepath in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_tikidocfromcode.php on line 146
Display text based on whether a user is in a group | Documentation for Tiki Wiki CMS Groupware
Loading...
 
Skip to main content
Display text based on whether a user is in a group

Plugin USERINGROUP

Introduced in Tiki15 and backported to Tiki 12.5 and Tiki14.2

Use this wiki plugin to check whether a specific userId is in a designated Group and display defined text for either case.

Parameters

Tiki Doc From Code error: useringroup not found

Example

This code:

Copy to clipboard
{useringroup userId="admin" testgroup="Registered" truetext="the user IS in the Group" falsetext="the user is NOT in the Group"}

Would produce on this site:

the user IS in the Group

Show PHP error messages