PDA

View Full Version : Problems with Navbar and Header templates


VietLang
04-11-2006, 05:07 AM
I bought my this skin from vbdesigns.de:
http://www.vbdesigns.de/demo/?styleid=47

For some reason, the folks at vbdesigns design their skins a little bit different from the mainstream, especially the header and navbar templates. When I install this hack, everything works fine except the navbar template where you'll have to find these two lines of codes in the navbar template:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">

Unfortunately, in my navbar template, those two lines don't exist, but instead, they're in the header template, but each line is at different location. I tried my best to install but I couldn't get the menu for the vbplaza to work. Here are my templates, please show me where to insert part B of the installation.

Navbar:

<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>

<div style="padding-top:5px;"></div>
<div class="forbg">
<div class="forl">
<div class="forr">
<div class="fortitel"><strong>Navigation</strong>
</div>
</div>
</div>
</div>
<div class="c_border_left">
<div class="c_border_right">

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

<if condition="$show['member']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>
</td>

<else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>
<if condition="$show['forumdesc']"></tr>
<tr>
<td class="alt1" colspan="2" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>

</if>
</tr>
</table>


<!-- / breadcrumb, login, pm info -->

</div>
</div>
<div class="c_border_bottombg">
<div class="c_border_bottom_left">
<div class="c_border_bottom-right">
</div>
</div>
</div>
<div style="padding-top:5px;"></div>

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->



Header:

<!-- logo -->

<div>
<div>
<a href="http://www.vietnhim.com/">
<img border="1" src="http://www.vietnhim.com/designs/cyborg/menu_buttons/nghe_nhac.gif"

width="92" height="28" alt="Nghe Nhac Tre Viet Nam"></a>
<a href="http://www.vietnhim.com/VietGallery/index.php">
<img border="1" src="http://www.vietnhim.com/designs/cyborg/menu_buttons/viet_gallery.gif"

width="92" height="28" alt="Viet Gallery"></a>
<a href="http://www.vietnhim.com/CuteGallery/index.php">
<img border="1" src="http://www.vietnhim.com/designs/cyborg/menu_buttons/cute_gallery.gif"

width="92" height="28" alt="Cute Wallpapers Gallery"></a>
<a href="http://www.vietnhim.com/vietdirectory/index.php">
<img border="1" src="http://www.vietnhim.com/designs/cyborg/menu_buttons/viet_directory.gif"

width="92" height="28" alt="Viet Websites Directory"></a>
<a href="http://www.vietnhim.com/music/index.php">
<img border="1"

src="http://www.vietnhim.com/designs/cyborg/menu_buttons/nhac_ngoai_quoc.gif" width="92" height="28" alt="Nghe Nhac

Ngoai Quoc"></a>
<a href="http://www.vietlibrary.com/NhuLieu.htm">
<img border="1" src="http://www.vietnhim.com/designs/cyborg/menu_buttons/downloads.gif"

width="92" height="28" alt="Download Free Softwares"></a>
<a href="http://computer.vietnhim.com/">
<img border="1" src="http://www.vietnhim.com/designs/cyborg/menu_buttons/computers.gif"

width="92" height="28" alt="Computers Accessories"></a>
<a href="http://www.nhimfreehost.com/">
<img border="1" src="http://www.vietnhim.com/designs/cyborg/menu_buttons/host_mien_phi.gif"

width="92" height="28" alt="Host Mien Phi"></a>
</div>
</div>

<a id="top"></a>
<div class="headbg">
<div class="headpic"><a href="$vboptions[forumhome].php?$session[sessionurl_q]"><img src="/designs/cyborg/sp.gif" alt="$vboptions[bbtitle]" width="524" height="111" /></a></div>
</div>
<div class="navibg">
<div class="center_navi">
<if condition="$show['member']"><div class="c_log_out"><a class="c_log_out" title=" <phrase 1="$bbuserinfo[username]"> $vbphrase[log_out_x]</phrase> " href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><span> <phrase 1="$bbuserinfo[username]"> $vbphrase[log_out_x]</phrase> </span></a></div><else /><div class="c_register_right"><a class="c_register_right" href="register.php?$session[sessionurl]" title="$vbphrase[register]"><span>$vbphrase[register]</span></a></div></if>
<if condition="$show['member']"><div class="c_new_posts"><a class="c_new_posts" href="search.php?$session[sessionurl]do=getnew" accesskey="2" title="$vbphrase[new_posts_nav]"><span>$vbphrase[new_posts_nav]</span></a></div>
<else /><div class="c_daily_posts"><a class="c_daily_posts" href="search.php?$session[sessionurl]do=getdaily" accesskey="2" title="$vbphrase[todays_posts]"><span>$vbphrase[todays_posts]</span></a></div></if>
<if condition="$show['member']"><div class="c_menu"><div id="usercptools"><a class="c_menu" href="#usercptools" title="$vbphrase[quick_links]"><span>$vbphrase[quick_links]</span></a> <script type="text/javascript"> vbmenu_register("usercptools", true); </script></div></div><else />
<div class="c_menu"><div id="usercptoolsguest"><a class="c_menu" href="#usercptools" title="$vbphrase[quick_links]"><span>$vbphrase[quick_links]</span></a> <script type="text/javascript"> vbmenu_register("usercptoolsguest", true); </script></div></div></if>
<div class="c_search"><div id="navbar_search"><a class="c_search" href="search.php?$session[sessionurl]" accesskey="4" title="$vbphrase[search]"><span>$vbphrase[search]</span></a><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></div></div>
<if condition="$show['member']"><div class="c_user_cp"><a class="c_user_cp" href="usercp.php?$session[sessionurl]" title="$vbphrase[user_cp]"><span>$vbphrase[user_cp]</span></a></div></if>
<if condition="$show['registerbutton']"><div class="c_register"><a class="c_register" href="register.php?$session[sessionurl]" title="$vbphrase[register]"><span>$vbphrase[register]</span></a></div></if>
<div class="c_faq"><a class="c_faq" href="faq.php?$session[sessionurl]" accesskey="5" title="$vbphrase[faq]"><span>$vbphrase[faq]</span></a></div>
<div class="c_member"><a class="c_member" href="memberlist.php?$session[sessionurl]" title="$vbphrase[members_list]"><span>$vbphrase[members_list]</span></a></div>
<div class="c_calendar"><a class="c_calendar" href="calendar.php?$session[sessionurl]" title="$vbphrase[calendar]"><span>$vbphrase[calendar]</span></a></div>
<div class="nav_middle_pic"><a href="$vboptions[forumhome].php?$session[sessionurl_q]"><img src="/designs/cyborg/sp.gif" alt="$vboptions[bbtitle]" width="82" height="33" /></a></div>

</div>
</div>
<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" style="text-align:left;">
<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" style="text-align:left;" >

<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&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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>
<tr><td class="vbmenu_option"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></tr>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptoolsguest_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0" style="text-align:left;" >

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<tr><td class="vbmenu_option"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>

</table>
</div>
<!-- / user cp tools menu -->

<!-- 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&amp;itemid=48">$vbphrase[vbplaza_lottery]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=27">$vbphrase[vbplaza_give_gifts]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=118">$vbphrase[vbplaza_give_ribbons]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=13">$vbphrase[vbbux_bank]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=7">$vbphrase[vbplaza_donate]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;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&amp;itemid=12">$vbphrase[vbplaza_admin_donate]</a></td></tr>
</if>

</table>
</div>
<!-- / vbplaza tools menu -->
</if>
<!-- vbPlaza end -->

<!-- / NAVBAR POPUP MENUS -->

</if>
<div class="top_borderbg">
<div class="top_border_right_pic"></div>
<div class="top_border_left_pic"></div>
<div class="top_border_middle_pic"></div>
</div>
<div class="border_left">
<div class="border_right">

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output


Thank you very much.

CMX_CMGSCCC
04-12-2006, 11:57 AM
I havent had time to make the template edits for this area.

A lot of styles seem to use the header for this, when I get some free time, I'll see about looking into this, unless someone else has beat me to it and posts theirs here.

-CMX

VietLang
04-12-2006, 02:25 PM
Ok, thanks for checking CMX.

Just to let you know, this hack is awsome. My members really love them. Thanks for the good work :)

VietLang
06-17-2006, 09:02 PM
Does anyone know how to fix this issue?

Thanks

CMX_CMGSCCC
06-20-2006, 07:43 PM
Someone has posted some updates for these type of styles, just need to search for it in this forum to find it.

-CMX