best solution for custom notification

Author Message

Ivo Lukac

Saturday 19 April 2008 4:43:03 am

Hi!

As the notification system is extendable I am sure that my idea can be implemented, just searching for best solution.

The idea is to use ezsubtree subscribe functionality so users can subscribe to some node. Furthermore users could use ezgeneraldigest settings to specify time when would they prefer to receive notification.

Main idea is to send notification digest with ezcurrenttime event when user had specified for every node subscribed (as if all nodes are published but they in fact are not). The solution could be to generate ezpublish events every day with some custom cronjob script or to make custom ezcurrenttime event which would do the magic.

Has someone a better idea or good advice?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Maxime Thomas

Sunday 20 April 2008 11:31:56 am

I think you may use the original system only by changing the user interface.
Try to :
- create an extension with a design
- make an override for the tempate loaded at the notification/settings url
- change the form to put your own values (for exemple a calendar)
- test it !

If I'm not clear, you can ask me further questions, I'm available. :-D

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Ivo Lukac

Monday 21 April 2008 5:30:17 am

Original system can't do the trick because I need to send notifications every day, not when nodes are published.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:24:53
Script start
Timing: Jan 31 2025 01:24:53
Module start 'layout'
Timing: Jan 31 2025 01:24:53
Module start 'content'
Timing: Jan 31 2025 01:24:54
Module end 'content'
Timing: Jan 31 2025 01:24:54
Script end

Main resources:

Total runtime0.6508 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.2344151.2109
Module start 'layout' 0.00520.0048 739.4453220.6875
Module start 'content' 0.01000.6400 960.13284,460.1328
Module end 'content' 0.64990.0009 5,420.265611.8438
Script end 0.6508  5,432.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5147160.0002
Check MTime0.00120.1809160.0001
Mysql Total
Database connection0.00060.099710.0006
Mysqli_queries0.574488.2564570.0101
Looping result0.00040.0687550.0000
Template Total0.606693.220.3033
Template load0.00170.268120.0009
Template processing0.604892.931020.3024
Template load and register function0.00090.145710.0009
states
state_id_array0.00080.126810.0008
state_identifier_array0.00060.095720.0003
Override
Cache load0.00140.2222210.0001
Sytem overhead
Fetch class attribute can translate value0.00150.234020.0008
Fetch class attribute name0.00170.258050.0003
XML
Image XML parsing0.00190.294420.0010
class_abstraction
Instantiating content class attribute0.00000.003260.0000
General
dbfile0.00300.4533230.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs