Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
UKBL ~ Quality Drop Down Menu System Details »»
UKBL ~ Quality Drop Down Menu System
Version: 1.00, by UKBusinessLive UKBusinessLive is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.0 Rating:
Released: 01-28-2009 Last Update: 02-22-2009 Installs: 155
Template Edits
Re-useable Code Translations  
No support by the author.

UKBL ~ Quality Drop Down Menu System

You wanted Drop down Menu's that were easy to install and edit, Well now you've got it

Live Demo

http://www.aboxcafe.com/index.php

http://www.wheelsbd.com/

Compatible with almost ALL Browsers.

Hi Guys, i've had so many messages about My "Easy Menu Tabs" and when was i going to do Dropdown Tabs, Well i've listened and now i can happily add UKBL ~ Quality Drop Down menu's to our list of modifications.

This is just so easy to edit and install, as long as you feel confident with a few simple edits and uploading a graphics file to your images directory or even your photobucket account, if you don't want to mess about uploading to your server.

UKBL ~ Quality Drop Downs sit quite happily on top of your forums accessable from all pages of the forum



They look like any bog standard Menu Nav bar but when you hover the mouse over it you'll see the dropdowns, I've uploaded a test version to my forum, Take a look for yourselves http://www.ukbusinesslive.co.uk/forum

I've left the Top White Easy Men Bar in place also so you can compare both of them.

When you go over the menu bar the dropdowns should appear like in the picture below



See how the chosen links are highlighted

So now we come to the installation stage.

Download the dropdown.zip file below and open the VBOrg_Menu.txt file in notepad or any other text editor, as we need to edit a few files.

The first one we need to edit is the url of our Graphic File, So to cut a long story short we'll upload our graphic file to our Photobucket account, or any other account or image directory on your server, So firstly find

Code:
	/*"""""""" (MAIN) Container Edit Picture URL Here :-) """"""""*/	
	#qm0	
	{	
		padding:5px;
		background-image:url(http://i475.photobucket.com/albums/rr114/ukbusinesslive/center_tile_blue.gif);
		border-width:1px;
		border-style:solid;
		border-color:#eeeeee;
	}
and this is the line we need to edit, so that it gives us a nice gradiant blue acdcross the menu bar

Code:
background-image:url(http://i475.photobucket.com/albums/rr114/ukbusinesslive/center_tile_blue.gif);
Just replace the url within the brackets ( ) and thats it

Then we go and do the menu edits, You don't want your members click on your forum menu and ending up on my site :erm: So what we need to do now is change the menu links for yours, It take about 15 min's but its not hard to do, so lets do it.....

First find where our menu starts, This will be right at the bottom of the code, The HTML part of this and the first bit we need to change starts from here...

Code:
 <li><a class="qmparent" href="javascript:void(0)">MY CONTROL PANEL</a>

		<ul>
		<li><a href="http://www.ukbusinesslive.co.uk/forum/profile.php?do=editavatar" title="Edit Avatar">Edit Avatar</a></li>
		<li><a href="http://www.ukbusinesslive.co.uk/forum/profile.php?do=editsignature" title="Edit Signature">Edit Signature</a></li>
		<li><a href="http://www.ukbusinesslive.co.uk/forum/profile.php?do=editoptions" title="Edit Options">Edit Options</a></li>
		<li><span class="qmdivider qmdividerx" ></span></li>
		<li><a href="http://www.ukbusinesslive.co.uk/forum/subscription.php?do=viewsubscription" title="List Subscriptions">List Subscriptions</a></li>
		</ul></li>
Basically each tab is made up of a block like what you see above, You have the Main Tab Description which looks like this

Code:
<li><a class="qmparent" href="javascript:void(0)">MY CONTROL PANEL</a>
and you have all the sub links underneath and they look like this...

Code:
<li><a href="http://www.ukbusinesslive.co.uk/forum/profile.php?do=editavatar" title="Edit Avatar">Edit Avatar</a></li>
and its this one which we need to edit, basically if you want to keep the same link, all you need to do is to chasnge my url http://www.ukbusinesslive.co.uk/forum to your forums URL, and thats it, your link should work for your site.

If you want to change the link altogether and put your own, then replace the full URL with one that you want and don't forget to edit the end part "Edit Avatar" as that is the title thats shown on the dropdown.

When you've finished all your editing, we need to upload this whole code to your Header Template of the Style that your Currantly using on your forum, So once you've saved your edited code, Just copy and paste directly to your Header, Go right to the end and click paste, save the template and thats it, The Graphic File which you need to upload to your server or image host is also in the zip file.

So easy and a great improvement to any VBulletin Forum

This is a Freebie for all you members on VB.org with my compliments

If anyone wants any custom menus made, Just PM me I'll help where i can, Just bear in mind a menu like this takes a good couple of hours or so, so a donation is more than welcomed

Oh almost Forgot guys,

If you like it, Please Click on Installed, as this really does motivate me to improving these hacks

UPDATE 09.02.09

Uploaded a New Zip File, Black Menu.Zip This is the same as this original except that its black for darker Websites and Forums, Instructions are the same as above, and comes complete with customised Graphics which will need to be uploaded to your /images/ directory.



UPDATE 23.02.09

For some of you Admins who prefer menu Buttons as opposed to a menu bar, i've made some buttons based on the above menu formate, You can install it by following the same instructions as the main install, Just upload the graphics and edit your menu links and thats it.

Experiment with the css to change colors width of boxes etc, Add more or as little as you want, the important thing is to have fun learning.



UPDATE: 26th April 2009

Centering the Menu so that it appears central


There has been much debate about trying to centralise the menu tabs, I didn't want to edit the code too much as this would make a mess of it in different browsers, However i've found that there is a way

The easiest way to center menu content is to place it inside of a center aligned table, as shown below:

Code:
<table cellpadding=0 cellspacing=0 align="center"><tr><td>

----[ your menu structure]----

</td></tr></table>
This way the menu tabs will appear central in all browsers.

Hope this helps :up:



Enjoy

Download Now

File Type: zip Dropdown.zip (42.8 KB, 1109 views)
File Type: zip Black Menu.zip (15.7 KB, 647 views)
File Type: zip Blue Button.zip (17.2 KB, 441 views)

Screenshots

File Type: png menu1.png (19.0 KB, 0 views)
File Type: png menu2.png (19.9 KB, 0 views)
File Type: png black.png (11.0 KB, 0 views)
File Type: jpg blue button.jpg (15.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #142  
Old 04-04-2009, 11:33 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I get my vBadvanced working with the same menu? I'm sure it's easy, but just haven't found where to edit.
Reply With Quote
  #143  
Old 04-05-2009, 08:22 PM
t.uzuner t.uzuner is offline
 
Join Date: Oct 2007
Location: ankara/t?rkiye
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job but very adulterated. i want this modification to xml
Reply With Quote
  #144  
Old 04-09-2009, 12:53 AM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know where to adjust the 'padding' between the links on the main menu portion? They are a little too spread out so it breaks on smaller resolutions.

Any ideas?
Reply With Quote
  #145  
Old 04-09-2009, 03:08 AM
theparentpack theparentpack is offline
 
Join Date: Dec 2007
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this installed and have removed the vB navbar completely. Now when I have any notifications other than private messages I cannot click on the Your Notifications link. Also, I cannot do a search when in the Member List. When I try to click on either one it does nothing at all. Any way to correct this issue?
Reply With Quote
  #146  
Old 04-09-2009, 09:32 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by theparentpack View Post
I have this installed and have removed the vB navbar completely. Now when I have any notifications other than private messages I cannot click on the Your Notifications link. Also, I cannot do a search when in the Member List. When I try to click on either one it does nothing at all. Any way to correct this issue?
Same issue here

But, if I find the answer I'll share it here. So, please let me know if you find the answer as well.

I have a feeling it has to do with something that is coded into the navigation bar that the dropdown information is listed into. I haven't had a chance to look at it, but if you find out, please share!
Reply With Quote
  #147  
Old 04-09-2009, 10:11 PM
Theater's Avatar
Theater Theater is offline
 
Join Date: Aug 2004
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The navbar template contains more than just the navigational links. If you wipe it completely out you're also removing the Notice condition and more; like the Ad Location call for the ad_navbar_below template for example.

You'll need to use some basic coding search skills to see where what you want to remove begins and where it ends. For example if you just want to take off the bar below the breadcrumb navigation and login/member box, you would look at the template code and find:

Code:
<!-- nav buttons bar -->
then search down and find:

Code:
<!-- / nav buttons bar -->
..and snip out everything between.

I would recommend reverting your navbar template back to default. Copy the code to Notepad so you can have a better view of the whole template, snip out carefully what you don't want, and paste in what's left into the template in the AdminCP page and Save.

[high]* Theater takes the twitchy bunny and flees...[/high]
Reply With Quote
  #148  
Old 04-10-2009, 01:01 AM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Theater. We had the answer about removing the navbar (correctly) using this thread's info....

https://vborg.vbsupport.ru/showthread.php?t=179238&

....but, we are now looking to reclaim the "lost" function of the link working on the private messages within the login box. Any idea as to how we can get that back and working?
Reply With Quote
  #149  
Old 04-10-2009, 02:20 AM
Theater's Avatar
Theater Theater is offline
 
Join Date: Aug 2004
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By chance do you have this line:

Code:
<if condition="$show['popups']">
..right before this here still?

Code:
<!-- PAGENAV POPUP -->

PM me your navbar template and I'll have a look if you want.
Reply With Quote
  #150  
Old 04-10-2009, 02:46 AM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Theater View Post
By chance do you have this line:

Code:
<if condition="$show['popups']">
..right before this here still?

Code:
<!-- PAGENAV POPUP -->

PM me your navbar template and I'll have a look if you want.
Yes, those show up in the navbar template.

PM sent with template. Thanks for your help!
Reply With Quote
  #151  
Old 04-10-2009, 03:07 AM
Theater's Avatar
Theater Theater is offline
 
Join Date: Aug 2004
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I narrowed it down to this code you're missing:

Code:
<if condition="$show['member'] AND     $notifications_total">
<!-- notifications menu -->
<div class="vbmenu_popup" id="notifications_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
    $notifications_menubits
    </table>
</div>
<!-- / notifications menu -->
</if>
Entire template with it:

Code:
<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="altbg" width="100%">
        &nbsp;
    </td>
<!--<UKBL Iframe Ticker Start>----------------------------------------------------------------------->

<td class="altbgcolor">
<div align="right">
<!--For full source code and more DHTML scripts, visit http://www.dynamicdrive.com-->
<!--This credit MUST stay intact for use-->
<iframe id="tickermain" src="http://waltdisneyboards.com/exfile.htm" width=200 height=90 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>
</DIV>
</td>
<!--<UKBL Iframe Ticker End>----------------------------------------------------------------------->
<td class="altbgcolor">
<a href="http://www.waltdisneyboards.com/external.php?type=rss2"><img src="http://www.waltdisneyboards.com/images/misc/feed-icon.gif" border="0" alt="WDB News Feed" />
<if condition="$show['member']">
    <td class="altbgcolor" nowrap="nowrap">
    <div class="smallfont">
        <strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

        <if condition="$show['notifications'] AND $show['popups']">
            <div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
            <script type="text/javascript"> vBmenu.register("notifications"); </script>
        <else /><if condition="$show['pmstats']">
            <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
        </if></if>

        <if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
<if condition="$show['navbar_credits']">
            <div>$vbphrase[credits]</a>: <strong><span id="navbar_credits">$GLOBALS[navbar_credits]</span></strong> [<a href="credits.php?$session[sessionurl]do=banking">$vbphrase[check]</a>]<if condition="$show['credits_purchase']"> [<a href="credits.php?$session[sessionurl]do=manage#purchase">$vbphrase[purchase]</a>]</if></div>
        </if>
    </div>
    </td>
<else />
    <td class="altbgcolor" nowrap="nowrap" style="padding:0px">
        <!-- login form -->
        <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
        <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
        <tr>
            <td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">$vbphrase[username]</label></td>
            <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
            <td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
        </tr>
        <tr>
            <td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
            <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
            <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
        </tr>
        </table>
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
        <input type="hidden" name="do" value="login" />
        <input type="hidden" name="vb_login_md5password" />
        <input type="hidden" name="vb_login_md5password_utf" />
        </form>
        <!-- / login form -->
</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<br />
$vbnews_ticker
<br />
<if condition="$show['notices']">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
        <td class="thead">$vbphrase[notices]</td>
    </tr>
    <tr>
        <td class="alt1">$notices</td>
    </tr>
    </table>
    <br />
</if>

<if condition="$show['forumdesc']">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
        <td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
    </tr>
    </table>
    <br />
</if>

<if condition="$show['popups']">

<!-- PAGENAV POPUP -->
    <div class="vbmenu_popup" id="pagenav_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
            <form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                <input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
            </form>
            </td>
        </tr>
        </table>
    </div>
<!-- / PAGENAV POPUP -->
</if>

<if condition="$show['member'] AND     $notifications_total">
<!-- notifications menu -->
<div class="vbmenu_popup" id="notifications_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
    $notifications_menubits
    </table>
</div>
<!-- / notifications menu -->
</if>

$ad_location[ad_navbar_below]
$welcomeheaders
Try that out on your board.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08108 seconds
  • Memory Usage 2,393KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (14)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete