Log in

View Full Version : Forum Home Enhancements - UKBL ~ Quality Drop Down Menu System


Pages : 1 [2]

taffy056
10-03-2009, 11:28 AM
Add the part in red.



Thanks very much, that did the trick :)

BioFall
10-05-2009, 07:37 PM
Hey Sorry if someone already asked this but I couldnt find it anywhere. Is their a way to get so that the drop down menu would be horizontal rather than vertical so that it would look like thishttp://www.cssnewbie.com/example/css-dropdown-menu/horizontal.html top right?

crazymilk
10-05-2009, 07:49 PM
Is there away to have an image repeat-x left instead of a solid color?

emath
10-05-2009, 11:38 PM
hey, few problems:
my site is emath.co.il

1. how can i make the menu to go from right to left ? (im using hebrew)

i tried to change some left to right in float propeties but it become a mess on FF .

2. in addition after ive past the code when i open the menu bar then it expand all over the page , instead one lil square as it shows in the demo above.

in FF it works well, but on IE(7) when i open the menu it expands...

rly need help with this.. thanks, great mod.

crazymilk
10-06-2009, 08:28 AM
I used this code for the logout shinng....

<if condition="$show['member']">
<li><span class="qmdivider qmdividery" ></span></li>
<li><a class="qmparent" href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]">LOG OUT</a></if>

...hope it helps :)

This works a treat for loging out But what about once you?ve log out it chances to loging how what that be done?

And thanks ArnyVee for the log out code

goxy63
10-06-2009, 06:49 PM
Any ideas how to show drop-down menus above/over flash objects?

Thanks

Sador
10-06-2009, 11:28 PM
This works a treat for loging out But what about once you?ve log out it chances to loging how what that be done?

And thanks ArnyVee for the log out code I have no idea whether this works or not, but the standard vbulletin logout code seems to be this:

<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>

Maybe if you were to add this?

(Again, no idea if it works, save before trying, you might accidentally destroy your forum or even the whole world with this ;) )

SBlueman
10-18-2009, 03:11 AM
Thank you for this modification. I have installed it on my site and I love how smooth it is. I was able to get it to look almost like the default navbar menu:

http://gridironfans.com/

linuxututs
10-18-2009, 04:28 AM
Thank you for this modification. I have installed it on my site and I love how smooth it is. I was able to get it to look almost like the default navbar menu:

http://gridironfans.com/

I love this Hack / Mod as well !

But I'm worthless at graphics myself, and cannot seem to edit the images to get them to match my board.

Can anyone recommend a program to do this with for me ?

Thank You,

Halfhidden
10-18-2009, 02:38 PM
Has anyone any idea why I get corruption of the dropdown header in IE if the member isn't logged in.
See picture insert.
http://www.picturepenzance.co.uk/support/corrupt.jpg

MGP_Tech
10-27-2009, 01:11 PM
I'm having a small issue with this menu on my website: http://madhatterrgames.com/vampire-larp/index.php

Browser: Firefox
Skin: Permatakus2 (you should be able to change the skin by using the bottom drop down selection box)
Error: The menu drop down selections disappear under the main content area of the website. Pictures Attached.

Anyone got a fix for this?

Halfhidden
10-27-2009, 01:55 PM
I'm having a small issue with this menu on my website: http://madhatterrgames.com/vampire-larp/index.php

Browser: Firefox
Skin: Permatakus2 (you should be able to change the skin by using the bottom drop down selection box)
Error: The menu drop down selections disappear under the main content area of the website. Pictures Attached.

Anyone got a fix for this?
That's because you need to turn off (or remove) navbar for each style (or skin) that you want to use this menu system with. You'll also need to paste the menu system in the header of each of the styles (skins) that you want to use it with.
Hope that helps?

MGP_Tech
10-27-2009, 02:51 PM
That's because you need to turn off (or remove) navbar for each style (or skin) that you want to use this menu system with. You'll also need to paste the menu system in the header of each of the styles (skins) that you want to use it with.
Hope that helps?

I'm not sure where you "turn off" the navbar (please advise me of that one if you know) ... everywhere I've seen online says to just delete it from the template and when I tried to do that it messed the appearance of that particular template.

I have the menu already put into the header style of that skin (it shows up great on IE) and on all the templates I'm using, it's just on firefox menu goes into hiding and I have no clue why. Attached is a screenshot of the same template in IE with the menu working fine.

Halfhidden
10-27-2009, 03:14 PM
I'm not sure where you "turn off" the navbar (please advise me of that one if you know) ... everywhere I've seen online says to just delete it from the template and when I tried to do that it messed the appearance of that particular template.

I have the menu already put into the header style of that skin (it shows up great on IE) and on all the templates I'm using, it's just on firefox menu goes into hiding and I have no clue why. Attached is a screenshot of the same template in IE with the menu working fine.

Works fine for me on FF3. Perhaps you should clear your cache and try again. I couldn't try another styles because Guests can't change styles... but if it shows here there no reason why it shouldn't show elsewhere.
You are right to edit the style in VB admin CP>style manager > find the style you want to edit > and find breadcrumbs and then beneath that is navbar. Open it and then delete the contents in there and save and reload. If you have altered navbar, then it's a good idea to copy the contents first. All that does is remove the navebar for that style. You can turn off navbar altogether in admin cp but that's not advisable frankly

MGP_Tech
10-27-2009, 03:39 PM
I'm switching the default template to the black and red one so that you can see it now. http://madhatterrgames.com/vampire-larp/index.php

Thanks for taking a look at this, I really appreciate it!

EDIT: The theme you want to look at is Permatakus2 ... since it seems you're not online I wanted to make sure we had a theme defaulting that actually worked. You should be able to switch to it, when you have time to look it over, at the bottom of the screen.

Halfhidden
10-27-2009, 04:41 PM
Ok... sorry been out to get some supplies in. Yes I can see what you mean with Permatakus
The reason why IE displays the drop down and not FF is simply the difference between the two browsers and how they handle javascript errors.
In your case, either way the script is wrong.
You have an error in the javascript and the script is expecting an ")" but it is missing and this changes the code.
You'll have to go through the code and compare yours with that of the original code posted on this thread.
To have a look yourself open your page in IE and have a look at the very bottom left hand side of the browser window of IE and you'll see a yellow triangle. This suggests that you have a code error on your page. Click on that and you'll see the suggested code error.
Don't take the code error as gospel because often a missing piece of code elsewhere can have an affect somewhere else. IE will only report some errors.... So have a good look over your code again I'm afraid.
Hope this helps?

MGP_Tech
10-28-2009, 01:07 PM
Looks like I'm looking for a new template. Thanks for your advice.

davida500
11-01-2009, 12:59 AM
I am having a problem with the Nav Bar, but first i would like to say that its great..other than this one little problem :)

You can see the problem that i am experiencing at: www.e3-clan.net

On some screens it looks ok, but on other screens the Navigation bar will go onto 2 lines even if there is space to the left and right of the nav bar, is there any way i can make it so they extend out more on smaller screens so that it all stays on one line if that makes sense.

Thanks.

David.

Halfhidden
11-01-2009, 10:04 AM
I am having a problem with the Nav Bar, but first i would like to say that its great..other than this one little problem :)

You can see the problem that i am experiencing at: www.e3-clan.net

On some screens it looks ok, but on other screens the Navigation bar will go onto 2 lines even if there is space to the left and right of the nav bar, is there any way i can make it so they extend out more on smaller screens so that it all stays on one line if that makes sense.

Thanks.

David.

Well David, it looks like to me that your menu script is inside a table or div that is a fixed width. If I view it at 1440x900 the menu is still on two lines. If viewed at 1024x768 it spans three lines..... That would be the reason... I'm 100% sure of that.

davida500
11-01-2009, 11:02 AM
Thanks for the info so far halfhidden...Is there any way you may be able to help me further with the issue :)

It would be much appreciated.

David.

Halfhidden
11-01-2009, 11:12 AM
Thanks for the info so far halfhidden...Is there any way you may be able to help me further with the issue :)

It would be much appreciated.

David.

You could post your header script here and I'll take a look at it.

davida500
11-01-2009, 01:16 PM
You could post your header script here and I'll take a look at it.

The full header is too long to post haha, so i have attached a document with the full header code.

Thanks for the help :)

Halfhidden
11-01-2009, 05:29 PM
The full header is too long to post haha, so i have attached a document with the full header code.

Thanks for the help :)

Sorry been off.... broadband is playing up big time.
OK had a look and can't see any div or tables as I thought... but I did find the reason for the look. I can't see anywhere in your edit (where you placed in the url's for your menu) where javascript is turned off.
For instance you have:
<li><span class="qmdivider qmdividery" ></span></li>
<li><a class="qmparent" href="/forums/usercp.php">CONTROL PANEL</a>

I was expecting to see something like this:
<li><span class="qmdivider qmdividery"></span></li>
<li><a class="qmparent" href="javascript:void(0);">CONTROL PANEL</a>

If I'm right (I'm no Javascript guy) but without the switch turning off javascript the menu (I'm pretty sure) will not format correctly.
I tried several menu headers with the above javascripts and the menu moved along from left (justified) to right on one line.

Basically what I'm saying that if you replace the top code with the second code I posted for each section in your menu the menu will show properly.

davida500
11-01-2009, 06:51 PM
That doesn't seem to help. I feel there may be something else affecting the format because I've tried deleting everything in my header except the navbar script and it still didn't work.

I think the problem may lie in that the section of my forum that is the header just keeps shrinking as you shrink your browser. If you go on my site and start shrinking your browser, the forums section eventually starts getting cut off, but the header just keeps shrinking.

Halfhidden
11-01-2009, 07:03 PM
Why is the navbar script in the header?

davida500
11-01-2009, 07:26 PM
"When you've finished all your editing, we need to upload this whole code to your Header Template of the Style"

That's what it says in the installation instructions. If it doesn't go there, then where?

Halfhidden
11-01-2009, 07:39 PM
"When you've finished all your editing, we need to upload this whole code to your Header Template of the Style"

That's what it says in the installation instructions. If it doesn't go there, then where?

No that's ok... it's just that the navbar is a different animal altogether.

I am still looking through the code and a couple of things for instance:
<!-- ********************************************** -->
<!-- END User Login and Info -->
<!-- ********************************************** -->
__________

<!-- ********************************************** -->
<!-- START Mood Chooser -->
<!-- ********************************************** -->

Not sure why the __________________

I'll let you know if I find anything else... (although that's not the reason for your problems)

Halfhidden
11-01-2009, 08:06 PM
Sometime I can't see the tree's from the woods...

Look for:
/*"""""""" (MAIN) Container""""""""*/
/*""""""Edit the second value for
padding to adjust centering"""""*/
#qm0
{
padding:5px 275px;
margin:0px;
background-color:#000000;
background-image:url(images/nav/gradient_16.gif);
border-width:1px;
border-style:solid;
border-color:#000000;
}


Change to:
/*"""""""" (MAIN) Container""""""""*/
/*""""""Edit the second value for
padding to adjust centering"""""*/
#qm0
{
padding:5px 5px;
margin:0px;
background-color:#000000;
background-image:url(images/nav/gradient_16.gif);
border-width:1px;
border-style:solid;
border-color:#000000;
}


Job done!

davida500
11-02-2009, 07:33 PM
No that doesn't help. Thanks for trying though.

Halfhidden
11-02-2009, 07:53 PM
Really.. I haven't changed you header except the padding as mentioned above.
Here's a screen shot from my test site.... now remember I haven't loaded any of the graphics from your site so it looks a bit naff... but the navigations works as expected. This was taken at 1024x768

davida500
11-04-2009, 06:32 PM
The problem comes when it's put into a window though. Full screen it's fine, but when the window becomes smaller than the navbar, instead of getting cut off it goes to a new line.

sinistergaming
11-10-2009, 12:47 AM
Nice just what we needed

Alucard^
11-10-2009, 02:08 PM
Hi man, good modification... installed ofcourse.

And here an example: http://www.nv-arg.com.ar/foro/

Also, i have a request, how can i do to drop the menu when you click in the button and not by a mouseover? Thx to much.

Scalemotorcars
11-13-2009, 01:08 AM
Installed and heavily modded. Here's an example. http://www.scalemotorcars.com/forum/


Changes

Ive used the nested menus already built into the mod. Would be nice if that was clearer in the instructions. also, rather then have all that code in the header template I crated another template and just called it into the header.

Also moved most of the JS and CSS into one file with the rest of my extra code.

Thanks for this mod its much cleaner then VB's menu. :up:

yotsume
11-13-2009, 05:05 AM
Installed and heavily modded. Here's an example. http://www.scalemotorcars.com/forum/


Changes

Ive used the nested menus already built into the mod. Would be nice if that was clearer in the instructions. also, rather then have all that code in the header template I crated another template and just called it into the header.

Also moved most of the JS and CSS into one file with the rest of my extra code.

Thanks for this mod its much cleaner then VB's menu. :up:

It would be nice to know with clear instructions how you moved the JS and CSS, etc...

RIGHT SIDE SUB-MENU OFF SCREEN ISSUE
It would be nice to have the right side sub-menu problem addressed. In your site you have a sub-menu that opens off screen! Your right side sub-menus for your Forum FAQ and Gallery FAQ open off screen because they pop up off to the right. We need an open to have the right side sub-menus pop up off to the left of the menu so they stay on screen!

See Attached Screen Shot of Sub-Menu Problem

Anyone have a solution to this bug/issue??? My laptop screen resolution is set at: 1280 x 800 Without the option to open a sub-menu to the right or the left of a drop menu there will always be of screen problems. This hack needs code added so we can choice to have a sub-menu open to the left of a drop menu. Anyone have a way to do this?

KID_1194
11-13-2009, 09:54 AM
nice modification buddy ... but conditions must be added to the menu
in order to restrict the view of items .. what I mean is that you should use the if condition to make things only shown to members ..

Best regards

Scalemotorcars
11-13-2009, 02:23 PM
Im sure that can be done and Ill mess with it when I have more time. :up:

As for the CSS I already had a Css file I used for extra code so I just added it to the bottom. Im sure you could do the same by adding it to the (extra CSS) in the style editor.

Same for the JS, I just added it to another JS that was global.

I did leave some of the JS in place because it seems to be location specific. Example.

right before this line.....

<ul id="qm0" class="qmmc">
<li><a class="qmparent" href="javascript:void(0)">First button title</a>

I kept this in place.

<!--%%%%%%%%%%%% Quality Menu Styles [Keep in head for full validation!] %%%%%%%%%%%-->
<!-- Add-On Core Code (Remove when not using any add-on's) -->
<style type="text/css">.qmfv{visibility:visible !important;}.qmfh{visibility:hidden !important;}</style>

And at the very end of the menu code I kept this line in place.

<!-- Create Menu Settings: (Menu ID, Is Vertical, Show Timer, Hide Timer, On Click (options: 'all' * 'all-always-open' * 'main' * 'lev2'), Right to Left, Horizontal Subs, Flush Left, Flush Top) -->
<script type="text/javascript">qm_create(0,false,0,500,false,false,false,false,fa lse);</script>

All other Js and Css was moved to global files respectively.

Scalemotorcars
11-13-2009, 02:26 PM
nice modification buddy ... but conditions must be added to the menu
in order to restrict the view of items .. what I mean is that you should use the if condition to make things only shown to members ..


Best regards

Yep, Ive already tried it and it works fine. Need to put it back thanks for the reminder. :D

gscimbomcom
11-14-2009, 08:26 AM
Nice work, thnx!

bluej
11-16-2009, 04:03 AM
great mod, thanks so much :)

can you tell me how to make the text bold, i did search the thread but can not find where it has been asked...i know this is a simple question but not sure at the moment i am brain dead, hehe

thanks again

bluej
11-16-2009, 06:14 PM
great mod, thanks so much :)

can you tell me how to make the text bold, i did search the thread but can not find where it has been asked...i know this is a simple question but not sure at the moment i am brain dead, hehe

thanks again

ok, i found it in another part of the code :cool:

font-weight:bold;

bluej
11-30-2009, 05:44 AM
help needed, info on next post :)

bluej
12-03-2009, 08:29 AM
nevermind :)

bluej
12-04-2009, 10:27 PM
Thanks for the centering tip :)
I now have it centered and used an extra <td> on each side to fill out the leftover space.
Looks even better now,here's a pic
MY MENU (http://img261.imageshack.us/img261/8489/examplemenu.jpg)

Thanks UKB, great menu

where do you add the <td> ? on each side of what? :confused:

bluej
12-09-2009, 06:44 AM
uninstalled, no support

columbusgeek
12-09-2009, 01:11 PM
It's basic css. Why not Google it?

TheLastSuperman
12-09-2009, 02:12 PM
uninstalled, no support

UKBL is just busy in Real Life at the moment ;)

<table cellpadding=0 cellspacing=0 align="center"><tr>
<td><!-- Copy and paste this entire line including the td and /td before and after as seen here --></td>
<td>

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

</td>
<td><!-- Copy and paste this entire line including the td and /td before and after as seen here --></td>
</tr></table>

It depends on your style too ;)

El-cheapo
12-12-2009, 09:57 PM
installed thanks

MRMRacing
12-15-2009, 06:42 PM
I am in the middle of installing this grate mod, but on explorer (8) the drop down menu text is centered, in safari and other it is left aligned like it should.

Any idea how to solve this?

MRMRacing
12-15-2009, 07:47 PM
Found it by inserting > text-align:left; in the SUB Container

crazymilk
12-16-2009, 09:55 AM
Is there away to have 2 columns - 1 dropdown ? I have one dropdown that goes off the page so i would like it to be in two colums. Thanks in advance for your help

Miss Chatterbox
01-08-2010, 07:59 AM
This has made a dramatic improvement to the appearance of my forum! Thank you so much! :):):)

nectons
01-11-2010, 12:34 PM
It is one of my favorites. YOU ARE ONE OF THE BEST moders in vbulletin man.

Just a question. I need something to feet to my forum (colors design etc). Anytime you can take a look (when you have free time) and pm me if you want anything from me friend (i can donate with paypal or anything you ask for).

http://www.bytheway.gr

KeyHunterz
01-17-2010, 11:46 PM
Could you please tell me how I can Center the menu content on the page? Currently its leaning more to the left ... here is an example :

https://vborg.vbsupport.ru/external/2010/01/36.png

I would like to have the menu in the middle of the page instead of the left side. Please let me know if its possible to change it.

columbusgeek
01-18-2010, 12:54 PM
It's aligned to the left, not leaning.

Center menus are so 1980. Also this issue is covered in this thread quite extensively.

KeyHunterz
01-18-2010, 06:01 PM
I found the answer at page 8, thanks for the mod !

TheLastSuperman
01-20-2010, 05:45 PM
It's aligned to the left, not leaning.

Center menus are so 1980. Also this issue is covered in this thread quite extensively.

Bah :p next time just help the man :p

I found the answer at page 8, thanks for the mod !

It was all on page 8 ;) but for those coming in to this thread near the end or this page here it is below ;)

The only way you can make the tabs central is by extending them the full width of your forums

https://vborg.vbsupport.ru/external/2010/01/29.png

you need to find this in the CSS

/*"""""""" (MAIN) Items""""""""*/
#qm0 a
{
padding:3px 60px 3px 3px;
margin:0px 60px 0px 0px;
background-color:transparent;
color:#aaaaaa;
font-family:Arial;
font-size:11px;
text-decoration:none;
border-width:0px 1px 0px 0px;
border-style:solid;
border-color:#aaaaaa;

and change the padding and margin (in Red) to a higher value.

The only problem you have then is that it will be set to your resolution, people with other screen resolutions will just see a mess, or the menu bars on two rows.

i did state before the reson its coded like it is, is that it will work in all resolutions and in All Browsers, Changing the above will create problems when viewing, thats why i don't recommend it.

Thanks ;)

Hi

All those points have been covered already, I will answer them below...

I love the color of the bar, but is there any way to change just the color of the actually drop down menus?

The first half of the code is the css, You can change different colors by simply changing the hex numbers - background-color:#000000;

there are serveral hex number referances in the css, that do different parts of the menu, Change the ones you need.

/* UKBL ~ Menu 0 */

/*"""""""" (MAIN) Container""""""""*/
#qm0
{
width:auto;
padding:5px 50px;
margin:0px;
background-color:#000000;
background-image:url(qmimages/gradient_16.gif);
border-width:1px;
border-style:solid;
border-color:#000000;
}


/*"""""""" (MAIN) Items""""""""*/
#qm0 a
{
padding:3px 30px 3px 3px;
margin:0px 20px 0px 0px;
background-color:transparent;
color:#aaaaaa;
font-family:Arial;
font-size:11px;
text-decoration:none;
border-width:0px 1px 0px 0px;
border-style:solid;
border-color:#aaaaaa;
}


/*"""""""" (MAIN) Hover State""""""""*/
#qm0 a:hover
{
color:#ffffff;
border-color:#ffcc33;
}


/*"""""""" (MAIN) Hover State - (duplicated for pure CSS)""""""""*/
#qm0 li:hover>a
{
color:#ffffff;
border-color:#ffcc33;
}


/*"""""""" (MAIN) Active State""""""""*/
body #qm0 .qmactive, body #qm0 .qmactive:hover
{
color:#ffffff;
border-color:#ffcc33;
}


/*"""""""" (SUB) Container""""""""*/
#qm0 div, #qm0 ul
{
padding:15px;
background-color:#000000;
border-width:1px;
border-style:solid;
border-color:#ffcc33;
}


/*"""""""" (SUB) Items""""""""*/
#qm0 div a, #qm0 ul a
{
padding:3px 20px 3px 5px;
margin:0px;
color:#cccccc;
border-width:0px;
border-color:#ffcc33;
}


/*"""""""" (SUB) Hover State""""""""*/
#qm0 div a:hover
{
color:#ffcc33;
text-decoration:underline;
}


/*"""""""" (SUB) Hover State - (duplicated for pure CSS)""""""""*/
#qm0 ul li:hover>a
{
color:#ffcc33;
text-decoration:underline;
}


/*"""""""" (SUB) Active State""""""""*/
body #qm0 div .qmactive, body #qm0 div .qmactive:hover
{
color:#ffcc33;
text-decoration:underline;
}


/*"""""""" Individual Titles""""""""*/
#qm0 .qmtitle
{
margin:2px 5px 5px;
color:#f6f6f6;
font-family:Arial;
font-size:11px;
font-weight:bold;
}


/*"""""""" Individual Horizontal Dividers""""""""*/
#qm0 .qmdividerx
{
border-top-width:1px;
margin:4px 5px;
border-color:#aaaaaa;
}


/*"""""""" Custom Rule""""""""*/
ul#qm0 li .qmparent
{
background-image:url(http://www.ukbusinesslive.co.uk/forum/images/arrow_14.gif);
background-repeat:no-repeat;
background-position:90% 50%;

How can I make certain links open in a new window?

Below is a link from a Menu Structure

<li><a href="http://www.ukbusinesslive.co.uk/forum/calendar.php" title="My Calender">My Calender</a></li>

To get the link to open in a new browser window, what you do is add the target="_blank" attribute to your link tag, like this in your Menu Links area

<li><a href="http://www.ukbusinesslive.co.uk/forum/calendar.php" target="_blank" title="My Calender">My Calender</a></li>

https://vborg.vbsupport.ru/external/2010/01/30.png

Is there a way to add a different drop down menu to one of my additional CMPS pages?

Not sure what you mean by this? If your saying that you want to add a second different menu altogether then you can if you add it to the CMPS header, If you want simply to add a further menu item or new tab, then you simply copy a menu block from the code and paste it underneath the last menu block in the code, Below is a menublock you can use, just edit the links to your requirements

<li><span class="qmdivider qmdividery" ></span></li>
<li><a class="qmparent" href="javascript:void(0);">CALENDER</a>

<ul>
<li><a href="http://www.ukbusinesslive.co.uk/forum/calendar.php" title="My Calender">My Calender</a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/calendar.php?do=add&type=single&c=1" title="Add Single Event">Add Single Event</a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/calendar.php?do=add&c=1" title="Ranged Event">Ranged Event</a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/calendar.php?do=add&type=recur&c=1" title="Recurring Event ">Recurring Event </a></li>
</ul></li>

The Is there any way to make one of the sections just a button/link and not a drop down menu? If so, how?

if you simply want a button/link without dropdowns then just get the first part of the code

[CODE]<li><span class="qmdivider qmdividery" ></span></li>
<li><a class="qmparent" href="javascript:void(0);">CALENDER</a>

Delete the menu dropdown links below it, thats all these..

<ul>
<li><a href="http://www.ukbusinesslive.co.uk/forum/search.php?searchid=167" title="Todays Post">Todays Post</a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/search.php?do=getnew" title="New Post">New Post</a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/search.php?searchid=167" title="Post Last 24 Hrs">Post Last 24 Hrs</a></li>
<li><a href="javascript:void(0);">New Item</a></li>
</ul></li>

and then you need to add your link to the menu tab so from this

<li><span class="qmdivider qmdividery" ></span></li>
<li><a class="qmparent" href="javascript:void(0);">CALENDER</a>

you need to add your url here (In Red)

<li><span class="qmdivider qmdividery" ></span></li>
<li><a class="qmparent" href="YOUR_URL.COM">TAB_NAME_HERE</a>

How can I add a link to mark forums read? Trying to replace the old navigation bar.

To make a link that when people press it will make all forums read, you'll need to add a url like this to the menu

http://yourforum.com/forumdisplay.php?do=markread

don't forget to change yourforum.com to the name of your own forum ;-)

I hope thats answered your questions,

;-)

NumaNK
02-16-2010, 10:09 AM
How can I make can be clicked to open menus ?

TheLastSuperman
02-16-2010, 11:14 AM
How can I make can be clicked to open menus ?

You can try...

In the code provided replace any instances of onmouseover example:

b=sp[i];if(b.tagName=="A"){lsp=b;b[w]=qm_oo;if(w==e)b.onmouseover=function(event){clear Timeout(qm_tt);qm_tt=null;qm_la=null;

with onclick example:

b=sp[i];if(b.tagName=="A"){lsp=b;b[w]=qm_oo;if(w==e)b.onclick=function(event){clearTime out(qm_tt);qm_tt=null;qm_la=null;

I did not test so let us know ;)

Mike

Halfhidden
03-16-2010, 09:15 PM
Hi, I've been using this mod for quite some time now. In fact I don't use the navbar or postbits any longer as this is truly awesome... so thanks for the mod and spending time on it for us all :)
However, I would like to ask one question if I may.
In postbits there was a rather nice welcome block and I would like to integrate this with your menu system. Can this be done and if so how please.
Thanks :D

TheLastSuperman
03-17-2010, 11:19 AM
Hi, I've been using this mod for quite some time now. In fact I don't use the navbar or postbits any longer as this is truly awesome... so thanks for the mod and spending time on it for us all :)
However, I would like to ask one question if I may.
In postbits there was a rather nice welcome block and I would like to integrate this with your menu system. Can this be done and if so how please.
Thanks :D

Can you post a sample of the code or a screenshot?

Halfhidden
03-17-2010, 12:43 PM
Thanks for the reply.
Heres the code I've been working on to add the welcome block to the drop down menu
<if condition="$show['member']">
<td class="alt2" 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']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<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>
</div>
</td>
<else />
<td class="alt2" 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" />$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>

Here's a screen shot of what my drop down looks like now and another showing the welcome block added but in the wrong place. I'm trying to add the welcome block to the end of the menu and have the welcome block within the menu as if it was part of the table or div.
Hope that's clear?
And thanks for your help so far.

Halfhidden
03-23-2010, 06:22 PM
Hi Last Superman. Don't worry about trying to alter the Drop down menu.
I understand that this is off topic anyway and I wouldn't want to use up your free time trying to do this when you are bound to have better things to do.
It's a great drop down menu and I'm keen to keep it rather than use the nave bar.
I'll look into way of getting the drop down menu in to nav bar rather than in the header.
Thanks anyway and keep up the good work. :D

Slayerz
03-23-2010, 11:54 PM
Anyway you could make a white one, like your black one?

Halfhidden
03-25-2010, 11:04 PM
OK, not to worry. I've discovered how to put the drop down menu inside the navbar.
It was important to me because I had used up quite a bit of space with the header, navbar, drop down menu and Google ads before you even get to the forum.
I've pasted a screen shot for anyone interested in placing their drop down menu inside the navbar.
And here how to do it... really simple!
Edit navbar in your template and do a search for <td class="alt1" width="100%">
Directly beneath that line paste your drop down menu.

RobbieZ
03-26-2010, 02:08 AM
Hey Last Superman,

Was there ever a solution for the vbulletin navbar to open drop down links upon hover and not click?

It would make the drop down mod better and this would solve the centralizing too.

Silmarillion
05-26-2010, 08:26 AM
I get an error using IE8:

No Definition for "qmad"! Line 69, Code 0

How to fix that?

jdrakopo
06-21-2010, 11:17 PM
This looks great !
Any chance we can get this for VB4 ??
:)

killa seven
06-25-2010, 12:07 AM
Thank You!

MagicThemeParks
06-27-2010, 01:02 PM
Does anyone have step-by-step instructions on how to clean things up by having the javascript and CSS in separate files rather than all within the code in the template?

speedway
06-29-2010, 01:05 PM
Does anyone have step-by-step instructions on how to clean things up by having the javascript and CSS in separate files rather than all within the code in the template?
Don't exactly have step by step but I have successfully separated the CSS and js scripts out of the menu into files.

What resulted in my implementation was 2 css files and 5 .js files, each containing a section of the surrounding code. I had to load the external .js files in the same order as they were in the menu block given to us originally. I then called them in the headinclude template in the order I needed them:


<!-- Navbar Repplacement Files -->
<link rel="stylesheet" type="text/css" href="assets/css/cqm-menu.css" />
<link rel="stylesheet" type="text/css" href="assets/css/cqm-menuitems.css" />
<!-- Small section initialising the qmad object -->
<script type="text/javascript" src="assets/js/cqm-qmad.js"</script>
<!-- Menu 0 Add-On Settings -->
<script type="text/javascript" src="assets/js/cqm-aosetting.js"</script>
<!-- UKBL ~ Core Quality Menu Code -->
<script type="text/javascript" src="assets/js/cqm-menucode.js"</script>
<!-- Add-On Code: Rounded Sub Corners -->
<script type="text/javascript" src="assets/js/cqm-aorsubcnr.js"</script>
<!-- Add-On Code: Rounded Items -->
<script type="text/javascript" src="assets/js/cqm-aoritem.js"</script>
The names are of course my own naming convention to give me an idea of what is in each one.

I left the very last piece of .js code in the header template, haven't got as far as to try that in an external just yet.

I tested this with 3 browsers - Firefox 3.6.3, Safari 4.5 and Opera 10.10 on OSX Snow Leopard 10.6.3 and all browsers loaded fine and displayed the menu as "normal".

I would attach the files here if the author is OK with that otherwise just sort of follow what I did and you should be good to go.....


I did all this to see if I can replace the navbar sub-menu items in VB4 with this code so I can mimic my VB3 style in VB4

Cheers
Bruce

MagicThemeParks
06-30-2010, 12:57 AM
The author has not been online much lately, but I'm sure he wouldn't mind :)

Can you please attach the files :up:

speedway
06-30-2010, 01:03 AM
I may do soon... as soon as I work out an issue. It seems I touted Opera too soon.....

In Opera 10.x (OSX and Vista so far) the entire site header, including the navbar replacement menu, disappears. Zip, nada, nothing. Still trying to figure that one out. If I do, I will post what I can here for others,.....

Gamelobby
02-15-2011, 07:16 AM
Thanks for the centering tip :)
I now have it centered and used an extra <td> on each side to fill out the leftover space.
Looks even better now, here's a pic
MY MENU (http://img261.imageshack.us/img261/8489/examplemenu.jpg)

Thanks UKB, great menu
Where do i put these <td>.. on each side of what.?

SBlueman
10-01-2011, 09:23 PM
What do I need to remove from the code to get rid of the arrows?

Halfhidden
10-02-2011, 03:30 PM
Nice mod

theparentpack
11-02-2011, 10:52 AM
http://www.gimp.org it is a free program. Just download. Then open program. Once program is open click File. In the drop down menu click Open. Find image you want to change. Open it. Now click on Color tab/link. Click on Colorize in drop down menu. Adjust the three settings until you get the color you want. Save, and upload.

If you are trying to match a color on your site it might help to have a screenshot opened as a layer to compare your color change to. Just go to the page with the color you want to copy and click the Prt Scr button. Then go back to GIMP and click Edit, Paste As, New Layer. Now you have a side by side comparison for color matching.


I love this Hack / Mod as well !

But I'm worthless at graphics myself, and cannot seem to edit the images to get them to match my board.

Can anyone recommend a program to do this with for me ?

Thank You,

Morrus
11-14-2012, 01:30 PM
Just a note - this isn't working in IE8 or earlier.

bada_bing
03-28-2013, 02:46 AM
Can someone help me with that code I need to replace from my navbar template to remove the vb default menu so that I can use this one instead?

bada_bing
03-29-2013, 02:01 AM
Thanks for the reply.
Heres the code I've been working on to add the welcome block to the drop down menu
<if condition="$show['member']">
<td class="alt2" 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']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<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>
</div>
</td>
<else />
<td class="alt2" 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" />$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>

Here's a screen shot of what my drop down looks like now and another showing the welcome block added but in the wrong place. I'm trying to add the welcome block to the end of the menu and have the welcome block within the menu as if it was part of the table or div.
Hope that's clear?
And thanks for your help so far.

Love your idea and tried your code and injected my menu code but when I do that the menu and login shows up correct but my forum area disappears? What am I removing thats causing this

bada_bing
03-29-2013, 01:11 PM
I would like to replace my current navbar menu with this mod and need some guidance on what code to replace and where to inject the code for this menu. I have attached an image showing you my current navbar menu that I would like to replace.

bada_bing
03-29-2013, 03:02 PM
Hi PeterXP.

Your menu's look brilliant, but i'm suprised to see that you have a menu link to ModCP and AdminCP on view to guests and non registered :eek: if you leave them on show people will try and guess.

https://vborg.vbsupport.ru/external/2013/03/12.png


This can't be secure so you'll need to add a conditional around that menu link like this


<if condition="is_member_of($bbuserinfo, x, x, )">

where x and x is your usergroup ID for Amin and Mods

Don't forget to add the end statement at the end

</if>


Look below at the example

<li><span class="qmdivider qmdividery" ></span></li>
<li><a class="qmparent" href="javascript:void(0)">PRIVATE MESSAGES</a>

<ul style="width:165px;">
<if condition="is_member_of($bbuserinfo, x, x, )">
<li><a href="http://www.ukbusinesslive.co.uk/forum/Admincp.php" title="List Messages">AdminCP</a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/Modcp.php?do=newpm" title="Send New Message">ModCP</a></li>
</if>
<li><a href="http://www.ukbusinesslive.co.uk/forum/private.php?do=trackpm" title="Track Messages">Track Messages</a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/private.php?do=editfolders" title="Edit Folders">Edit Folders</a></li>
</ul></li>

Once again a smashing improvement, Well done

Thanks for the tips I have added your suggestions and works great, I however wanted to completely hide the Control Panel from showing up in the menu unless you are logged in with a specific user group, sorta what you explained for the link themselves but this time A step higher. Can you explain how to do this?

Also does anyone know how to add the Logout feature in the menu?

bada_bing
03-29-2013, 07:06 PM
I have no idea whether this works or not, but the standard vbulletin logout code seems to be this:

<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>

Maybe if you were to add this?

(Again, no idea if it works, save before trying, you might accidentally destroy your forum or even the whole world with this ;) )

This does not work, or if so I placed it incorrectly in my navbar template. When I add it and I try and login my site it right after the login process it goes to a white page with an error 500 when I remove this code services are restored.

Anyone know how to add the logout to the menu ?

bada_bing
03-29-2013, 07:22 PM
This works a treat for loging out But what about once you?ve log out it chances to loging how what that be done?

And thanks ArnyVee for the log out code

Where and how do I add this to the menu code when I add this below and I acutally logout it screws us my tempate format and the normal vb "not a member yet" message no loger displays on the bottom of my navbar but rather vertically and messing up the template


<if condition="$show['member']">
<li><span class="qmdivider qmdividery" ></span></li>
<li><a class="qmparent" href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]">LOG OUT</a></if>

m7sen
09-05-2018, 01:01 PM
I want to replace navbar to this
but is it responsive ?