MyBB Community Forums

Full Version: member color in welcome block
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I edited the welcome block template. i.e.

header >> header_welcomeblock_member

every thing is working fine but I'm not able to find the {$username} in welcome block. Hence not able to set the style for username in the welcome block.
here is the code of welcome block

<span style="float:right;color:#ffffff;">{$lang->welcome_current_time}</span>
		{$lang->welcome_back} (<a href="{$mybb->settings['bburl']}/usercp.php" style="color:#ffffff"><strong>{$lang->welcome_usercp}</strong></a>{$modcplink}{$admincplink} &mdash; <a style="color:#ffffff" href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a>)<br />


Edit: oops, the style changes in language files are not working ... IGNORE this

{$lang->welcome_back} is from global.lang.php

<strong>Welcome back, {1}</strong>. You last visited: {2}
Yeah it is there. But how to get username ? {$username} is not working
{$post['username']} is also not working
This is what I use:
{$mybb->user['username']}
Done thankx solved