Create a new Trigger

Author Message

Sandip Sarkar

Friday 12 February 2010 10:44:08 pm

Hello everyone,Can anyone suggest me how to create a new custom trigger where I can fire a trigger when the user registration is to be confirmed?Thanks ..

Bertrand Dunogier

Saturday 13 February 2010 2:03:57 am

You do not need a custom trigger for this.

A user registration is just a content object publishing, so you can use the ezapprove [1] workflow event to have your users validated.

1. http://ez.no/doc/ez_publish/technical_manual/4_x/reference/workflow_events/approve

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Sandip Sarkar

Sunday 14 February 2010 9:58:33 pm

"

You do not need a custom trigger for this.

A user registration is just a content object publishing, so you can use the ezapprove [1] workflow event to have your users validated.

1. http://ez.no/doc/ez_publish/technical_manual/4_x/reference/workflow_events/approve

"

Thanx Bartrand for your suggestion..But I need to verify the registration process through authorize payment gateway.Only those member will enjoy such facility if payment gateway approve this transaction... Any suggestion ?

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 29 2025 14:42:59
Script start
Timing: Jan 29 2025 14:42:59
Module start 'layout'
Timing: Jan 29 2025 14:42:59
Module start 'content'
Timing: Jan 29 2025 14:42:59
Module end 'content'
Timing: Jan 29 2025 14:42:59
Script end

Main resources:

Total runtime0.0170 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0313151.1953
Module start 'layout' 0.00680.0026 739.226636.6172
Module start 'content' 0.00940.0061 775.843890.1406
Module end 'content' 0.01560.0014 865.984433.9922
Script end 0.0170  899.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002112.4225140.0002
Check MTime0.00095.4956140.0001
Mysql Total
Database connection0.00095.422910.0009
Mysqli_queries0.004224.663230.0014
Looping result0.00000.058810.0000
Template Total0.00116.410.0011
Template load0.00084.554010.0008
Template processing0.00031.831410.0003
Override
Cache load0.00052.928310.0005
General
dbfile0.002212.657680.0003
String conversion0.00000.035040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs