Usergroup color on welcomeblock

by Aoki - 15-01-2015, 12:41 AM
selling fadeds nudes
Posts:
5,410
Joined:
Jan 2015
Likes:
1,475
Credits:
22,057
Reputation:
218
2 Years of Service
#1
OP
Posted: 15-01-2015, 12:41 AM
MyBB 1.6.3 and below

Open ./global.php and search for:

Code:
// Format the welcome back message$lang->welcome_back = $lang->sprintf($lang->welcome_back, $mybb->user['username'], $lastvisit);

Replace it with:

Code:
// Format the welcome back message$formatted_username = format_name($mybb->user['username'], $mybb->user['usergroup'], $mybb->user['displaygroup']);$lang->welcome_back = $lang->sprintf($lang->welcome_back, $formatted_username, $lastvisit);

MyBB 1.6.4 and above

Open ./global.php and search for:

Code:
lang->welcome_back = $lang->sprintf($lang->welcome_back, build_profile_link($mybb->user['username'], $mybb->user['uid']), $lastvisit);

Replace with:

Code:
$formatted_username = format_name($mybb->user['username'], $mybb->user['usergroup'], $mybb->user['displaygroup']);$lang->welcome_back = $lang->sprintf($lang->welcome_back, build_profile_link($formatted_username, $mybb->user['uid']), $lastvisit);

Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
Novice
Posts:
23
Joined:
Feb 2015
Likes:
0
Credits:
30
Reputation:
0
2 Years of Service
#2
Posted: 21-02-2015, 08:59 AM
Thanks bro i've been trying to learn how to do this.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)