View Full Version : Need help with Navbar
Gophers
11-02-2014, 12:32 PM
I won't show you the site. But here it goes.
How would i go about taking the Navbar and it links and moving on top of my forum logo. I have a forum logo that not finish yet, but i want to move the Navbar on to my forum logo, is it possible and what the best way to start. The Navbar i want to move, i want move it to the area in the gold color above my black.
ozzy47
11-02-2014, 12:36 PM
That would require you to edit each template that the navbar shows on, and manually move it in the template.
Gophers
11-02-2014, 12:38 PM
Yeah i figure that one out. I will keep fooling around.
HM666
11-06-2014, 02:48 AM
You can actually take the navbar coding out of the navbar template leaving the important bits and place all of the code into the header template and make sure that you have your graphics coded with css and place the navbar code inside it. That way it shows globally across your forum and you do not lose navbar function.
Gophers
11-06-2014, 08:23 PM
Thank. I may end up doing it. I working on another skin though, so this will be on the back burner for a bit.
Gophers
11-06-2014, 10:31 PM
I almost finish with a skin i am working on. it a copy of a skin i have for another site. I do have a problem that i running into too.
I am trying to get the private messages and last visit info to align into my logo.
Here is part of my logo, not the full logo. It the right section of it.
Trying to move the last visit, private messages into the gray area of my logo. I can provide the code i am using if needed.
HM666
11-06-2014, 11:19 PM
I almost finish with a skin i am working on. it a copy of a skin i have for another site. I do have a problem that i running into too.
I am trying to get the private messages and last visit info to align into my logo.
Here is part of my logo, not the full logo. It the right section of it.
Trying to move the last visit, private messages into the gray area of my logo. I can provide the code i am using if needed.
Yeah you will need to post the code probably. you can get it to move with some css though. If you are wrapping this in a div tag then you can easily add some css to position the text where you want it.
Gophers
11-06-2014, 11:21 PM
Going to provide the whole header code.
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="background: url($stylevar[imgdir_misc]/header_bb_l.jpg) no-repeat bottom left;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
<td height="25" width="100%" class="thead" style="border: none; padding: 0px;">
<!-- nav buttons bar -->
<div style="width: 100%;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="thead" style="border: none; background: none;"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="thead" style="border: none; background: none;"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<if condition="$show['communitylink'] AND $show['popups']">
<td class="thead" style="border: none; background: none;"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
<else />
<if condition="$show['memberslist']">
<td class="thead" style="border: none; background: none;"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<if condition="$show['quick_links_groups']">
<td class="thead" style="border: none; background: none;"><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
</if>
</if>
<td class="thead" style="border: none; background: none;"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td class="thead" style="border: none; background: none;"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="thead" style="border: none; background: none;"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="thead" style="border: none; background: none;"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
</td>
<td style="background: url($stylevar[imgdir_misc]/header_bb_r.jpg) no-repeat bottom right;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
</tr>
</table>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td width="613" id="header_right_cell" no-repeat top right;">
<table border="0" width="25%;" cellpadding="0" cellspacing="0" align="right">
<tr>
<td align="left" valign="top" nowrap=nowrap>
<if condition="$show['member']">
<div align="center" class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
<else />
<div align="left">
<!-- login form -->
<form action="login.php?do=login" 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?v=$vboptions[simpleversion]"></script>
<table align="center" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" align="right" style="white-space: nowrap;"><label for="navbar_username">Username</label></td>
<td align="right"><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="8" accesskey="u" tabindex="101" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" nowrap="nowrap" align="left"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember</label></td>
</tr>
<tr>
<td class="smallfont" align="right"><label for="navbar_password">$vbphrase[password]</label></td>
<td align="right"><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="8" tabindex="102" /></td>
<td align="left"><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="securitytoken" value="$bbuserinfo[securitytoken]" />
<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 -->
</div>
</if>
</td>
</tr>
<tr>
<td height="45"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /logo -->
<table class="page" border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="height: 100%;">
<tr>
<td style="background: url($stylevar[imgdir_misc]/tdl.jpg) repeat-y left;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" alt="" /></td>
<td valign="top" width="100%">
<!-- content table -->
$_phpinclude_output
HM666
11-06-2014, 11:34 PM
Try this:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="background: url($stylevar[imgdir_misc]/header_bb_l.jpg) no-repeat bottom left;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
<td height="25" width="100%" class="thead" style="border: none; padding: 0px;">
<!-- nav buttons bar -->
<div style="width: 100%;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="thead" style="border: none; background: none;"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="thead" style="border: none; background: none;"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<if condition="$show['communitylink'] AND $show['popups']">
<td class="thead" style="border: none; background: none;"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
<else />
<if condition="$show['memberslist']">
<td class="thead" style="border: none; background: none;"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<if condition="$show['quick_links_groups']">
<td class="thead" style="border: none; background: none;"><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
</if>
</if>
<td class="thead" style="border: none; background: none;"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td class="thead" style="border: none; background: none;"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="thead" style="border: none; background: none;"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="thead" style="border: none; background: none;"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
</td>
<td style="background: url($stylevar[imgdir_misc]/header_bb_r.jpg) no-repeat bottom right;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
</tr>
</table>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td width="613" id="header_right_cell" no-repeat top right;">
<table border="0" width="25%;" cellpadding="0" cellspacing="0" align="right">
<tr>
<td align="left" valign="top" nowrap=nowrap>
<div style="padding-right:125px;"><if condition="$show['member']">
<div align="center" class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
<else />
<div align="left">
<!-- login form -->
<form action="login.php?do=login" 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?v=$vboptions[simpleversion]"></script>
<table align="center" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" align="right" style="white-space: nowrap;"><label for="navbar_username">Username</label></td>
<td align="right"><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="8" accesskey="u" tabindex="101" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" nowrap="nowrap" align="left"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember</label></td>
</tr>
<tr>
<td class="smallfont" align="right"><label for="navbar_password">$vbphrase[password]</label></td>
<td align="right"><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="8" tabindex="102" /></td>
<td align="left"><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="securitytoken" value="$bbuserinfo[securitytoken]" />
<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 -->
</div>
</if></div>
</td>
</tr>
<tr>
<td height="45"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /logo -->
<table class="page" border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="height: 100%;">
<tr>
<td style="background: url($stylevar[imgdir_misc]/tdl.jpg) repeat-y left;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" alt="" /></td>
<td valign="top" width="100%">
<!-- content table -->
$_phpinclude_output
Gophers
11-06-2014, 11:37 PM
Thank you. But it didn't work.
HM666
11-06-2014, 11:42 PM
Thank you. But it didn't work.
Did it move it at all?
Try this instead:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="background: url($stylevar[imgdir_misc]/header_bb_l.jpg) no-repeat bottom left;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
<td height="25" width="100%" class="thead" style="border: none; padding: 0px;">
<!-- nav buttons bar -->
<div style="width: 100%;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="thead" style="border: none; background: none;"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="thead" style="border: none; background: none;"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<if condition="$show['communitylink'] AND $show['popups']">
<td class="thead" style="border: none; background: none;"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
<else />
<if condition="$show['memberslist']">
<td class="thead" style="border: none; background: none;"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<if condition="$show['quick_links_groups']">
<td class="thead" style="border: none; background: none;"><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
</if>
</if>
<td class="thead" style="border: none; background: none;"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td class="thead" style="border: none; background: none;"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="thead" style="border: none; background: none;"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="thead" style="border: none; background: none;"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
</td>
<td style="background: url($stylevar[imgdir_misc]/header_bb_r.jpg) no-repeat bottom right;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
</tr>
</table>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td width="613" id="header_right_cell" no-repeat top right;">
<table border="0" width="25%;" cellpadding="0" cellspacing="0" align="right">
<tr>
<td align="left" valign="top" nowrap=nowrap>
<div style="margin-right:125px;"><if condition="$show['member']">
<div align="center" class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
<else />
<div align="left">
<!-- login form -->
<form action="login.php?do=login" 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?v=$vboptions[simpleversion]"></script>
<table align="center" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" align="right" style="white-space: nowrap;"><label for="navbar_username">Username</label></td>
<td align="right"><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="8" accesskey="u" tabindex="101" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" nowrap="nowrap" align="left"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember</label></td>
</tr>
<tr>
<td class="smallfont" align="right"><label for="navbar_password">$vbphrase[password]</label></td>
<td align="right"><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="8" tabindex="102" /></td>
<td align="left"><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="securitytoken" value="$bbuserinfo[securitytoken]" />
<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 -->
</div>
</if></div>
</td>
</tr>
<tr>
<td height="45"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /logo -->
<table class="page" border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="height: 100%;">
<tr>
<td style="background: url($stylevar[imgdir_misc]/tdl.jpg) repeat-y left;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" alt="" /></td>
<td valign="top" width="100%">
<!-- content table -->
$_phpinclude_output
Gophers
11-06-2014, 11:43 PM
[QUOTE=HM666;2521716]Did it move it at all?
It didn't move. Going to try with the new code you posted just now.
--------------- Added 1415324824 at 1415324824 ---------------
Just try it with the new code you posted and it still didn't move at all.
HM666
11-07-2014, 12:17 AM
[QUOTE=HM666;2521716]Did it move it at all?
It didn't move. Going to try with the new code you posted just now.
--------------- Added 1415324824 at 1415324824 ---------------
Just try it with the new code you posted and it still didn't move at all.
Hmmm try this possibly:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="background: url($stylevar[imgdir_misc]/header_bb_l.jpg) no-repeat bottom left;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
<td height="25" width="100%" class="thead" style="border: none; padding: 0px;">
<!-- nav buttons bar -->
<div style="width: 100%;margin-right:125px;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="thead" style="border: none; background: none;"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="thead" style="border: none; background: none;"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<if condition="$show['communitylink'] AND $show['popups']">
<td class="thead" style="border: none; background: none;"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
<else />
<if condition="$show['memberslist']">
<td class="thead" style="border: none; background: none;"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<if condition="$show['quick_links_groups']">
<td class="thead" style="border: none; background: none;"><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
</if>
</if>
<td class="thead" style="border: none; background: none;"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td class="thead" style="border: none; background: none;"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="thead" style="border: none; background: none;"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="thead" style="border: none; background: none;"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="thead" style="border: none; background: none;"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="thead" style="border: none; background: none;"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
</td>
<td style="background: url($stylevar[imgdir_misc]/header_bb_r.jpg) no-repeat bottom right;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
</tr>
</table>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td width="613" id="header_right_cell" no-repeat top right;">
<table border="0" width="25%;" cellpadding="0" cellspacing="0" align="right">
<tr>
<td align="left" valign="top" nowrap=nowrap>
<if condition="$show['member']">
<div align="center" class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
<else />
<div align="left">
<!-- login form -->
<form action="login.php?do=login" 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?v=$vboptions[simpleversion]"></script>
<table align="center" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" align="right" style="white-space: nowrap;"><label for="navbar_username">Username</label></td>
<td align="right"><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="8" accesskey="u" tabindex="101" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" nowrap="nowrap" align="left"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember</label></td>
</tr>
<tr>
<td class="smallfont" align="right"><label for="navbar_password">$vbphrase[password]</label></td>
<td align="right"><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="8" tabindex="102" /></td>
<td align="left"><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="securitytoken" value="$bbuserinfo[securitytoken]" />
<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 -->
</div>
</if>
</td>
</tr>
<tr>
<td height="45"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /logo -->
<table class="page" border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="height: 100%;">
<tr>
<td style="background: url($stylevar[imgdir_misc]/tdl.jpg) repeat-y left;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" alt="" /></td>
<td valign="top" width="100%">
<!-- content table -->
$_phpinclude_output
Gophers
11-07-2014, 12:19 AM
Nope didn't work either.
HM666
11-07-2014, 12:23 AM
ok which image is the gray image you want it placed over? Knowing the image name may help me figure out where to stick it. Also if I remember correctly the login & register boxes & links would also have to move as well its how the code is written.
Gophers
11-07-2014, 12:25 AM
The gray image is part of the full image.
HM666
11-07-2014, 12:28 AM
So header_bb_l.jpg is your image file then and that is what you want this to go over?
Gophers
11-07-2014, 12:28 AM
No i want it to go over header.png that is my header.
Here the url of my header logo.
http://vikes247.com/images/twinsfever/misc/header.png
HM666
11-07-2014, 12:32 AM
No i want it to go over header.png that is my header.
Here the url of my header logo.
http://vikes247.com/images/twinsfever/misc/header.png
ok but the code does not call header.png anywhere in it. Do you have the header divided up into parts or you just have kept it as one file?
Gophers
11-07-2014, 12:33 AM
I just kept it as one file. the header.png is call from Stylevars section under Title Image. would that be causing it.
HM666
11-07-2014, 12:35 AM
It might be you may want to try just coding it into the template instead and see if that clears it up. Then you can position it with either padding-right or margin-right which ever one works.
The code that is responsible for the login & after login info is this code:
<if condition="$show['member']">
<div align="center" class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
<else />
<div align="left">
<!-- login form -->
<form action="login.php?do=login" 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?v=$vboptions[simpleversion]"></script>
<table align="center" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" align="right" style="white-space: nowrap;"><label for="navbar_username">Username</label></td>
<td align="right"><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="8" accesskey="u" tabindex="101" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" nowrap="nowrap" align="left"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember</label></td>
</tr>
<tr>
<td class="smallfont" align="right"><label for="navbar_password">$vbphrase[password]</label></td>
<td align="right"><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="8" tabindex="102" /></td>
<td align="left"><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="securitytoken" value="$bbuserinfo[securitytoken]" />
<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 -->
</div>
</if>
If you put a div around that code and add some css after you code the image in that spot it should work.
Gophers
11-07-2014, 12:46 AM
I almost got it working.
HM666
11-07-2014, 12:48 AM
At least you are closer lol.
--------------- Added 1415328830 at 1415328830 ---------------
You want the logo to be the same height as the login box/info area? I don't think that area is all that tall though it might squeeze it down quite a bit. But there is a way to center and position the box via css. Can you take a screen shot and I can see what it looks like?
Gophers
11-07-2014, 12:56 AM
Yes sir. I got it working now. you a life saver.
HM666
11-07-2014, 01:00 AM
Yes sir. I got it working now. you a life saver.
Glad you got it working :)
Gophers
11-07-2014, 01:02 AM
I just need to now get my image to be clickable and i be happy.
HM666
11-07-2014, 01:09 AM
I just need to now get my image to be clickable and i be happy.
As in going to the home page of the forum? What is the code where your image is?
Gophers
11-07-2014, 01:12 AM
Yep. the code where my image is at is here.
<td style="background: url($stylevar[imgdir_misc]/header_bb_r.jpg) no-repeat bottom right;"><img src="$stylevar[imgdir_misc]/spacer.gif" width="20" height="1" border="0" alt="" /></td>
</tr>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<td width="213" id="header_right_cell" " align="right" style="background: url($stylevar[imgdir_misc]/header.png" height="170") no-repeat top right; >
<table border="0" width="25%;" cellpadding="0" cellspacing="0">
<tr>
<br />
<br />
HM666
11-07-2014, 01:20 AM
Unfortunately there really is no way that I know of to make it a link when its used in the css like that. That is why its sometimes a good idea to split the header banner into at least two parts so you have the option of the logo leading you back to the front of the forum if you want. :(
Simon Lloyd
11-10-2014, 03:41 PM
Take a look here http://ran.ge/2009/11/11/css-trick-turning-a-background-image-into-a-clickable-link/
HM666
11-10-2014, 05:24 PM
Take a look here http://ran.ge/2009/11/11/css-trick-turning-a-background-image-into-a-clickable-link/
Hey that is an awesome idea! I did not even think of that. That should work as long as he gives the id tag a name. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.