vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Your Notificaions Question (https://vborg.vbsupport.ru/showthread.php?t=193878)

Mr Chris 10-17-2008 06:45 PM

Your Notificaions Question
 
1 Attachment(s)
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:-

HTML Code:

<if condition="$show['pmwarning']">
Add ABOVE:-

HTML Code:

<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:-

HTML Code:

<!-- / user cp tools menu -->
Add BELOW:-

HTML Code:

<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

1 Attachment(s)
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:-

HTML Code:

<if condition="$show['pmwarning']">
and remove one instance of this code (you should have it twice there):-

HTML Code:

<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

1 Attachment(s)
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.


All times are GMT. The time now is 05:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01042 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete