Now, how would you go about adding special icons before peoples names on the online list according to any special ranks they have?
This would require more than a little customization in the templates, but it's more than possible.
The group they're in is available... it's described in the BoardIndex template. Do you know a little PHP?
-[Unknown]
no, that's the problem. I'm making the forum for a movie that's in production right now. It'd be nice to have identification icons.
Find:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
Replace:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', $txt[140], ':<br />';
$temp = array();
foreach ($context['users_online'] as $user)
$temp[] = '<img src="' . $settings['images_url'] . '/group_' . $user['group'] . '.gif" alt="" />' . $user['link'];
echo implode(', ', $temp);
}
And then, put images in Themes/default/images, like so:
group_1.gif (admins)
group_2.gif (global moderators)
And similar.
-[Unknown]