Thanks mate,done it a bit different but same result...
Having a small problem as to where to insert a button for the side bars on/off.... What does this function do anyway ??
Below is a section of code from my navbar
HTML Code:
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="4"><img src="/forum/images/buttons/top_search_gold.gif"></a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img src="/forum/images/buttons/top_new posts_gold.gif"></a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"></a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread"><img src="/forum/images/buttons/top_ mark read_gold.gif"></a></td></a></td>
<if condition="$bbuserinfo['userid']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;"><img src="/forum/images/buttons/top_buddy_gold.gif"></a></td>
</if>
<if condition="$show['switchdisplay']">
<td class="vbmenu_control">$switchdisplay</td>
</if>
</if>
<if condition="$bbuserinfo['userid']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()"><img src="/forum/images/buttons/top_logout_gold.gif"></a></td>
</if>
</tr>
</table>
</div>