vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=228247

Cel Social Groups Notifications
by cellarius
17 Nov 2009 23:40

2 Attachment(s)
What does this mod do?

This mod adds social groups to the notifications dropdown. Your members will get notified if there are groups containing unread messages; they need to be members of that group or have to be subscribed to that group. The counter will show how many groups with unread messages there are.


Installation:

Just import the product file in AdminCP->Product Manager. Done.
Make sure you understand and comply with the read marking requirements (see note down this post).


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
  • Make sure you understand and comply with the read marking requirements (see note down this post).
Note: This mod will only work with database and automatic forum read marking!
  • This mod will not work with cookies or simple database read marking. This will not be changed and is due to the limitations of the read marking system.
  • If the ressources for this trouble you, you don't want to run this modification anyway. Any workarounds would be more ressource intensive than using this option in the first place.
  • To set this, go to AdminCP->Settings->Options->General Settings->Thread/Forum Read Marking Type and set this to the third option: Database (automatic forum marking)

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 several mechanisms in place to prevent unnecessary querying.


Version history
  • 3.8.006: added option to link notification to custom URL
  • 3.8.005: queries completely reworked, should be more stable now and fixes some read marking issues
  • 3.8.002: bugfix, use slave servers
  • 3.8.001: initial release

#### Don't forget to click install! ####
No support if you don't!

This mod is also available for vB4:
http://www.vbulletin.org/forum/showthread.php?t=228280

Wow....
by smnet
18 Nov 2009 00:21

Wow.... people have been wanting this forever...

I will watch and wait to see if any bugs crop up before using this...

Thanks,

Rob

cellarius 18 Nov 2009 00:27

Well, I tested before release, of course - and if everybody did like you, bugs would never be found :)

ShawneyJ 18 Nov 2009 03:44

nope, just will not work at all. 3.8.4 - added the usergroups, tried other templates. tried everything and no go. will tag this mod. thx

cellarius 18 Nov 2009 06:33

Quote:

Originally Posted by jaycob (Post 1916395)
nope, just will not work at all. 3.8.4 - added the usergroups, tried other templates. tried everything and no go. will tag this mod. thx

Works for me on my live site and two test-installations. :erm:

smnet 18 Nov 2009 07:01

Quote:

Originally Posted by cellarius (Post 1916291)
Well, I tested before release, of course - and if everybody did like you, bugs would never be found :)

Yes, well I'm sorry but our development version is 4.0, and i aint putting it on the live 3.8 until it's gone through it's paces.

I'm not being ungrateful..... just careful

cellarius 18 Nov 2009 08:44

Quote:

Originally Posted by smnet (Post 1916451)
Yes, well I'm sorry but our development version is 4.0, and i aint putting it on the live 3.8 until it's gone through it's paces.

I'm not being ungrateful..... just careful

Hey, that's perfectly ok ;)

BTW: Updated to 3.8.002, minor bugfix :)

Taragon 18 Nov 2009 11:25

thanks!, however, it isn't working for me aswell.

cellarius 18 Nov 2009 12:05

I wonder why that is - it works fine for me on not only one installation, plus my vB4 testbeds (it's the same code).

If you're interested I'll look if I can add debugging functionality. Nonetheless I have to ask the obvious: There were new messages in social groups you were subscribed to or members of? If set to subscribed, it's not enough to be subscribed to single discussions. This mod works on group level, not discussion level (the latter would be a killer query). And you noticed the Limitations? DB read marking only?

Taragon 18 Nov 2009 20:29

I have to admit I'm not exactly sure how to handle group subscriptions. Actually, I didn't even know there where any.
My db read marking was already set due to another product.

It's working like a charm right now, but only when having “groups the user is a member of” selected. Not when having “both” selected.

Thanks a lot, and much appreciated!

Taragon 18 Nov 2009 20:49

Would it be possible to hook this product to a certain phrase the way ie. this product does? http://www.vbulletin.org/forum/showthread.php?t=185636

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

preferably at both FORUMHOME and group.php

cellarius 18 Nov 2009 20:55

You want to show the latest groups discussions or messages on forumhome? There are other mods for this, IIRC, and no, this is not possible with this mod. It only delivers a single number (the number of unread groups).

Taragon 18 Nov 2009 21:06

Not exactly. I only want the number of unread groups (like your mod does), but not placed at the notifications menu, but at forumhome (and preferably at group.php)

cellarius 18 Nov 2009 21:30

Ah, ok. This is easy: The code in the main plugin (should then be changed to a hook so it is only executed on a page were you want to show the number) saves the result in a variable: $vbulletin->userinfo['cel_groupnotification']. This should be available in templates as $bbuserinfo[cel_groupnotification].

Taragon 18 Nov 2009 21:50

thanks! :)


All times are GMT. The time now is 14:36.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.