PHP 5.3.7 or later.
This is a simple notification mod that overrides XenForo's default 'stackAlert()' function to show the actual alerts as notifications.
When you get new alerts via ajax, the function 'stackAlert()' is called to show a message like "You have 2 new alerts" at the bottom left corner of the window.
And my thought was: why not change it entirely to show the actual notifications just like Facebook? Well, I didn't go with FB's look instead used the template from this tut: http://tympanus.net/codrops/2014/07/23/notification-styles-inspiration/ (this article actually inspired me to create this add-on )
This add-on shows notification when there any unread conversation and any unread alert created by the system.
Here's a demo video of what this add-on does. Here, the page is refreshed two times, first half is to show that the notification auto closes after 10 seconds and the last half is to show that the notification can be closed by clicking the close button.
There are no options or tweaks. Just install it and have fun!
To change the look and interface (how long the notification will be shown and stuff) go to: AdminCP -> Appearance -> Style Properties -> GoodForNothing Notification (at the very bottom)
- Download & extract archive.
- Upload everything from the 'upload' directory.
- Import the add-on XML file from admin control panel.