Subscription of registered users

Author Message

Nicolas Lescure

Monday 29 October 2007 3:43:48 am

Hi,

I created a subscription list with "auto confirm registered users" and "auto approve registered users" off.

But it seems this behaviour is not supported.

In the file register_subscription.php, when the user is not anonymous, the function called for subscription is "$subscriptionList->registerUser()". This function automatically confirm the user.

Is it normal ?

So, to do what I expected, I add in register_subscription.php at line 80 :

if ( $user && $subscriptionList->attribute( 'auto_confirm_registered' ) )

instead of

if ( $user )

It seems to work fine. <b>BUT</b> you need to override "register_subscription.tpl" and change all the <i>disabled="disabled"</i> in <i>readonly="readonly"</i>.

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 30 2025 21:39:37
Script start
Timing: Jan 30 2025 21:39:37
Module start 'layout'
Timing: Jan 30 2025 21:39:37
Module start 'content'
Timing: Jan 30 2025 21:39:37
Module end 'content'
Timing: Jan 30 2025 21:39:37
Script end

Main resources:

Total runtime0.0263 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.2891151.2266
Module start 'layout' 0.00660.0068 739.5156220.7188
Module start 'content' 0.01330.0113 960.2344998.9297
Module end 'content' 0.02470.0016 1,959.164129.9922
Script end 0.0263  1,989.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.5209140.0002
Check MTime0.00114.1576140.0001
Mysql Total
Database connection0.00103.895710.0010
Mysqli_queries0.004918.790830.0016
Looping result0.00000.057110.0000
Template Total0.00114.210.0011
Template load0.00083.177110.0008
Template processing0.00031.000410.0003
Override
Cache load0.00062.295410.0006
General
dbfile0.00031.127380.0000
String conversion0.00000.029940.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