how to register a new user

Author Message

Rosa Prisciandaro

Saturday 03 June 2006 6:23:26 am

In the site I am developing i need the user to be registered to permit him to download specified files (pdf documents) . I have included a user_login.tpl file in my pagelayout that contains the login button for the already logged users and the register button for new users. In my template i' ve written something like this:
{section show=eq($current_user.contentobject_id,$anonymous_user_id)} {section show=eq($module_result.uri|extract_left(14),'/user/register')}
{$module_result.content}
{section-else}

{section show=eq($module_result.uri|extract_left(13),'/user/success')}
{$module_result.content}
{section-else}
{include uri="design:user_login.tpl"}
{/section}

{section else}
....download files.....
{/section}
For the login page everything goes ok, but when I click on the register button, my register.tpl (that is in the /templates/user folder ) comes out in a ez-publish default page and not in the pagelayout i came from . What's wrong?

Thanks for any answer, Rosa

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 15:56:06
Script start
Timing: Jan 18 2025 15:56:06
Module start 'layout'
Timing: Jan 18 2025 15:56:06
Module start 'content'
Timing: Jan 18 2025 15:56:07
Module end 'content'
Timing: Jan 18 2025 15:56:07
Script end

Main resources:

Total runtime0.6797 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 589.0469152.6250
Module start 'layout' 0.00790.0025 741.671939.4453
Module start 'content' 0.01040.6678 781.1172403.4609
Module end 'content' 0.67820.0015 1,184.57818.3203
Script end 0.6797  1,192.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4716160.0002
Check MTime0.00120.1795160.0001
Mysql Total
Database connection0.00100.143510.0010
Mysqli_queries0.641594.3779460.0139
Looping result0.00040.0610440.0000
Template Total0.647995.320.3240
Template load0.00180.261020.0009
Template processing0.646195.058920.3231
Template load and register function0.00030.048410.0003
states
state_id_array0.00100.144210.0010
state_identifier_array0.00170.257020.0009
Override
Cache load0.00140.2127170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.086110.0006
Fetch class attribute name0.00090.125610.0009
XML
Image XML parsing0.00010.017210.0001
class_abstraction
Instantiating content class attribute0.00000.001210.0000
General
dbfile0.00060.0945100.0001
String conversion0.00000.001240.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs