Shop and Captcha

Author Message

Fabien Mas

Thursday 29 January 2009 7:48:18 am

I would like to put a captcha on my shop - userregister page

No problem with the template, I override it and I put my captcha field in my new template

But How can I check the value filled without hacking the userregister.php file ?
Is there a way to catch the "event" : $module->isCurrentAction( 'Store' )

Thx,
Fabien

Mark Simon

Thursday 29 January 2009 8:03:56 am

Hi Fabien Mas,

did you use the recaptcha contribution?
http://ez.no/developer/contribs/applications/recaptcha_ez4

That contribution comes with a new datatype.
You just have to add this datatype to the userclass, that can register on your server.
Make that Attribute required. That should do.

Mark

www.all2e.com

Fabien Mas

Friday 30 January 2009 12:52:07 am

Hi Mark,

It's unfortunately impossible to use a datatype.
If you look at the code in shop/userregister.php, you will see that the xml is generated here.
No user class is used

Another idea to catch my event ?

Thx for your help
Fabien

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 18 2025 11:22:08
Script start
Timing: Jan 18 2025 11:22:08
Module start 'layout'
Timing: Jan 18 2025 11:22:08
Module start 'content'
Timing: Jan 18 2025 11:22:08
Module end 'content'
Timing: Jan 18 2025 11:22:08
Script end

Main resources:

Total runtime0.0169 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.0059 587.7969152.6094
Module start 'layout' 0.00590.0031 740.406339.4141
Module start 'content' 0.00900.0051 779.820389.3047
Module end 'content' 0.01410.0029 869.125030.3047
Script end 0.0169  899.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.6133140.0002
Check MTime0.00126.9712140.0001
Mysql Total
Database connection0.00084.425210.0008
Mysqli_queries0.003520.615330.0012
Looping result0.00000.070310.0000
Template Total0.002514.810.0025
Template load0.001810.424410.0018
Template processing0.00074.288710.0007
Override
Cache load0.00105.882410.0010
General
dbfile0.00031.914480.0000
String conversion0.00000.052040.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