Create a Drop Down Menu in Welcome block Header
Hello friends,
i have been working with drop downs and i found a best drop down menu bar in a site called soportemyb.com
I tried to incorporate into my site,and i imported a similar type of drop down menu bar to mybb from a tutorial from DYNAMIC DRIVE and modified to our use.
I think this is the best menu for mybb and even VB dosent have this.
so follow the steps :
1.Download the following files.
Just give a right click and download
a)anylinkcssmenu.css
b)anylinkcssmenu.js
Then
upload the anylinkcssmenu.js file to your root>jscripts folder.
Now its time for us to edit the themes.
2.In ACP go to themes and templates>themes>yourtheme>addstylesheet>
now make a new stylesheet,click options globally,and name it as anylinkcssmenu.css and click write my own content.
Fill in it the data from the file you have down loaded called [b]anylinkcssmenu.css and save it.[/b]
3.Go to your theme>global.css>edit in Advanced mode>
and add this code at the bottom.
note:
In #Panel{ you need to edit your background color
to find specific color use this site : www.0to255.com
4.Now its all HTML business.
Navigate to your templates>your theme templates>Header templates>header_welcomeblock member templates.
Replace the template code with the code given below.
Note: you can add any links you like,provided they are valid,and also edit correct path,of images.
Now you can have a beautiful Mouse Hover Menu in welcome block with many links.
demo added : www.enviradesign.co.cc (need to register to see the demo)
Hope this helps a lot of users,and be seen in many communities.
Thank you.
Hello friends,
i have been working with drop downs and i found a best drop down menu bar in a site called soportemyb.com
I tried to incorporate into my site,and i imported a similar type of drop down menu bar to mybb from a tutorial from DYNAMIC DRIVE and modified to our use.
I think this is the best menu for mybb and even VB dosent have this.
so follow the steps :
1.Download the following files.
Just give a right click and download
a)anylinkcssmenu.css
b)anylinkcssmenu.js
Then
upload the anylinkcssmenu.js file to your root>jscripts folder.
Now its time for us to edit the themes.
2.In ACP go to themes and templates>themes>yourtheme>addstylesheet>
now make a new stylesheet,click options globally,and name it as anylinkcssmenu.css and click write my own content.
Fill in it the data from the file you have down loaded called [b]anylinkcssmenu.css and save it.[/b]
3.Go to your theme>global.css>edit in Advanced mode>
and add this code at the bottom.
.anylinkcss {
position:absolute;
left:0;
top:0;
visibility:hidden;
border:1px solid black;
font:normal 10px Verdana;
z-index:100;
background:#000;
min-width:130px;
padding:3px
}
.anylinkcss ul{
margin:0;
padding:0;
list-style-type:none;
text-align:left
}
.anylinkcss ul li a{
display:block;
padding:4px 10px 4px 4px;
text-decoration:none;
font-weight:bold;
background:#d0f0ff;
color:#000000
}
.anylinkcss ul li a:hover{
background:#ddd;
color:#000000
}
.anylinkshadow{
position:absolute;
margin-top:4px;
left:0;
top:0;
z-index:99;
background:black;
visibility:hidden
}
ul.memberblock{
margin:0;
padding:0
}
ul.memberblock li{
display:inline
}
ul.memberblock li a{
font-size:11px;
font-weight:bold;
float:left;
padding:4px 15px;
outline:none
}
ul.memberblock li a:link,ul.bloque_miembro li a:visited{
color:#000;
text-decoration:none
}
ul.memberblock li a:hover,ul.bloque_miembro li a:active{
color:#515151;
text-decoration:none
}
ul.visitorblock{
margin:0;
padding:4px;
text-align:center
}
ul.visitorblock li{
display:inline
}
ul.visitorblock li a{
font-size:11px;
font-weight:bold;
padding:4px 50px;
outline:none
}
ul.visitorblock li a:link,ul.visitorblock li a:visited{
color:#000;
text-decoration:none
}
ul.visitorblock li a:hover,ul.visitorblock li a:active{
color:#515151;
text-decoration:none
}
#upanel {
background: #cacaca;
color: #fff;
font-size: 11px;
height: 24px;
}
note:
In #Panel{ you need to edit your background color
to find specific color use this site : www.0to255.com
4.Now its all HTML business.
Navigate to your templates>your theme templates>Header templates>header_welcomeblock member templates.
Replace the template code with the code given below.
Note: you can add any links you like,provided they are valid,and also edit correct path,of images.
<li style="float: right;"><a href="{$mybb->settings['bburl']}/member.php?action=logout&logoutkey={$mybb->user['logoutkey']}"> <strong>{$lang->welcome_logout}</strong></a></li>
</ul>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/anylinkcssmenu.js"></script>
<script type="text/javascript">anylinkcssmenu.init("anchorclass")</script>
<div id="upanel">
<ul class="memberblock">
<li><a href="#" class="anchorclass" rel="messages[click]">Messages/Posts <img src="{$theme['imgdir']}/down.gif" alt="Desplegable" width="11" height="8" /></a></li>
<li><a href="#" class="anchorclass" rel="communication[click]">Community <img src="{$theme['imgdir']}/down.gif" alt="Desplegable" width="11" height="8" /></a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help">MS Help </a></li>
</ul>
<ul class="memberblock" style="float: right;">
<li><a href="#" class="anchorclass" rel="controlpanel[click]">My Control Panel <img src="{$theme['imgdir']}/down.gif" alt="Desplegable" width="11" height="8" /></a></li>
<li><a href="#" class="anchorclass" rel="user[click]">{$mybb->user['username']} <img src="{$theme['imgdir']}/down.gif" alt="Desplegable" width="11" height="8" /></a></li>
</ul>
</div>
<div id="messages" class="anylinkcss">
<ul>
<li class="thead" style="padding:3px; font-weight:bold;">Activity </li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getnew">New posts </a></li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">Todays posts </a></li>
</ul>
</div>
<div id="comunication" class="anylinkcss">
<ul>
<li class="thead" style="padding:3px; font-weight:bold;">Community </li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php">Memberlist </a></li>
<li><a href="{$mybb->settings['bburl']}/showteam.php">Team </a></li>
<li><a href="{$mybb->settings['bburl']}/online.php">Online Now </a></li>
<li><a href="{$mybb->settings['bburl']}/online.php?action=today">Online Today </a></li>
</ul>
</div>
<div id="controlpanel" class="anylinkcss">
<ul>
<li class="thead" style="padding:3px; font-weight:bold;">Profile Settings</li>
<li><a href="{$mybb->settings['bburl']}/usercp.php">Control Panel </a></li>
<li class="thead" style="padding:3px; font-weight:bold;">My profile </li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=profile">Edit Profile </a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=avatar">Edit Avatar </a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=editsig">Edit signature </a></li>
<li>{$modcplink}{$admincplink}</li>
</ul>
</div>
<div id="user" class="anylinkcss">
<ul>
<li class="thead" style="padding:3px; font-weight:bold;">{$mybb->user['username']} </li>
<li><a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">View Profile
</a></li>
<li><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 360, 460);">Buddy List </a></li>
<li class="thead" style="padding:3px; font-weight:bold;">Private Messages<br />
<li><a href="{$mybb->settings['bburl']}/private.php?fid=1">Inbox </a></li>
<li><a href="{$mybb->settings['bburl']}/private.php?fid=2">Outbox </a></li>
</ul>
</div>
Now you can have a beautiful Mouse Hover Menu in welcome block with many links.
demo added : www.enviradesign.co.cc (need to register to see the demo)
Hope this helps a lot of users,and be seen in many communities.
Thank you.