Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2015, 03:23 PM
dj83 dj83 is offline
 
Join Date: Sep 2013
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I remove nave bar?

Hello,

I would like to remove my navbar from my site but how would I have to do it?
I'm posting a pic below marked with red lines of the part I wish to remove.

Attachment 152529

Thanks!
Reply With Quote
  #2  
Old 05-24-2015, 04:07 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

  1. Log in to your admin control panel.
  2. Open the style manager.
  3. double click on Navigation/Breadcrumb templates to view templates in the group
  4. choose the Navbar template (double click to get to the edit window)
  5. scroll down until you find: <!-- nav buttons bar -->
  6. delete everything between that and the line <!-- / nav buttons bar -->
  7. save and reload then view your forum
I would make a child of your default style and edit that to make sure it works before you do it live.
Reply With Quote
  #3  
Old 05-24-2015, 05:51 PM
dj83 dj83 is offline
 
Join Date: Sep 2013
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much!
Reply With Quote
  #4  
Old 05-24-2015, 06:23 PM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why does every suggest that people delete code from templates? If you decide to add the nav bar back at a later date then you won't be able to u less you revert the template. You should comment out the lines instead.
Reply With Quote
Благодарность от:
ForceHSS
  #5  
Old 05-24-2015, 07:17 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never delete template coding just comment it out //
Reply With Quote
  #6  
Old 05-24-2015, 08:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Black Snow View Post
Why does every suggest that people delete code from templates? If you decide to add the nav bar back at a later date then you won't be able to u less you revert the template. You should comment out the lines instead.
Not true at all. When you go to edit the template, just click the link that says View History and you can see a comparison of your customized template and the default template OR you can just click Show Default to see the default template and grab the code to copy/paste it back in.
Reply With Quote
Благодарность от:
blind-eddie
  #7  
Old 05-26-2015, 04:14 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne, cant we edit those lines in templates ? as suggested by ForceHSS
Reply With Quote
  #8  
Old 05-26-2015, 04:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First off, // is what you use to comment out PHP code or javascript, not HTML, so that won't work in templates. Secondly, what does work is using <!-- stuff here --> , however, sometimes those will cause issues if used in the middle of a table. Also, if you are wanting to make something so a user cannot see the information, then using comment tags will just put the information into the page source, so it is still there and a user can view it by looking at the page source. I don't think that is the case here, but sometimes that is the case and so you wouldn't want to just comment the information out.
Reply With Quote
Благодарность от:
SaN-DeeP
  #9  
Old 05-26-2015, 05:00 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Secondly, what does work is using <!-- stuff here -->
Sorry to reply again, i did not get this ?

Quote:
if you are wanting to make something so a user cannot see the information, then using comment tags will just put the information into the page source, so it is still there and a user can view it by looking at the page source
Thanks for clarifying this most important piece of information... Never ever looked after commenting those templates.
Thanks a lot again...
Reply With Quote
  #10  
Old 05-26-2015, 05:05 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP View Post
Lynne, cant we edit those lines in templates ? as suggested by ForceHSS
I was not saying to use // for templates // just stands for to comment something out
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 12:11 AM.


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.10764 seconds
  • Memory Usage 2,267KB
  • 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
  • (4)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
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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_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