eZ Community » Forums » Install & configuration » Registered User
expandshrink

Registered User

Registered User

Wednesday 07 December 2005 3:15:23 pm - 6 replies

Hi,

Users can register to the site I currently developping, in order to proceed purchase in the store.

How to do to:
- allow the user to change his password
- allow the user to edit his profile

I thought that the easiest way to do so was to make the user as the UserCreatorID in the [UserSettings] section, but it seems this is not possible ... (Am I wrong ? if yes let me know how to do so ... thanks)

Thanks for your help,
C.

Thursday 08 December 2005 8:05:58 am

Hi Claude,

You will have to setup two things:
- give your users right permissions to selfedit and password for module "user", you can set it in admin interface User accounts->Roles and policies then add new policy for user role,
Module: User Function: password and Module: User Function: selfedit
- place in your template 2 links, one for password administration and one for profile administration

{def $current_user==fetch( user, current_user )}
{*Password*}
<a href={concat( '/user/password/', $current_user.contentobject_id, '/')|ezurl}>Change password</a>

{*Profile*}
<a href={concat( '/content/edit/',  $current_user.contentobject_id, '/' )|ezurl}>Edit profile</a>

Modified on Thursday 08 December 2005 8:06:49 am by Łukasz Serwatka

Saturday 10 December 2005 5:45:23 pm

Thanks Lukasz,

I did what you said, but it seems not to work yet. I didn't mentionned that I have created a custom class for my users. Does it change anything concerning the selfedit feature ?

Thanks,
C.

Tuesday 13 December 2005 11:25:53 am

Hi there,

finally I can edit the user profile, by using an override (a copy of overrides/templates/edit/user.tpl for my custom class client). The user can now update his profile, and once it is done is redirected to the home page without Error.

Thanks,
C.

Thursday 26 January 2006 8:14:28 am

In which template does one paste that code if it is to appear with the Logout link? It looks like toptoolbox.tpl already has this sort of info in it; is there a simple way to enable it? Thank you.

Thursday 26 January 2006 9:14:02 am

Hi Greg,

If you using top toolbar, you can add "login" tool there. Then you don't have too change templates, at least if this is enough for you. Login and Logout link should appear.

In admin interface:

1. Go to Design tab
2. Click Toolbar management
3. Choose your siteaccess from drop-down list
4. Choose Top
5. Add "Login" tool
6. Save settings

Modified on Thursday 26 January 2006 9:16:20 am by Łukasz Serwatka

Thursday 26 January 2006 5:31:19 pm

Yes, thank you. I've got that. But I was trying to get the password changing and profile changing functionality. I understand how to get it from your explanation and code above, but I don't know which template it should go in. I also know that at least one existing template has this code already in it, so it there a simple switch I should do? What's best?

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from