[pmwiki-devel] Displaying a user's groups

Patrick R. Michaud pmichaud at pobox.com
Fri Nov 24 14:38:47 CST 2006


On Wed, Nov 15, 2006 at 03:21:39PM -0500, Rodney Morris wrote:
> Hello!
> 
> I'm relatively new to pmWiki, but I'm already hooked.  I've run into a
> bit of a wall while designing my wiki page and I was hoping someone
> with more experience might be able to help.  I checked the archives
> and did some poking around in pmwiki.php and authuser.php
> 
> I'd like to display a user's security group while they're logged in,
> pulled from groups defined in my .htgroup file.
> 
> For example, on a menu at the top of the page, I included the
> following "welcome message":
> 
> * Welcome, {$Author}!
> 
> Is there something similar I could do to show what groups they are in?
>  For example:
> 
> * You are in the {$Groups} usergroups.
> 
> The display would be something like:
> 
> You are in the Admins Users Authors Editors usergroups.
> 
> Is there a solution to this one?

We should probably come up with a {$AuthGroups} page variable
that would display this information.

Pm



More information about the pmwiki-devel mailing list