vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Social Group and Album Enhancements - Cel Social Groups Notifications (https://vborg.vbsupport.ru/showthread.php?t=228247)

cellarius 11-17-2009 10:00 PM

Cel Social Groups Notifications
 
1 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:
https://vborg.vbsupport.ru/showthread.php?t=228280

smnet 11-17-2009 11:21 PM

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 11-17-2009 11:27 PM

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

ShawneyJ 11-18-2009 02:44 AM

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 11-18-2009 05:33 AM

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 11-18-2009 06:01 AM

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 11-18-2009 07:44 AM

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 11-18-2009 10:25 AM

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

cellarius 11-18-2009 11:05 AM

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 11-18-2009 07:29 PM

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 11-18-2009 07:49 PM

Would it be possible to hook this product to a certain phrase the way ie. this product does? https://vborg.vbsupport.ru/showthread.php?t=185636
PHP Code:

    if ($vbulletin->options['latest_auto'])
    {
        
// adds location to forumhome template
        
$vbulletin->templatecache['FORUMHOME'] = str_replace(
            
$latest_location,
            
$latest_location.'$platest',
            
$vbulletin->templatecache['FORUMHOME']
        );
    } 

preferably at both FORUMHOME and group.php

cellarius 11-18-2009 07:55 PM

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 11-18-2009 08:06 PM

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 11-18-2009 08:30 PM

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 11-18-2009 08:50 PM

thanks! :)

AzzidReign 11-19-2009 03:14 AM

Ahh, I posted in the 4.0 thread. I still have 3.8 so I guess I'll be installing this one lol Thanks again!

cellarius 11-20-2009 08:05 AM

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

I had this mod tested by other coders on their sites, and the modification does work. I also do not understand what you mean by "tried other templates". This mod has no templates, and no template changes have to be done.

mbc100 11-20-2009 12:44 PM

i will installed later

AcidX 11-22-2009 08:36 AM

Didn't work for me either. Uninstalled :(

Rasher54 11-25-2009 07:20 PM

Not working for me either :/

cellarius 11-26-2009 04:45 AM

Quote:

Originally Posted by Rasher54 (Post 1920850)
Not working for me either :/

What are your settings for read marking? How exactly did you go about testing it?

goshalim 12-02-2009 01:09 PM

Not working for me eigher

I did downloaded with no problem test it but never receievd any message

Iam using 3.7.3 and if i download it it comes database error !!!!!

Any help please

kmohamed 12-02-2009 01:59 PM

it looks great maybe i will give it a try

Taragon 12-02-2009 02:07 PM

1 Attachment(s)
like said earlier I've got it working at our board.

fyi I'm using these settings:

cellarius 12-02-2009 02:17 PM

Quote:

Originally Posted by goshalim (Post 1924013)
Not working for me eigher

I did downloaded with no problem test it but never receievd any message

Iam using 3.7.3 and if i download it it comes database error !!!!!

Any help please

This mod can't be used with 3.7 series (and there's no plan to change that, since the groups structure has changed in between 3.7 and 3.8 a lot).

goshalim 12-03-2009 01:57 AM

Ok thank you for you reply .

Is there is something similar for our version please ?

cellarius 12-03-2009 05:18 AM

Not that I know of, but feel free to use the site search ;)

MrRem 12-14-2009 09:01 AM

Lovely Mod. Installed :)
Demo Site for you here:
http://www.swedishseat.com/index.php

yahooooh 12-14-2009 10:08 AM

is not shown in the list when there are no new entries
it should work as other notice ,
social group 0 when there are no new entries in groups

yahooooh 12-14-2009 10:17 AM

unstall
it does not work also !
v 3.8.4 pl1

Naan-Kadavul 12-14-2009 11:24 AM

thankssss

MrRem 12-14-2009 03:19 PM

Does this need any template edits to appear in a custom theme?
I have changed my database read settings but still this isn't working :S

EDIT: Works fine :)

Mark.B 12-15-2009 01:43 PM

I have this installed but turned off as I can't quite get it working correctly.

1) When there are new messages, I can get the notification to show up in the notifications list, but when there are none, the entry should still be there but marked with a "zero" to make it consistent with the other notifications, but this isn't the case.

2) Sometimes when someone posts a new group message, two notifications show up but you cannot get rid of the first one - it still thinks there is a new message when there is not one.

But thank you for developing this, with tweaks it will become a must-have.

cellarius 12-16-2009 07:29 PM

This new build entails:
  • complete rewrite of the database queries. This should some problems some users have been experiencing.
  • the groups line is now always showing in the notices dropdown (i.e. also if it's at 0), as requested.
I hope that in this version, the mod will work for everyone who had issues before. Please remember that you will find subscribed threads marked as new only in UserCP and groups you are a member of on the groups page. This is somewhat disparate, but can't be helped.

Thelonius Beck 12-16-2009 07:50 PM

Thank you. This has been long awaited.

*Edit; Product failing to recognize when messages have been "Read".

Taragon 12-16-2009 09:59 PM

Thanks!
Do you suggest upgrading to the latest version, even if the previous one worked(s) like a charm? (meaning, except for the altered dropdown menue, have any new features been added?)

Again, much appreciated!

cellarius 12-16-2009 11:01 PM

Yes, I do suggest upgrading. The new queries are lighter and more "robust". The news are under the hood :)

Thelonius Beck 12-17-2009 07:30 PM

Quote:

Originally Posted by Thelonius Beck (Post 1931836)
Thank you. This has been long awaited.


*Edit; Product failing to recognize when messages have been "Read".

Quote:

Originally Posted by cellarius (Post 1931951)
Yes, I do suggest upgrading. The new queries are lighter and more "robust". The news are under the hood :)

My comment was in reference to the upgrade. Please advise.

cellarius 12-18-2009 12:14 AM

Do you use this setting (see note in red in mod description):
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)

With any other setting there the mod won't work.

Thelonius Beck 12-18-2009 10:10 PM

Quote:

Originally Posted by cellarius (Post 1932594)
Do you use this setting (see note in red in mod description):
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)

With any other setting there the mod won't work.

Thank you for doing the thinking for me :blush: My bad. Great mod, thank you very much.


All times are GMT. The time now is 01:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01356 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete