Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Rank Icons

Aloittaja Switch3Z, maaliskuu 05, 2005, 08:57:09 AP

« edellinen - seuraava »

Switch3Z

Now, how would you go about adding special icons before peoples names on the online list according to any special ranks they have?

[Unknown]

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]

Switch3Z

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.

[Unknown]

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]

Advertisement: