vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do I remove nave bar? (https://vborg.vbsupport.ru/showthread.php?t=318801)

dj83 05-24-2015 03:23 PM

How do I remove nave bar?
 
1 Attachment(s)
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!

darnoldy 05-24-2015 04:07 PM

  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.

dj83 05-24-2015 05:51 PM

Thanks so much!

Black Snow 05-24-2015 06:23 PM

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.

ForceHSS 05-24-2015 07:17 PM

Never delete template coding just comment it out //

Lynne 05-24-2015 08:05 PM

Quote:

Originally Posted by Black Snow (Post 2546349)
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.

SaN-DeeP 05-26-2015 04:14 PM

Lynne, cant we edit those lines in templates ? as suggested by ForceHSS

Lynne 05-26-2015 04:52 PM

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.

SaN-DeeP 05-26-2015 05:00 PM

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...

ForceHSS 05-26-2015 05:05 PM

Quote:

Originally Posted by SaN-DeeP (Post 2546479)
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


All times are GMT. The time now is 05:05 AM.

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.01142 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete