The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
go to navbar template
find this:- Code:
<!-- 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&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="vbmenu_control"><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 -->
<br />
move this code in the header template and adjust the position accordingly !! hope this helps.. |
|
#3
|
||||
|
||||
|
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
|
|
#4
|
||||
|
||||
|
Quote:
that would probably be a blinking.gif image just like vB.org has (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:- Code:
<if condition="$bbuserinfo['pmunread']"> <img src="blinking.gif"> </if> the code would be somewhat like this in navbar template !! adjust the positioning as desired .. |
|
#5
|
||||
|
||||
|
That's great!
![]() Thanks very much for your help ![]() --------------- Added [DATE]1210969979[/DATE] at [TIME]1210969979[/TIME] --------------- 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 ![]() 2. How do i place an image in my shoutbox, iv'e tried several times but it doesn't seem to work :P |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|