Hello
I want to show lastposters' username in the color of assigned to that usergroup on lastpost column on index.php.
How can I do that?
Thanks in advance.
Hello
open
./inc/functions_forumlist.php
Find
$lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']);
replace with
global $db;
$lastposter_query = $db->query("SELECT username, usergroup, displaygroup FROM ".TABLE_PREFIX."users WHERE uid='".$lastpost_data['lastposteruid']."'");
$lastposter_format = $db->fetch_array($lastposter_query);
$lastposter = format_name($lastposter_format['username'], $lastposter_format['usergroup'], $lastposter_format['displaygroup']);
$lastpost_profilelink = build_profile_link($lastposter, $lastpost_data['lastposteruid']);
You are great.
Thank you so much.
Just a thought, but this here SHOULD be a default thing with MyBB, as when you change a usergroup color, you usually want it to change globaly, of which it does not.
This would be a great feature in the newer versions
Dr Small