Forums / Developer / Need help with personalized messages

Need help with personalized messages

Author Message

Lukasz Piech

Tuesday 05 June 2007 6:45:30 am

Hi

i am trying to figure out how to implement such fuctionality:
1. A logged in user is redirected to a page with personalized messages directed to him (easy)
2. A user must confirm that he/she read the message (easy when i.e modifying the poll class)
3. A report must be possible to trace who replied yes and who replied no (also easy as poll is collected info so you can export it to csv)
4. NOW THE TRICKY PART - the messages (polls in this example) must either be moved to a different folder (say, archive) of THIS PERSON (belonging to this person) or be moved down the page for this person

Do you have any hints on how to do point 4?
thanks

Eric Bourgain

Wednesday 06 June 2007 9:49:32 am

It's hard to move anything but content. I would use a specific content class, with an after publish workflow, and let a specific eventtype do the job

Lukasz Piech

Thursday 14 June 2007 12:05:19 pm

Can you please expand how a workflow should look like?

Bartek Modzelewski

Friday 15 June 2007 3:41:36 am

Hi Lukasz

I don't know what exactly you need, but maybe you should consider creating dedicated extension with module and views for writting/reading messages. Messages wouldn't be as content objects, but just objects created with ezpersitanceobject class and stored with separate db table. Then you will be able to control message flow (reading, responding) by yourself in php code.
If you need it to integrate it with some templates you can write custom fetch functions.

Bartek

Baobaz
http://www.baobaz.com

eZ debug

Timing: Jan 18 2025 15:14:35
Script start
Timing: Jan 18 2025 15:14:35
Module start 'content'
Timing: Jan 18 2025 15:14:36
Module end 'content'
Timing: Jan 18 2025 15:14:36
Script end

Main resources:

Total runtime0.9016 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.7422180.8281
Module start 'content' 0.00740.7833 768.5703545.5156
Module end 'content' 0.79060.1109 1,314.0859334.0938
Script end 0.9015  1,648.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4690210.0002
Check MTime0.00150.1686210.0001
Mysql Total
Database connection0.00100.106410.0010
Mysqli_queries0.834092.50611990.0042
Looping result0.00170.18601970.0000
Template Total0.870696.620.4353
Template load0.00250.278620.0013
Template processing0.868196.281620.4340
Template load and register function0.00020.019710.0002
states
state_id_array0.00080.092810.0008
state_identifier_array0.00130.141120.0006
Override
Cache load0.00200.2209200.0001
Sytem overhead
Fetch class attribute can translate value0.00170.188240.0004
Fetch class attribute name0.00130.147540.0003
XML
Image XML parsing0.00070.079640.0002
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00190.2086210.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs