View Full Version : Your Notificaions Question
Mr Chris
10-17-2008, 06:45 PM
My forum is image 2. I want mine to look like image 1 with that pop out box for alerts. Currently mine only alerts for private messages there.
I run 3.7 with a custom skin, I tried reverting the navbar template and it screwed things up a bit. I just Un reverted it.
Is there anyother way to get those features?
Thanks!
veenuisthebest
10-17-2008, 07:07 PM
so you want to manually add those edits..
Find this in navbar:-
<if condition="$show['pmwarning']">
Add ABOVE:-
<if condition="$show['notifications'] AND $show['popups']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<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>
Then find this:-
<!-- / user cp tools menu -->
Add BELOW:-
<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>
Hope it helps
Mr Chris
10-17-2008, 07:22 PM
Thank you for your reply
check out the attached image..
it doubled up the private messages button
any other ideas?
veenuisthebest
10-17-2008, 08:08 PM
Yes, I knew that would happen. It just means that you have double instances of that code:-
Find this:-
<if condition="$show['pmwarning']">
and remove one instance of this code (you should have it twice there):-
<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>
Now.. i think you aren't aware but you'll get notification menu ONLY when you actually get notifications. So, test it by sending yourself a PM.
Mr Chris
10-18-2008, 11:57 AM
Thank you so much for your help.
If I could ask you one last question.. See the attached image.. By removing that set of code you suggested it changed it from 2 private mesages to 1 and 1 notification..
How do I lose the private message all together and just keep the notifications?
thanks!
veenuisthebest
10-18-2008, 01:27 PM
It should not happen. Check if you have followed the instructions above. You must be having an extra Private message phrase still there.
And what happens when you do not have any notifications ?
Mr Chris
10-18-2008, 03:18 PM
I have followed the instructions as specified I believe.
When all notifications have been checked the notification text disappears and just the private messages text remains.
Videx
10-19-2008, 02:11 AM
For gods sake stop editing code like that. It's normal behavior for vb 3.7 to display "Your Notifications" if you actually have one. otherwise, it looks like your right image.
Mr Chris
10-19-2008, 10:34 AM
what do you mean by right image?
Videx
10-19-2008, 02:14 PM
Your second attachment - Picture 2.png. When you have no notifications, that's what you're supposed to see. Picture 1.png is what appears only if you actually have a notification.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.