MixMakers
05-04-2006, 10:54 PM
Right off the bat I have some problems because of other hacks I have installed. When modifying the navbar, I didn't have the codes it told me to replace and whatnot. Here's what my navbar consists of:
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>
Furthermore, I searched for what it told me to replace in the navbar and ended up finding pieces of it in my header:
<table border="0" width="900" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="border">
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]" class="logobg"><a href="index.php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->
<!-- nav -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="navbg" width="1%"><img src="$stylevar[imgdir_misc]/navbg.gif" alt="" border="0" /></td>
<td class="navbg"><if condition="$show['member']"><a href="./usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/usercp.gif" border="0" alt="User CP" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /></if><if condition="$show['registerbutton']"><a href="./register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/register.gif" border="0" alt="Register" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /></if><a href="./faq.php?$session[sessionurl]" accesskey="5"><img src="$stylevar[imgdir_misc]/faq.gif" border="0" alt="F.A.Q." /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/members.gif" border="0" alt="Member List" /></a><if condition="$show['member']"><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/cal.gif" border="0" alt="Calendar" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /></if><if condition="$show['member']"><a href="./search.php?$session[sessionurl]do=getnew" accesskey="2"><img src="$stylevar[imgdir_misc]/newp.gif" border="0" alt="New Posts" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./search.php?$session[sessionurl]" accesskey="4"><img src="$stylevar[imgdir_misc]/search.gif" border="0" alt="Search" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()"><img src="$stylevar[imgdir_misc]/logout.gif" border="0" alt="Log Out" /></a></if></td>
</tr>
</table>
<!-- /nav -->
<!-- content table -->
$spacer_open
$_phpinclude_output
And here are the instructions I'm stuck on:
B) Inside template 'navbar':
Find:
Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
Add Below:
Code:
<!-- vbPlaza start -->
<if condition="$show['member']">
<if condition="$vboptions['vbplaza_enabled']"><td id="vbplazamenu" class="vbmenu_control"><a href="$show[nojs_link]#vbplazamenu">$vbphrase[vbplaza_name] $vbphrase[vbplaza_menu]</a> <script type="text/javascript"> vbmenu_register("vbplazamenu"); </script></td></if>
</if>
<!-- vbPlaza end -->
Then Find:
Code:
<!-- / NAVBAR POPUP MENUS -->
Add Above:
Code:
<!-- vbPlaza start -->
<if condition="$show['member']">
<!-- vbplaza tools menu -->
<div class="vbmenu_popup" id="vbplazamenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead"><a href="vbplaza.php?$session[sessionurl]">$vbphrase[vbplaza_name] $vbphrase[vbplaza_main]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=48">$vbphrase[vbplaza_lottery]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=27">$vbphrase[vbplaza_give_gifts]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=118">$vbphrase[vbplaza_give_ribbons]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=13">$vbphrase[vbbux_bank]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=7">$vbphrase[vbplaza_donate]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=16">$vbphrase[vbplaza_thief]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=richestusers">$vbphrase[vbbux_richest_users]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=userhistory">$vbphrase[vbplaza_history]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=mostsold">$vbphrase[vbplaza_most_sold]</a></td></tr>
<if condition="is_member_of($vbulletin->userinfo, $vboptions['vbplaza_adminusergroups'])">
<tr><td class="thead">$vbphrase[vbplaza_admin_only]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=12">$vbphrase[vbplaza_admin_donate]</a></td></tr>
</if>
</table>
</div>
<!-- / vbplaza tools menu -->
</if>
<!-- vbPlaza end -->
Any help to get this code modified to work would be appreciated. TY!
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>
Furthermore, I searched for what it told me to replace in the navbar and ended up finding pieces of it in my header:
<table border="0" width="900" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="border">
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]" class="logobg"><a href="index.php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->
<!-- nav -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="navbg" width="1%"><img src="$stylevar[imgdir_misc]/navbg.gif" alt="" border="0" /></td>
<td class="navbg"><if condition="$show['member']"><a href="./usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/usercp.gif" border="0" alt="User CP" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /></if><if condition="$show['registerbutton']"><a href="./register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/register.gif" border="0" alt="Register" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /></if><a href="./faq.php?$session[sessionurl]" accesskey="5"><img src="$stylevar[imgdir_misc]/faq.gif" border="0" alt="F.A.Q." /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/members.gif" border="0" alt="Member List" /></a><if condition="$show['member']"><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/cal.gif" border="0" alt="Calendar" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /></if><if condition="$show['member']"><a href="./search.php?$session[sessionurl]do=getnew" accesskey="2"><img src="$stylevar[imgdir_misc]/newp.gif" border="0" alt="New Posts" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./search.php?$session[sessionurl]" accesskey="4"><img src="$stylevar[imgdir_misc]/search.gif" border="0" alt="Search" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()"><img src="$stylevar[imgdir_misc]/logout.gif" border="0" alt="Log Out" /></a></if></td>
</tr>
</table>
<!-- /nav -->
<!-- content table -->
$spacer_open
$_phpinclude_output
And here are the instructions I'm stuck on:
B) Inside template 'navbar':
Find:
Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
Add Below:
Code:
<!-- vbPlaza start -->
<if condition="$show['member']">
<if condition="$vboptions['vbplaza_enabled']"><td id="vbplazamenu" class="vbmenu_control"><a href="$show[nojs_link]#vbplazamenu">$vbphrase[vbplaza_name] $vbphrase[vbplaza_menu]</a> <script type="text/javascript"> vbmenu_register("vbplazamenu"); </script></td></if>
</if>
<!-- vbPlaza end -->
Then Find:
Code:
<!-- / NAVBAR POPUP MENUS -->
Add Above:
Code:
<!-- vbPlaza start -->
<if condition="$show['member']">
<!-- vbplaza tools menu -->
<div class="vbmenu_popup" id="vbplazamenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead"><a href="vbplaza.php?$session[sessionurl]">$vbphrase[vbplaza_name] $vbphrase[vbplaza_main]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=48">$vbphrase[vbplaza_lottery]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=27">$vbphrase[vbplaza_give_gifts]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=118">$vbphrase[vbplaza_give_ribbons]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=13">$vbphrase[vbbux_bank]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=7">$vbphrase[vbplaza_donate]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=16">$vbphrase[vbplaza_thief]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=richestusers">$vbphrase[vbbux_richest_users]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=userhistory">$vbphrase[vbplaza_history]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=mostsold">$vbphrase[vbplaza_most_sold]</a></td></tr>
<if condition="is_member_of($vbulletin->userinfo, $vboptions['vbplaza_adminusergroups'])">
<tr><td class="thead">$vbphrase[vbplaza_admin_only]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&itemid=12">$vbphrase[vbplaza_admin_donate]</a></td></tr>
</if>
</table>
</div>
<!-- / vbplaza tools menu -->
</if>
<!-- vbPlaza end -->
Any help to get this code modified to work would be appreciated. TY!