The Arcive of vBulletin Modifications Site. |
|
|
Using VBulletin 3.7.x notifications engine
Everyone saw a nice drop-down list with all notifications you have at the top-right corner of every page. Let's look, how to add our own notifications to this list. It is very easy! 1. Create a GLOBAL phrase, that will be displayed as a text for your notification. Let's consider it's name to be MyNotificationName. 2. Create plugin for hook notifications_list with the following code: PHP Code:
Really simple, eh?
|
|
#2
|
|||
|
|||
|
There was an error in your PHP Code (2nd from last line of array):
PHP Code:
|
|
#3
|
||||
|
||||
|
thank you!
you should have released this 2 weeks ago - would have come in handy
|
|
#4
|
||||
|
||||
|
Thanks for fixing my error.
Quote:
Just started coded some things for myself and found this nice feature.
|
|
#5
|
|||
|
|||
|
Thanks Fract, I guessed right (see here). Want to change the way vbms email notifies me but still haven't decided what to do for a access menu.
EDIT: It works! Not knowing how to write an xml plugin (yet) [S]I simply edited the "global.php" adding what you see below[/S] . . . wrong, I used the plugin manager and imported exact same code as a product ( hehe first time!)I left the navbar template alone and the very last line "$vbms_newmessages['newcount'] = 0" stops the original "Email" count display. PHP Code:
Will do an xml plugin next, what else can we hide, use this for? Oh, also, the sound notification hack "you got mail" makes me jump, can anybody point me toward a simple ding/dong chime.wav? "Your inbox has VBMS email waiting. 1" Cheers & thanks again, Rabbit |
|
#6
|
||||
|
||||
|
\WINDOWS\Media\chimes.wav
|
![]() |
|
|