user preferences edit

Author Message

Federico Canuti

Thursday 27 October 2005 2:19:53 am

Hello I want to give the user of my forum the opportunity to modify his password, name and various preferences but I haven't find an example of this page already working so do I have to build it from scratch or simply I didn't look in the right place?

Ɓukasz Serwatka

Thursday 27 October 2005 2:55:08 am

Federico, you users will need access to selfedit. You can change it in Admin interface, tab User accounts.

Module: user
Function: selfedit

Than you can put link in your tpl to /content/edit module.

{def $user=fetch( user, current_user )}
<a href={concat( '/content/edit/', $user.contentobject.id, '/')|ezurl}>Change information</a>

That's all.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 13:46:15
Script start
Timing: Jan 19 2025 13:46:15
Module start 'layout'
Timing: Jan 19 2025 13:46:15
Module start 'content'
Timing: Jan 19 2025 13:46:16
Module end 'content'
Timing: Jan 19 2025 13:46:16
Script end

Main resources:

Total runtime1.2136 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.0043 589.1484152.6250
Module start 'layout' 0.00430.0026 741.773439.4453
Module start 'content' 0.00691.2052 781.2188525.7344
Module end 'content' 1.21210.0015 1,306.95318.1719
Script end 1.2135  1,315.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2583160.0002
Check MTime0.00130.1106160.0001
Mysql Total
Database connection0.00060.049310.0006
Mysqli_queries1.174696.7859540.0218
Looping result0.00040.0359520.0000
Template Total1.182097.420.5910
Template load0.00220.179320.0011
Template processing1.179897.214820.5899
Template load and register function0.00010.010410.0001
states
state_id_array0.00130.108910.0013
state_identifier_array0.00130.104720.0006
Override
Cache load0.00180.1443120.0001
Sytem overhead
Fetch class attribute can translate value0.00040.036220.0002
Fetch class attribute name0.00110.088930.0004
XML
Image XML parsing0.00060.049420.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00150.1217180.0001
String conversion0.00000.000640.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs