Thread: Forum Home Enhancements - UKBL ~ Quality Drop Down Menu System
View Single Post
  #121  
Old 03-10-2009, 03:01 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by theparentpack View Post
I love this hack, I actually replaced my navbar, after adding this to the header. Thanks for this one!

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

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

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

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

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

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.

Code:
/* 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

Code:
<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

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


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

Code:
<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]
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..

Code:
<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

Code:
<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)

Code:
<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

Code:
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,

;-)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01659 seconds
  • Memory Usage 1,805KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete