PDA

View Full Version : Cel Social Groups Notifications



admin
19-11-2009, 03:43 PM
What does this mod do?

This mod adds social groups to the notifications dropdown. Your members will get notified if there are discussions with unread messages, the counter will show how many discussions there are.

Installation:

Just import the product file in AdminCP->Product Manager. Done.


Settings:


Show notification for new messages in groups the user is a member of, subscribed to, or both
Select usergroups who can use the mod (i.e. who will get notificatons)
Select whether to link to usercp.php or group.php


Note on ressources:

Note that this modification adds a maximum of two queries to every pageload. Both are not too heavy, going to slave servers only if existent, and there are mechanisms in place to prevent unnecessary querying:

mod will not be executed if user has no permissions to use social groups
mod will not be executed if user is not a member of the usergroups specified in the settings
only if the first two conditions are met, the first, light query checks whether the user is member of or subscribed to any social groups at all; only if it is set to check for both will the query run on both realated tables (JOIN)
again, the second query is only executed if the first one returns result
furthermore, this mod uses query_read_slave exclusively


Limitation:


This mod will only work with database read marking, not with cookies. There are no plans to change that.


Version history

This modification is also available for vB3.8 (http://www.vbulletin.org/forum/showthread.php?t=228247)
4.0.002: initial release