[pmwiki-users] conditional display of text based on authgroup

Hans design5 at softflow.co.uk
Wed Nov 28 05:47:23 CST 2007

Wednesday, November 28, 2007, 11:08:54 AM, Iannis Zannos wrote:

>    - Markup: (:if authgroup @groupname:) or even (if authgroup id:sally)
>    - Definition: $Conditions['authgroup'] =
>    '$GLOBALS["AuthList"][$condparm] > 0';

> So I tried this example:

> * %rel=nofollow%(:if authgroup @special:)this is special group(:if:)

> I have no group named @special defined, but I have enabled AuthUser.
> If I understand correctly, the text "this is special group" should not be
> displayed.

It works fine for me. Because you can see the text following the
conditional markup I suppose that the definition is not right.
It should be in config.php:

$Conditions['authgroup'] = '$GLOBALS["AuthList"][$condparm] > 0';


More information about the pmwiki-users mailing list