Quote:
Originally Posted by MikeWarner
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.
|
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.