Forums / Extensions / eZ Newsletter / Subscription of registered users

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>.