Loading...
 
Skip to main content

History: PluginUserInGroup

Source of version: 5 (current)

Copy to clipboard
            ! 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.

{maketoc}
!!Parameters
{pluginmanager plugin="useringroup"}

!! Example
 ''This code:''
{CODE(colors="tiki")}
{useringroup userId="admin" testgroup="Registered" truetext="the user IS in the Group" falsetext="the user is NOT in the Group"}
{CODE}
''Would produce on this site:''

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

~tc~ (alias(Plugin UserInGroup)) ~/tc~