Forums / General / Notification list - report of user's subscriptions?

Notification list - report of user's subscriptions?

Author Message

Mark Marsiglio

Friday 25 August 2006 11:26:27 pm

We have a few thousand users signed up for notifications of various pags/sections of the site. As part of our analytics, we would like to see what areas are the most popular. Also useful would be a count of how many subtree subscriptions each user had.

At the most basic, we would need to see which users have a subtree notification on a particular node.

The docs on the notification module only deal with the fetching the subscriptions of the current logged in user. Is there a way to extract this information based on a fetch of the node id, or to modify a template like the line.tpl to show a subscription count in it?

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Kristof Coomans

Sunday 27 August 2006 2:20:51 am

Hello Mark

I think there are no such template fetch functions at the moment, but it would be a nice enhancement. Can you post an enhancement request in the bug tracker?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Marco Zinn

Sunday 27 August 2006 6:11:29 am

Hi Folks,
as i had to answer the same question before and solved it with some SQL query, i posted this suggestion http://ez.no/bugs/view/8906 in order to adress the common "reporting" tasks.

So, Mark, i guess, your question can be answered with SQL queries. If you have access to your DB with some GUI (phpMyAdmin, sqlPlus), i can look up the query i had.
Please note, that your question "which users have a subtree notification on a particular node" aint that easy, because the notifications are stored for the top node of that tree.
Do you want to see the users that have notifications for EXACTLY this node or notifications on any subtree, that includes the particular node?

Marco
http://www.hyperroad-design.com

Norman Leutner

Sunday 27 August 2006 11:10:14 pm

If you want to the query within ez, just take a look at this extension,
it show how to execute a sql query into ez and return the result.

http://ez.no/community/contribs/template_plugins/topauthors

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

eZ debug

Timing: Jan 18 2025 18:38:21
Script start
Timing: Jan 18 2025 18:38:21
Module start 'content'
Timing: Jan 18 2025 18:38:22
Module end 'content'
Timing: Jan 18 2025 18:38:22
Script end

Main resources:

Total runtime0.7086 sec
Peak memory usage4,096.0000 KB
Database Queries201

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.8359180.8203
Module start 'content' 0.00780.5813 768.6563646.9922
Module end 'content' 0.58910.1194 1,415.6484337.3750
Script end 0.7085  1,753.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.6171210.0002
Check MTime0.00150.2154210.0001
Mysql Total
Database connection0.00090.130710.0009
Mysqli_queries0.632489.24592010.0031
Looping result0.00210.29931990.0000
Template Total0.677895.720.3389
Template load0.00220.316420.0011
Template processing0.675695.345020.3378
Template load and register function0.00010.013010.0001
states
state_id_array0.00090.127610.0009
state_identifier_array0.00110.155920.0006
Override
Cache load0.00190.2695230.0001
Sytem overhead
Fetch class attribute can translate value0.00200.282150.0004
Fetch class attribute name0.00080.118880.0001
XML
Image XML parsing0.00300.416950.0006
class_abstraction
Instantiating content class attribute0.00000.003480.0000
General
dbfile0.00240.3427450.0001
String conversion0.00000.001030.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs