MyBB Community Forums

Full Version: Some problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to achieve something like the panel shown below.
Welcome back, admin! — Log Out                                                   User CP — Mod CP — Admin CP
Private Messages (Unread 0, Total 1)

This is my #panel in global.css
#panel {
	background: url(images/xenthemes/panel_bg.png);
	color: #fff;
	font-size: 11px;
	border: 1px solid #D4D4D4;
	padding: 8px;
	bottom: 0;
	left: 0;
	position: fixed;
	width: 99%;
}

My header_welcomeblock_member template is
<strong>Welcome back, {$mybb->user['username']}!  &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a>  <div style="text-align: right;"><a href="{$mybb->settings['bburl']}/usercp.php">User CP</a>{$modcplink}{$admincplink}</div>
<br /><a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</strong>

However, I'm getting this.
[attachment=19933]
(The extra <br /> which I cannot find)
Bump.
Please try the following CSS, without "left" and "position", then it should work.

#panel {
    background: url(images/xenthemes/panel_bg.png);
    color: #fff;
    font-size: 11px;
    border: 1px solid #D4D4D4;
    padding: 8px;
    bottom: 0;
    width: 99%;
}
<strong class="float_right"><a href="{$mybb->settings['bburl']}/usercp.php">User CP</a>{$modcplink}{$admincplink}</strong>
<strong>Welcome back, {$mybb->user['username']}!  &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a>
<br />
<a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</strong>

Try that.