q2apro / q2apro-on-site-notifications

Question2Answer Plugin: Facebook-like / Stackoverflow-like notifications that can replace all email-notifications of your forum.
29 stars 22 forks source link

Question2Answer Plugin: On-Site-Notifications


Description

Stackoverflow-like notifications on your Question2Answer forum that can replace all email-notifications.

Features

Installation

Follow these steps:

For developers

It is possible to generate custom notifications from other plugins that will be displayed in the notification list. To do so, an event needs to be fired with the q2apro_osn_plugin event id and with the following parameters:

qa_report_event('q2apro_osn_plugin', qa_get_logged_in_userid(), qa_get_logged_in_handle(), null, array(
    'plugin_id' => 'my_plugin_id',
    'user_id' => $receiverUserId,
    'event_text' => '<a href="http://site.com/user/user1">user1</a> mentioned you in <a href="http://site.com/154">this post</a>',
    'icon_class' => 'my_plugin_id_and_css_class',
));

Disclaimer

The code is probably okay for production environments, but may not work exactly as expected. You bear the risk.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Copyright

All code herein is OpenSource. Feel free to build upon it and share with the world.