RedirectAfterUserRegister

Author Message

Andy Caiger

Tuesday 21 June 2011 4:19:57 am

I found that kernel/user/register.php has the facility to customise redirect after user register: it tests the existence of a session variable and a POST variable called' RedirectAfterUserRegister'. But how do we set this variable before the register view is called? It seems that the standard form in login.tpl calls the user/login view first which then redirects to the user/register view. POST variables are lost in the redirect it seems.

Any ideas?

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Marko Žmak

Tuesday 21 June 2011 11:29:02 am

I belive you have to put something like this:

<input type="hidden" name="RedirectAfterUserRegister" value="#your_redirect_url#">

in the template which generates the registration form.

Is this what you were looking for?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 02:51:45
Script start
Timing: Jan 18 2025 02:51:45
Module start 'layout'
Timing: Jan 18 2025 02:51:45
Module start 'content'
Timing: Jan 18 2025 02:51:46
Module end 'content'
Timing: Jan 18 2025 02:51:46
Script end

Main resources:

Total runtime0.9266 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.0052 589.0313152.6250
Module start 'layout' 0.00520.0029 741.656339.4531
Module start 'content' 0.00810.9166 781.1094534.5781
Module end 'content' 0.92470.0019 1,315.68758.1641
Script end 0.9266  1,323.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3312160.0002
Check MTime0.00130.1357160.0001
Mysql Total
Database connection0.00060.069310.0006
Mysqli_queries0.878594.8042540.0163
Looping result0.00060.0603520.0000
Template Total0.891696.220.4458
Template load0.00210.223220.0010
Template processing0.889595.995920.4448
Template load and register function0.00010.014010.0001
states
state_id_array0.00120.124210.0012
state_identifier_array0.00090.096420.0004
Override
Cache load0.00160.1774120.0001
Sytem overhead
Fetch class attribute can translate value0.00130.137320.0006
Fetch class attribute name0.00130.145340.0003
XML
Image XML parsing0.00110.117420.0005
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00110.1156240.0000
String conversion0.00000.001140.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs