vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need help with Navbar (https://vborg.vbsupport.ru/showthread.php?t=315193)

Gophers 11-02-2014 12:32 PM

Need help with Navbar
 
1 Attachment(s)
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

1 Attachment(s)
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

Quote:

Originally Posted by Gophers (Post 2521696)
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.

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&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=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&amp;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:

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&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=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&amp;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.


All times are GMT. The time now is 08:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01139 seconds
  • Memory Usage 1,881KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete