Forums / Setup & design / Letting users edit their profile

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?