MyBB Central

Full Version: Recreating Login Welcome_Block Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If you see in the following demo on a theme.

The Login Bar. (AKA Template: header_welcomeblock)
Is a static bar on top of the page.

How can i recreate this since just switching the code from one theme to another doesnt seem to work.
That must be the Header I guess...

Try looking in the header templates.
Still nothing. If anyone that creates themes (Waiting for Omni) that knows how to do this and can provide a link to the coding or tutorial for this. or even where this dock is located in the template. it would be great.
I create themes, that should be there.
Well looking for what the name is, its a sticky bar, static/fixed header/footer.
Most of those i found how to do it in HTML and one very flawed one in CSS.

<template name="header" version="1409"><![CDATA[<div class="fixed_wb">{$welcomeblock}</div>
<div class="header_main">
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
<div class="header_menu">
<div class="menu">
                         <a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.png" alt="" title="" /><span class="smalltext">{$lang->toplinks_search}</span></a>
                         <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.png" alt="" title="" />{$lang->toplinks_help}</a></li>
                         <a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.png" alt="" title="" /><span class="smalltext">MemberList</span></a>
                         <a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.png" alt="" title="" /><span class="smalltext">{$lang->toplinks_calendar}</span></a>
<div id="container">
<hr class="hidden" />
        <br class="clear" />
        <div id="content">
            <hr class="hidden" />


and this is the welcomeblock member which failed to work with a different theme.
        <template name="header_welcomeblock_member" version="1409"><![CDATA[<span style="float: left; padding-left: 10px;">
{$lang->welcome_back} &nbsp <a href="{$mybb->settings['bburl']}/private.php"><strong>{$lang->welcome_pms}</strong></a> {$lang->welcome_pms_usage} &nbsp <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><strong>{$lang->welcome_logout}</strong></span></a>
<span style="float: right; padding-right: 10px;">
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> | <a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a>{$modcplink}{$admincplink}
Ok well i did some testing (Still couldnt find the code) so i just remade my own.

Pure CSS so it really does help when its on a new template xD.

#panel {
    background: #efefef url(images/bar.png) top left repeat;
    width: 99.2%;
    color: #152b2d;
    position: fixed;
    border-bottom: 40px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    left: 0%;
    top: 640px;
    z-index: 1;
    margin-left: 3px;
    padding: 0px;
    font-size: 11px;

#panel a:hover {
    color: #000000;

#panel .links {
    color: #152b2d;
    margin: 0;
    float: right;

That is purely for my forum alone but it still Beta phase. Currently it works since its fixed position but when it comes to different screen sizes and fluid sites (Which mine is) then it just sits in the middle of the screen....

But i understand what i had to do and now i can develop it.
But for now my website looks ok without it. Guess the bar will have to wait.