Thanks a bunch, I'm completely new to PHP and doing my best to struggle and learn :-/
navbar template:
Code:
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="vbcm" align="$stylevar[left]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<if condition="$show['member']">
<td class="vbcm_b"><a href="usercp.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_profile.gif" alt="$vbphrase[user_cp]" /></a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbcm_b"><a href="register.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_register.gif" alt="$vbphrase[register]" /></a></td>
</if>
<td class="vbcm_b"><a href="faq.php?$session[sessionurl]" accesskey="5"><img border="0" src="$stylevar[imgdir_button]/top_faq.gif" alt="$vbphrase[faq]" /></a></td>
<td class="vbcm_b"><a href="memberlist.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_members.gif" alt="$vbphrase[members_list]" /></a></td>
##################you can insert the timeslips here########################
<td class="vbcm_b"><a href="calendar.php?$session[sessionurl]"><img border="0" src="$stylevar[imgdir_button]/top_calendar.gif" alt="$vbphrase[calendar]" /></a></td>
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbcm_b"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img border="0" src="$stylevar[imgdir_button]/top_new.gif" alt="$vbphrase[new_posts_nav]" /></a></td>
<else />
<td class="vbcm_b"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><img border="0" src="$stylevar[imgdir_button]/top_daily.gif" alt="$vbphrase[todays_posts]" /></a></td>
</if>
<td id="navbar_search" class="vbcm_b"><a href="search.php?$session[sessionurl]" accesskey="4"><img border="0" src="$stylevar[imgdir_button]/top_search.gif" alt="$vbphrase[search]" /></a><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></td>
</if>
<if condition="$bbuserinfo['userid']">
<td id="usercptools" class="vbcm_b"><a href="#usercptools"><img border="0" src="$stylevar[imgdir_button]/top_links.gif" alt="$vbphrase[quick_links]" /></a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbcm_b"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbcm_b"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbcm_b"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbcm_b"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
<if condition="$bbuserinfo['userid']">
<td class="vbcm_b"><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;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$bbuserinfo['userid']">
<td class="vbcm_b"><a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()"><img border="0" src="$stylevar[imgdir_button]/top_logout.gif" alt="$vbphrase[log_out]" /></a></td>
</if>
</tr>
</table>
<!-- / nav buttons bar -->
</td>
</tr>
</table>
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>
<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><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;">$vbphrase[open_buddy_list]</a></td></tr>
<tr><td class="thead"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
</if>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output