Summary:
$feu_smarty get_user_group
Detailed Description:
I needed a way to get the use's group so I wrote this and thought it may be
something to add to the core... or something like it...
{$feu_smarty->get_user_group($entry.id,'userGroups')}
in class.feu_smarty.php
function get_user_group($uid,$assign)
{
if( empty($uid) ) return;
if( empty($assign) ) return;
if( !is_object($this->_module) ) return;
$groups = $this->_module->GetMemberGroupsArray($uid);
$groupname = $this->_module->GetGroupName( $groups[0]['groupid'] );
global $gCms;
$smarty =& $gCms->GetSmarty();
$smarty->assign($assign,$groupname);
return;
}
Cheers
Jeremy