vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Hiding navbar from guests (https://vborg.vbsupport.ru/showthread.php?t=306576)

giorgioarmani 01-03-2014 03:34 PM

Hiding navbar from guests
 
I'd like to hide the entire navbar from guests.

All template edit suggestions I find appear to be different from the version I'm using (4.2.2).

Can anyone point me in the right direction?

Lynne 01-03-2014 04:19 PM

HTML Code:

<vb:if condition="$show['member']">
code to show to logged in users
</vb:if>

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

giorgioarmani 01-03-2014 07:34 PM

Lynne, you are a star!

Got it; Problem solved.

Thank you :)

K4GAP 01-08-2014 12:51 AM

Quote:

Originally Posted by Lynne (Post 2472045)
HTML Code:

<vb:if condition="$show['member']">
code to show to logged in users
</vb:if>

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

OT

I think I just learned something from you Lynne.

Placing the code you used to the front of certain templates will do the same as this post is referring too? In other words, If I wanted to hide for example the "footer". I could use
Code:

<vb:if condition="$show['member']">
to the footer template to hide it from guests?

Max Taxable 01-08-2014 01:05 AM

Quote:

Originally Posted by GaryT (Post 2472889)
OT

I think I just learned something from you Lynne.

Placing the code you used to the front of certain templates will do the same as this post is referring too? In other words, If I wanted to hide for example the "footer". I could use
Code:

<vb:if condition="$show['member']">
to the footer template to hide it from guests?

I'm not Lynne but yep, as long as you also close the conditional with </vb:if>


All times are GMT. The time now is 01:06 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.01256 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete