PDA

View Full Version : Custom skin, notifications not working properly


jfreels
04-23-2008, 07:26 PM
Hello all,

I have recently purchased a new skin for my forum because we ended up changing the name. (I want a whole new look)

The template has the old style navbar welcome, not the new "notification" one in vBulletin 3.7.0.

I added the following code to the navbar template, replacing the oldstyle just "pmstats".


<if condition="$show['notifications']">
<span id="notifications">
<a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a>
<strong>$notifications_total</strong>
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<if condition="$show['pmstats']">
<phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]
</phrase>
</if>
</if>


Everything looks great, but the fly-out menu doesn't...um..fly-out. Any help would be greatly appreciated. I have been using vBulletin for many years now and don't usually have troubles making modifications to templates.

PyroNET
04-24-2008, 10:50 AM
Find

<!-- / user cp tools menu -->

in the navbar template, and add below it


<if condition="$notifications_total">
<!-- notifications menu -->
<div class="vbmenu_popup" id="notifications_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
$notifications_menubits
</table>
</div>
<!-- / notifications menu -->
</if>

jfreels
04-24-2008, 05:30 PM
gracias amigo