MyBB Community Forums

Full Version: Lastmember usergroup colour on index page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

I want the name of the last member on index page, to be colorized according to his/her membergroup colour.

I've tried to change this in index.php:
$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);

Into this:
$newestmember = build_profile_link(format_name($stats['lastusername'], $stats['usergroup'], $stats['displaygroup']), $stats['lastuid']);
But nothing changed.

I guess i'm missing something ;P
Change it into this;

		$newmem = get_user($stats['lastuid']);
		$newestmember = build_profile_link(format_name($stats['lastusername'], $newmem['usergroup'], $newmem['displaygroup']), $stats['lastuid']); 

the usergroup and displaygroup aren't stored in the statscache.
Thanks.Big Grin