Post: Need Help With Vbulletin
05-09-2011, 11:21 PM #1
Night Wolf
Rescue Me
(adsbygoogle = window.adsbygoogle || []).push({}); So I'm trying to add 2 things into my navbar on a customized theme. They are suppose to automatically get added but for some reason they wont. They did before and now they wont. I need these to be added under the community link menu. If you can figure it out you can get a +86 rep from me.

Here is header template where they need to go
    <a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<center><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></center>
<tr>
<td height="34" colspan="2" class="vb_navigation">
<!-- nav buttons bar -->
<table cellpadding="0" cellspacing="0" border="0" align="center" class="vb_navigation">
<tr class="fapew" align="center">
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
$cyb_paypal_donate_link
<if condition="$show['registerbutton']">
<td width="78" height="34" class="css_nav"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]

<if condition="$show['communitylink'] AND $show['popups']">
<td width="78" height="34" class="css_nav"><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['staff']">
<td width="78" height="34" class="css_nav"><a href="staff.php$session[sessionurl_q]">$vbphrase[meet_our_staff]</a></td>
</if>


<if condition="$show['memberslist']">
<td width="78" height="34" class="css_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>

</if>



<if condition="$show['popups']">
<td width="78" height="34" class="css_nav"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
</if>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td width="78" height="34" class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td width="78" height="34" class="css_nav"><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 width="78" height="34" class="css_nav"><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 width="78" height="34" class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td width="78" height="34" class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td width="78" height="34" class="css_nav"><a href="forumdisplay.php?$session[sessionurl]do=markread&markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><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'Winky Winky; return false;">$vbphrase[open_contacts]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]'Winky Winky">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
<!-- / nav buttons bar -->
</td>
</tr>
</table>

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]



1st thing that needs to be added
    
This is the hook from the plugin that is suppose to add it to the community links
$template_hook['navbar_community_menu_end'] .= '<tr><td class="vbmenu_option"><a href="staff.php'.$session['sessionurl'].'">'.$vbphrase['meet_our_staff'].'</a></td></tr>';
}


2nd thing that needs to be added
    $template_hook['navbar_community_menu_end'] .= '<tr><td class="vbmenu_option"><a href="'.$vbulletin->options['reppath'].'misc.php?'.$session['sessionurl'].'do=reported">'.$vbphrase['reported_posts'].'</a></td></tr>';
}
(adsbygoogle = window.adsbygoogle || []).push({});
05-10-2011, 05:19 AM #2
w84it
Banned
you sure you got the right version because most of the time that is the reason you might need to find a newer version
05-10-2011, 01:38 PM #3
Night Wolf
Rescue Me
Originally posted by w84it View Post
you sure you got the right version because most of the time that is the reason you might need to find a newer version


Its the right version. I was on another webhost and had the same theme and the same 2 plugins and they automatically got added to the community menu. Now I went to a newww host and made the site exactly the same.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo