Top Left Text cha

Web & App Development

This is useful if you want to add a class to change things on the page depending on the usergroup.  Just insert the PHP below wherever you want to echo the usergroup...

$user = JFactory::getUser();
$groups = $user->get('groups');
foreach($groups as $group) {echo 'group'.$group.' ';}?>

Add comment

Security code

  • No comments found

Leave your comments

Post comment as a guest

Your comments are subjected to administrator's moderation.