View Full Version : Hiding navbar from guests
giorgioarmani
01-03-2014, 02:34 PM
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, 03:19 PM
<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, 06:34 PM
Lynne, you are a star!
Got it; Problem solved.
Thank you :)
K4GAP
01-07-2014, 11:51 PM
<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 <vb:if condition="$show['member']"> to the footer template to hide it from guests?
Max Taxable
01-08-2014, 12:05 AM
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 <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>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.