Letting users edit their profile

Author Message

matt pichelmayer

Tuesday 16 November 2004 2:40:55 pm

hi I've installed the php cms, and I'm wondering what I have to do so users that login can change their passwords and profile info?

Björn Dieding@xrow.de

Tuesday 16 November 2004 6:20:46 pm

try it in your template

{let current_user=fetch( 'user', 'current_user' )}
{section show=eq($current_user.contentobject_id,$anonymous_user_id)}
    <a  href={"/user/login/"|ezurl}>{'Login'|i18n('design/standard/layout')}</a>
{section-else}
    <a href={"/user/logout/"|ezurl}>{'Logout'|i18n('design/standard/layout')}</a> (<a href={concat("/content/edit/", $current_user.contentobject_id )|ezurl}>{$current_user.login|wash}</a>) 
{/section}
{/let}

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Ole Morten Halvorsen

Wednesday 17 November 2004 1:27:54 am

You need to give logged in users access to change their user. Add these policies to the Guest User role:

content    edit     Class( User), Owner( self )
user       selfedit *

Ole M.

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

matt pichelmayer

Tuesday 23 November 2004 8:11:07 am

uhmm which file are these policies placed in?

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 21:24:09
Script start
Timing: Jan 19 2025 21:24:09
Module start 'layout'
Timing: Jan 19 2025 21:24:09
Module start 'content'
Timing: Jan 19 2025 21:24:09
Module end 'content'
Timing: Jan 19 2025 21:24:09
Script end

Main resources:

Total runtime0.0158 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1797152.6250
Module start 'layout' 0.00510.0032 741.804739.4453
Module start 'content' 0.00830.0051 781.250093.3672
Module end 'content' 0.01340.0023 874.617234.3047
Script end 0.0158  908.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.5004140.0002
Check MTime0.00127.4065140.0001
Mysql Total
Database connection0.00074.260910.0007
Mysqli_queries0.003018.871630.0010
Looping result0.00000.089110.0000
Template Total0.001912.010.0019
Template load0.00106.090310.0010
Template processing0.00095.894110.0009
Override
Cache load0.00074.267010.0007
General
dbfile0.00031.759980.0000
String conversion0.00000.049840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs