![]() |
Adding a notification.
Just wondering how you would go about adding a notification.
PHP Code:
|
There's no hook you can use to simply increase notifications_total or add to the menu, and it doesn't look like notifications_menubit is a template hook. But you can create a plugin using hook notifications_list and add to the $notifications[] array, like:
Code:
$notifications['test_count'] = array( Also, for this to work you need a corresponding field in $vbulletin->userinfo, as shown in the last line. The count can be anything > 0. You can look in function build_notifications() in includes/class_bootstrap.php around line 1067 if you want to see what's going on. |
Thanks
|
All times are GMT. The time now is 10:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|