1

Topic: Avatar in "Who's Online?" Box

Hey, I was wondering if someone could help me in displaying an avatar under the users name in the "Who's Online?" box. Basically I want the user who is currently logged online to see:

Welcome (user)

*Their avatar*

Registered users online:
Guests online:
Online:

Users:
Topics:
Posts:

I have opened up functions.php and found the section I assume you would need to edit (I have posted this below). Please tell me if I am going in the wrong direction.

return $lang_login['Welcome'].' <strong>'.$pun_user['username'].'</strong><br /><br />'.implode($online,'').'<br />
                '.$lang_login['Users'].': <strong>'. $stats['total_users'].'</strong><br />
                '.$lang_login['Topics'].': <strong>'.$stats['total_topics'].'</strong><br />
                '.$lang_login['Posts'].': <strong>'.$stats['total_posts'].'</strong><br />';
        }

        if ($pun_config['o_users_online'] == '0')
        {
            $online = array();
            $online[] = '<div class="clearer"></div>';

            return $lang_login['Welcome'].' <strong>'.$pun_user['username'].'</strong><br /><br />'.implode($online,'').'<br />
                '.$lang_login['Users'].': <strong>'. $stats['total_users'].'</strong><br />
                '.$lang_login['Topics'].': <strong>'.$stats['total_topics'].'</strong><br />
                '.$lang_login['Posts'].': <strong>'.$stats['total_posts'].'</strong><br />';
[img]http://osmiumnet.com/xenon_sig.gif[/img]
Visit OsmiumNet for free SSH, SFTP and Forum Membership Accounts!