MyBB Community Forums

Full Version: Force closed sidebar and messed up member block
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The theme for my forum has a sidebar but I need it removed. I know how to remove the icon, the only problem is that it comes open by default so if I do, new members will not be able to close it and it will be permanently open instead of closed, how I want it.

Also, the member block looks like [Image: 089ececbc1.jpg] instead of all being on one line?

Forum url: https://techtalkforums.org/

It's a new installation.

CSS for member block:
.headavatar {
background: #1B1F24;
padding: 5px;
position: relative;
width: 50px;
height: 50px;
float: right;
margin-left: 10px;
margin-top: -10px;
display: block;
}

.headavatar img {
display: inline;
width: 50px;
height: 50px;
}

html for member block:
<span class="headavatar"><img src="{$mybb->user['avatar']}" width="30" height="30" title="{$mybb->user['username']}" /></span>
<span class="alertwelcomeblock"><myalerts_headericon></span>
<div class="dropDownHook">
    <span>Welcome {$mybb->user['username']} ▼</span>
    <div class="dropDownContent">
<div class="arrow_box"></div>
       <ul style="border-right: 1px solid rgba(17, 17, 17, 0.35);margin-right: 4%;padding-right: 4%;">
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=avatar"><i class="icon-picture hcon"></i>Change Avatar</a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=editsig"><i class="icon-pencil hcon"></i>Change Signature</a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=profile"><i class="icon-edit-sign hcon"></i>Edit Profile</a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=email"><i class="icon-envelope-alt hcon"></i>Change Email</a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=password"><i class="icon-key hcon"></i>Change Password</a></li>
<li><a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}"><i class="icon-user hcon"></i>View Profile</a></li>
</ul>
 <ul>
<li><a href="{$mybb->settings['bburl']}/usercp.php"><i class="icon-user hcon"></i>UserCP</a></li>
<li><a href="{$mybb->settings['bburl']}/private.php"><i class="icon-envelope hcon"></i>Inbox</a></li>
<li><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);"><i class="icon-group hcon"></i>Buddy List</a></li>
{$modcplink}
{$admincplink}
<li><a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><i class="icon-signout hcon"></i>LogOut</a></li>
</ul>
    </div>
</div>
Sidebar html:
<li><a class="clickbutton" title="Close Side Bar"><i class="icon-chevron-left"  style="font-size: 16px;"></i></a><a class="clickedbuttons" title="Oepn Side Bar"><i class="icon-chevron-right"  style="font-size: 16px;"></i></a></li>

Thanks,
Hello there,

The forum you have posted does not have the minimum "Powered by MyBB" notice we require for technical support here. In order for us to give you further support, please add the following code to the footer template of your forum:

Admin CP --> Templates & Style --> *expand your template set* --> Footer Templates --> footer
Powered by <a href="http://www.mybb.com">MyBB</a>

I will close this thread until you have reinstated the Powered By line. Please post in the Private Inquiries forum to ask to have this thread reopened, where you can also raise any questions you have about this policy.

With regards,
MyBB Support Team