Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2014, 09:29 PM
StonePilot StonePilot is offline
 
Join Date: Jan 2007
Location: Texas
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Swapping Nabtab out for mega menu ... help!

I want to test out a mega menu and have created one using the CSS3 Menu builder and it works properly when I totally bypass the navbar code in vb 4.2.

However, I want to simply replace the current NAVTAB with this CSS menu, and no matter what I do, the new menu bar is pushed down outside of the navtab class/style call, instead of inside it.

This is the code in question, from the default "navbar" template ...

Code:
<div id="navbar" class="navbar">
<ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
		{vb:raw template_hook.navtab_start}
		{vb:raw navigation}{vb:raw CSS_Menu}
		{vb:raw template_hook.navtab_end}
	</ul>

.......
</div>
When I replace the "navtab" template with the new css menu and keep everything else the same I get this ...



...

But when I take out the class call in the initial <ul> then I get this ...



...

So thoughts? I've tried renaming the <ul> to be a <div> ... I'm just not familiar with how the vb style works to get this done. If I have to then I'll just remove everything, but then I have to figure out how to get the search box back in there, and like I said I'm just not good at this stuff and if it's going to be a pain then I'll either give up or hire someone to patch it together ...
Attached Images
File Type: png css-menu-replace-navtab.png (14.0 KB, 0 views)
File Type: png css-menu-replace-navtab-remove-class.png (11.3 KB, 0 views)
Reply With Quote
  #2  
Old 04-29-2014, 10:03 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StonePilot View Post
if it's going to be a pain then I'll either give up and switch to xenforo
You are trying to do some custom coding and you do not know how, of course it is going to be a pain!

I do certainly see that you are trying, but we have no idea what code you are adding or exactly where (although I do have a rough idea). Most of us will assist you if you make it easy for us, but this is not a free coding service and you should not expect it to be. Put something together in a form that we do not have to recreate your experiment. Read, edit your post and fill in the blanks and I will see what I can do.

Remember when you are asking for help, you are asking volunteer enthusiasts of vBulletin.org, threatening to leave to xenforo is probably not the best way to warm our hearts or to receive help.

What version of vBulletin?
Board Link?

Give it another whirl and let's see what we can do.
Reply With Quote
Благодарность от:
CAG CheechDogg
  #3  
Old 04-29-2014, 10:47 PM
StonePilot StonePilot is offline
 
Join Date: Jan 2007
Location: Texas
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suspect that someone who knows how to do this can help me out in 10 minutes of work.

Sorry, this was a cut-and-paste job that I had sent to someone else, they are big xenforo advocates so putting that in there was meant for them and I forgot to take it our here.

edit:

- Site is vb 4.2.2.
- If anyone knows how to do this, then PM me and I'll send the link.
- Using the stock vbulletin 4.2.2 style with just colors changed and typical template changes for things like ads, etc.
- I created a css3 menu "mega menu" and I really like the way that it works. However, it's not going to be perfect. :-(
- The problem comes in understanding how to make the navtabs class spit out the new css menu without moving it down ...

--------------- Added [DATE]1398815826[/DATE] at [TIME]1398815826[/TIME] ---------------

Sorry, I also realized that I was hotlinking to those photos. Let me upload them again.
Reply With Quote
Благодарность от:
tbworld
  #4  
Old 04-29-2014, 11:02 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you are wanting to pay someone then you need to post in the right forum
Reply With Quote
  #5  
Old 04-29-2014, 11:09 PM
StonePilot StonePilot is offline
 
Join Date: Jan 2007
Location: Texas
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
if you are wanting to pay someone then you need to post in the right forum
ugh, for crying out loud. This is going on a 2-million+ post forum with 80,000+ members, so of course I'm willing to pay someone.

--------------- Added [DATE]1398817453[/DATE] at [TIME]1398817453[/TIME] ---------------

Sorry, please forgive me being rude. It's just frustrating as if I wanted to spend maybe 6 hours working on this I could figure out how to adjust the template. I'm also shocked that more people haven't asked for this type of help in the past.
Reply With Quote
  #6  
Old 04-29-2014, 11:41 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can understand you are frustrated but once you talked about paying then it needs posted in the correct section I was only pointing this out
Reply With Quote
  #7  
Old 04-30-2014, 03:23 PM
StonePilot StonePilot is offline
 
Join Date: Jan 2007
Location: Texas
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can fix this myself if someone can just tell me what to swap out.

--------------- Added [DATE]1398895613[/DATE] at [TIME]1398895613[/TIME] ---------------

It's all just manipulation of the css files for navtab, I was able to get this to work.
Reply With Quote
  #8  
Old 04-30-2014, 11:27 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't forgotten about you, just have not had the time to look at it yet.
Reply With Quote
  #9  
Old 05-01-2014, 12:05 AM
StonePilot StonePilot is offline
 
Join Date: Jan 2007
Location: Texas
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can get it to work ... Just not when keeping the narbar links.
Reply With Quote
  #10  
Old 05-01-2014, 12:49 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A live example of your site would be helpful, or the code.
Reply With Quote
Reply


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:50 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.05221 seconds
  • Memory Usage 2,283KB
  • Queries Executed 12 (?)
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
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete