vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   Remove "zero notifications" (https://vborg.vbsupport.ru/showthread.php?t=195244)

EWGF 11-01-2008 10:00 PM

Remove "zero notifications"
 
1 Attachment(s)
This tutorial reduces the number of notifications in your navbar. When your only notification is one unread personal message, you will also see that you have zero friend requests, zero visitor messages, etcetera. With this particular situation, you will only see one unread personal message after this tutorial.

Go to Style - Navigation/Breadcrumb templates - navbar_notifications_menubit

Add at the beginning:
Code:

<if condition="$notification['total'] > 0">
Add at the end:
Code:

</if>
Although not necessary, you could remove the other if's in this template as they aren't needed. Please click "install" if you have find this tutorial usefull.

Princeton 11-02-2008 07:12 PM

moved to articles

gutelaune 06-09-2009 04:49 PM

thanks :)

AMcKay 06-13-2010 10:12 PM

This is brilliant. Should be a standard feature. And to think that it actually requires LESS conditionals to be evaluated than the default.


All times are GMT. The time now is 12:20 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.00928 seconds
  • Memory Usage 1,709KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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