Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 03-30-2007, 12:15 PM
php4ever php4ever is offline
 
Join Date: Jun 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vBulletin Menu structure "navbar"

I taken the code from my navbar template and placed it on the very top of my theme which seems to both parse correctly and work. HOWEVER! the drop downs like Search and Quick Links menu are offset half way down the page on mouse-over and I'm not sure why. When I click on Quick Links the links sub menu shows up nearly at the bottom of the page.

Is there a place where the distance of the dropdowns are set in relation to the buttons? Furthermore are there any self contained menu plugins available. It seems that menu placement and modifications are among the top requested subjects in the forums related to theme design.

LOL, no pun intended but I had a feeling that menu related questions tend to sit for a while.

I'm curious why more coverage hasn't been discussed on the subject of custom menus or should I say customizing menus.
Reply With Quote
  #2  
Old 04-02-2007, 01:15 PM
php4ever php4ever is offline
 
Join Date: Jun 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump*
Reply With Quote
  #3  
Old 04-02-2007, 03:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we get a website url to see this in action?
Reply With Quote
  #4  
Old 04-03-2007, 04:24 PM
php4ever php4ever is offline
 
Join Date: Jun 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

**Semi Solved**

Ok for anyone interested or experiencing offset issues with their popup menus here is what I experienced and not quite sure why.

1 ) My template is an all CSS layout with two columns, header and footer. I placed the top portion of the code in header box under "common templates" and the footer portion as well.

2 ) My design included a header div as such <div id="header"></div> which was set to 170px in height and a position of relative.

PROBLEM HOWEVER:
3 ) The problem was that all popup menus regardless of location in the forum were offset 170px lower than they should have been. So for instance if I clicked on "Search" the drop down search box would be 170px below the search link. Not real attractive to say the least.

4 ) I tried everything even building my theme from scratch with a fresh install of a VB Default Theme and simply added a padding div on top of the theme for 170px to see if it was my design or just something particular to vBulletin. I ended up with the same issue. Anytime I put a sized block element above the code the JS menus are offset by the same dimensions.

Why? Well I'm not real sure and I'm hoping someone can shed some light on this.

Here is a clean example for your review;
A Simple Header Section in Common Templates
Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td align="$stylevar[left]"><a href="$vboptions[forumhome].html?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">&nbsp;</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
New Header Block Elements in Common Templates

Code:
<div id="bodybanner">/*used for repeat background*/
<div id="bodybanner2">/*used for repeat background 2*/
<div id="maxouter">/*The max container*/
	<div id="ma2">/*these sub id's represent variable width corners*/
		<div id="ma3">
			<div id="ma4">
				<div id="ma5">


/*the actual container for the forum*/
<div id="pagewrapper">
<div id="example-spacer" style="height:270px;"></div>
<div id="wrapper" class="clearfix">
		<div id="rightcolumn">vBulletin Elements Here</div>
		<div id="maincolumn" class="clearfix">
$spacer_open
$_phpinclude_output
What I did was set the vbmenu_popup to have a margin of -270px and a z-index of 90 which seems to work just fine.

I'll publish a link to the site as soon as I'm done.
Reply With Quote
  #5  
Old 01-26-2009, 06:59 PM
greatergood greatergood is offline
 
Join Date: Feb 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much for posting how you fixed it, I am building my own theme with a custom header made in photoshop and dreamweaver, And i also customized the navbar template to accommodate an image in the top of the forum (hard to explain how it looks) and i was testing it before i put it on my site and found the the popups where waaaaay off. This fixed it. Thank you again!
Reply With Quote
  #6  
Old 01-27-2009, 02:43 PM
php4ever php4ever is offline
 
Join Date: Jun 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Most welcome, I need to revisit some of my old posts and code again anyway to update a few features.

Jared Ritchey
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04602 seconds
  • Memory Usage 2,199KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete