Changing new user registration / confirmation

Author Message

Maarten Holland

Tuesday 07 September 2004 1:35:40 am

Hello all,

I've got 2 questions about the confirmation of new users.

First, the e-mail they receive contains a wrong confirmation URL, since index.php is mentioned twice. I use portsetup, so it should be mentioned once.

At the bottom of this message, you find the source of the e-mail. I've removed 'index.php' in 'SiteSettings', 'SiteURL' in my siteaccess site.ini.append.php override, but the URL didn't change.

The second question: There is no need for my users to get an activation e-mail. Since I'd have to approve new users, I'd like to receive these e-mails. What file(s) do I have to alter, so that all confirmation e-mails are sent to me, instead of my users?

Thank you in advance!

Cheers,

Maaarten

/design/standard/templates/user/activateaccountmail.tpl:

{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{set-block scope=root variable=subject}{"Confirm user registration at %siteurl"|i18n("design/standard/user/register",,hash('%siteurl',ezini("SiteSettings","SiteURL")))}{/set-block}
{'Your user account at %siteurl has been created'|i18n('design/standard/user/register',,hash('%siteurl',ezini("SiteSettings","SiteURL")))}

{'Account information'|i18n('design/standard/user/register')}:
{'Login'|i18n('design/standard/user/register')}: {$user.login}
{'Email'|i18n('design/standard/user/register')}: {$user.email}

{'Click the following URL to confirm your account'|i18n('design/standard/user/register')}
http://{ezini("SiteSettings","SiteURL")}{concat("user/activate/",$hash)|ezurl(no)}

Ole Morten Halvorsen

Tuesday 07 September 2004 5:45:43 am

Maarten,

Try changing the 'SiteSettings', 'SiteURL' in settings/override/site.ini.append instead.

As far as I know you can't change the email receiver of the confirmation mail without hacking in the php files.

<b>file: kernel/user/register.php</b>

line 253: $mail->setReceiver( $user->attribute( 'email' ) );

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

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 19 2025 11:50:12
Script start
Timing: Jan 19 2025 11:50:12
Module start 'layout'
Timing: Jan 19 2025 11:50:12
Module start 'content'
Timing: Jan 19 2025 11:50:13
Module end 'content'
Timing: Jan 19 2025 11:50:13
Script end

Main resources:

Total runtime1.2569 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2813152.6406
Module start 'layout' 0.00600.0039 741.921939.4766
Module start 'content' 0.01001.2454 781.3984493.7578
Module end 'content' 1.25540.0015 1,275.156312.1250
Script end 1.2569  1,287.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2592160.0002
Check MTime0.00130.1055160.0001
Mysql Total
Database connection0.00120.094710.0012
Mysqli_queries1.208496.1365540.0224
Looping result0.00060.0479520.0000
Template Total1.217696.920.6088
Template load0.00210.166120.0010
Template processing1.215596.703020.6078
Template load and register function0.00040.031610.0004
states
state_id_array0.00170.131810.0017
state_identifier_array0.00360.289620.0018
Override
Cache load0.00160.1291260.0001
Sytem overhead
Fetch class attribute can translate value0.00100.077120.0005
Fetch class attribute name0.00140.111620.0007
XML
Image XML parsing0.00030.022620.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00130.1024100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs