Forum notifications

Author Message

Pasha Iakhontov

Thursday 13 August 2009 6:42:43 pm

Hi,

I have created a forum on my site but notification system doesn't seem to work.

There are two parts to my issue:

1. the user is able to click the 'keep me updated' button which adds the node to user's notifications (I can see it in the admin) but the email is not getting sent. Do I need to enable some cron job?

2. I have added a checkbox to 'topic' content type so the creator can be notified when a reply is received. How can I connect this checkbox to the notification system?

Thanks in advance

Heath

Thursday 13 August 2009 11:31:19 pm

Hello Pasha,

Most people forget that notification are not sent real time.

Instead by default they are stored within the database and
sent when the 'notification' cronjob is executed.

php runcronjobs.php frequent

I hope this example and related subject links helps you.

[0] <i>http://ez.no/doc/ez_publish/technical_manual/4_0/features/notifications</i>
[1] <i>http://ez.no/doc/ez_publish/technical_manual/4_0/features/notifications/frequently_asked_questions</i>
[2] <i>http://pubsvn.ez.no/nextgen/trunk/settings/cronjob.ini</i>
[3] <i>http://ez.no/doc/ez_publish/technical_manual/4_0/features/cronjobs/running_cronjobs
</i>
[4] <i>http://ez.no/doc/ez_publish/technical_manual/4_0/features/cronjobs/the_cronjob_scripts</i>
[5] <i>http://ez.no/doc/ez_publish/technical_manual/4_0/features/notifications/notification_events</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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 07:23:29
Script start
Timing: Jan 31 2025 07:23:29
Module start 'layout'
Timing: Jan 31 2025 07:23:29
Module start 'content'
Timing: Jan 31 2025 07:23:30
Module end 'content'
Timing: Jan 31 2025 07:23:30
Script end

Main resources:

Total runtime1.4725 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.0313151.1953
Module start 'layout' 0.00660.0028 739.226636.6172
Module start 'content' 0.00951.4621 775.8438923.2109
Module end 'content' 1.47160.0008 1,699.05477.8750
Script end 1.4724  1,706.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2278160.0002
Check MTime0.00160.1059160.0001
Mysql Total
Database connection0.00080.054610.0008
Mysqli_queries1.420496.4649540.0263
Looping result0.00050.0330520.0000
Template Total1.430897.220.7154
Template load0.00200.136120.0010
Template processing1.428797.031820.7144
Template load and register function0.00130.086610.0013
states
state_id_array0.00290.197010.0029
state_identifier_array0.00260.174820.0013
Override
Cache load0.00170.1150260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.055720.0004
Fetch class attribute name0.00190.127030.0006
XML
Image XML parsing0.00420.284720.0021
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00580.3965170.0003
String conversion0.00000.000440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs