User Titles?
#6
I think it must be something like this:

$usergroups_cache = $cache->read('usergroups');
if (trim($user['usertitle']) != '')
{
	$usertitle = $user['usertitle'];
}
elseif ($user['displaygroup'] > 0)
{
	$usertitle = $usergroups_cache[$user['displaygroup']]['usertitle'];
}
else
{
	$usertitle = $usergroups_cache[$user['usergroup']]['usertitle'];
}
Regards, Ad Bakker (NL)
Reply


Messages In This Thread
User Titles? - by marcus123 - 2015-06-24, 03:57 PM
RE: User Titles? - by Omar G. - 2015-06-24, 07:28 PM
RE: User Titles? - by marcus123 - 2015-06-27, 11:46 AM
RE: User Titles? - by Ad Bakker - 2015-06-27, 12:19 PM
RE: User Titles? - by marcus123 - 2015-06-27, 02:54 PM
RE: User Titles? - by Ad Bakker - 2015-06-27, 03:05 PM
RE: User Titles? - by marcus123 - 2015-06-28, 01:16 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)