Forums / Setup & design / Force digest notifications for users

Force digest notifications for users

Author Message

Nathan Kelly

Thursday 24 November 2005 5:37:05 pm

Hi all, I have set up notifications for my registered users and I've found that every time I make a change or add multiple files to a node that the user wants notification for he/she will receive an email for every change/addition made.

This is great, it works, but if I was to add 30 files my user would start to get a little cranky with all of the emails he/she was receiving.

This means the user should set his/her notification settings up for digest mode, the problem is I'm expecting that a lot of the users for this particular site may not realise they can set this preference or may be too lazy to do so.

So the question is, is there any way to force digest mode for notifications, with a preset time and consistency so that the lazy users don't have to set it them selves?

Keeping in mind I would still like users to be able to change their preferences.

Any suggestions welcome.

Cheers!

Pardon me while I burst into flames...

Nathan Kelly

Thursday 01 December 2005 3:10:13 pm

Has anyone got any ideas on this; I just uploaded approx 60 files to a node for which I have set a test notification.

As I expected my inbox was flooded with about 40 notifications, what happened to the other 20 odd messages? Well I had to call my ISP to ask them to unblock the spam filter as the flood caused the filter to treat these messages as spam...

I really need a solution to this, is there any way to put all of these notifications into one message by default?

Please, any help is very appreciated.

Cheers!

Pardon me while I burst into flames...

Nathan Kelly

Monday 19 December 2005 3:39:04 pm

Sorry to bump this but this is still an issue I haven't managed to resolve, surely someone knows how this can be done?

Cheers!

Pardon me while I burst into flames...

Bruce Morrison

Monday 19 December 2005 7:49:42 pm

Hi Nathan

I've had a real quick look at this and am not able to give you an answer. I can tell you where to look....and hopfully give you some pointers as how to work these things out.

The digest setting is set in the admin section at (My Account -> My Notification Settings) notification/settings. This form is processed by kernel/notification/settings.php which seems to cycle through all the notification handlers making changes by calling $handler->storeSettings( $http, $Module );

Notification handlers are in kernel/classes/notification/handler , the digest one in kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigesthandler.php

So if you look into the storeSettings method you should be able to work out what you need to do to set digest notifications for users.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nathan Kelly

Monday 19 December 2005 9:22:48 pm

Hi Bruce thanks for the ideas, I'll look into it and see what I can come up with.

[update]
Ok I looked... wow there's some PHP in there... Unfortunately I'm not to good with that stuff. I noticed the kernel/notification/settings looks for $availableHandlers, I assume it gets these from notification.ini. If i was to override notification.ini with notification.ini.append.php would it be wise to set it so that only ezgeneraldigest is available? Or would this cause other headaches within the system?

For the traffic this site will attract I don't think anyone will need the standard notification (the one that sends emails for every change), but would removing it from available notification types disable it?
[update]

Cheers!

Pardon me while I burst into flames...

eZ debug

Timing: Jan 19 2025 03:39:58
Script start
Timing: Jan 19 2025 03:39:58
Module start 'content'
Timing: Jan 19 2025 03:39:58
Module end 'content'
Timing: Jan 19 2025 03:39:58
Script end

Main resources:

Total runtime0.2532 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 589.0703180.8281
Module start 'content' 0.00760.0077 769.8984101.8984
Module end 'content' 0.01530.2379 871.7969530.8281
Script end 0.2532  1,402.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00411.6317200.0002
Check MTime0.00170.6882200.0001
Mysql Total
Database connection0.00100.388910.0010
Mysqli_queries0.192475.98381410.0014
Looping result0.00180.71931390.0000
Template Total0.237493.710.2374
Template load0.00110.439510.0011
Template processing0.236393.302310.2363
Override
Cache load0.00080.311210.0008
Sytem overhead
Fetch class attribute can translate value0.00120.471110.0012
XML
Image XML parsing0.00020.088110.0002
General
dbfile0.01104.3454200.0006
String conversion0.00000.002830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs