The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi - I'm comfortable with conditionals, but can't figure out how to do this.
I want the sidebar to not be collapsible for guests. Any ideas on how to do this please? Many thanks. |
#2
|
||||
|
||||
![]() Quote:
Hi there, At the FORUMEHOME template find the following code: HTML Code:
<div id="sidebar_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="sidebarleft"</vb:if>> <a id="sidebar_button_link" href="#"> <vb:if condition="$show['sidebarposition'] == 'left'"> <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" /> <vb:else /> <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" /> </vb:if> </a> <ul id="sidebar"> {vb:raw sidebar} </ul> </div> and replace it with: HTML Code:
<vb:if condition="$show['guest']"> <div id="sidebar_container"> <a id="sidebar_button_link" href="#"></a> <ul id="sidebar"> {vb:raw sidebar} </ul> </div> <vb:else /> <div id="sidebar_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="sidebarleft"</vb:if>> <a id="sidebar_button_link" href="#"> <vb:if condition="$show['sidebarposition'] == 'left'"> <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" /> <vb:else /> <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" /> </vb:if> </a> <ul id="sidebar"> {vb:raw sidebar} </ul> </div> </vb:if> That should do the trick. |
#3
|
||||
|
||||
![]()
Thanks - I'll give it a go.
|
#4
|
||||
|
||||
![]()
You are welcome. Let me know how it will go.
|
#5
|
||||
|
||||
![]()
Worked - but I used $show['member'] instead. Thanks.
|
#6
|
||||
|
||||
![]()
No problem.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|