PDA

View Full Version : How to add navbar under banner?


Nkay
05-16-2008, 05:12 PM
Hi guys,

Not sure whether this is in the correct forum or not but i was just wondering if anyone knows how to add the nav bar directly underneath a banner rather than the default position of the navbar?

If anyone knows how to do this then it'll be greatly appreciated.

I've seen it done on lots of forums but i just don't know how to do it on my own forum.

Thanks in advance.

veenuisthebest
05-16-2008, 06:25 PM
go to navbar template

find this:-
<!-- nav buttons bar -->
<div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<if condition="$vboptions['enablememberlist']">
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<td class="vbmenu_control"><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="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a 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 id="usercptools" class="vbmenu_control"><a 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="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><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_contacts]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="vbmenu_control"><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 -->

<br />


move this code in the header template and adjust the position accordingly !!

hope this helps..

Nkay
05-16-2008, 06:37 PM
Thanks alot mate. That's exactly what i wanted :) I don't suppose you know how to make an image appear next to the private messages if a user has a new pm?

For example: If a user has a new PM, a message icon will flash and if they don't have any new PM's, the message icon will not flash.

Thanks alot :)

veenuisthebest
05-16-2008, 06:46 PM
I don't suppose you know

lol

that would probably be a blinking.gif image just like vB.org has

https://vborg.vbsupport.ru/external/2009/01/44.gif (This is just a DEMO, do not copy it.. it belongs to vB.org)


hopefully.. you'll have to wrap this image in the condition below:-

<if condition="$bbuserinfo['pmunread']">
<img src="blinking.gif">
</if>


the code would be somewhat like this in navbar template !! adjust the positioning as desired ..

Nkay
05-16-2008, 07:12 PM
That's great! :D

Thanks very much for your help :)

--------------- Added 1210969979 at 1210969979 ---------------

Sorry for all the questions but you seem to know what your doing and i feel i can learn alot from you so here's a few more questions if you wouldn't mind answering :)

1. How do i actually align the image i want to show a user a pm nexst to the pm bix sorta thing. An example of how i want it is shown below. I just need to know the code to align it properly :P

http://img522.imageshack.us/img522/6782/lolyr9.png

2. How do i place an image in my shoutbox, iv'e tried several times but it doesn't seem to work :P