Forums / Install & configuration / Registered User

Registered User

Author Message

Nicolas OTTAVI

Wednesday 07 December 2005 6:15:23 am

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.

Łukasz Serwatka

Wednesday 07 December 2005 11:05:58 pm

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>

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

Nicolas OTTAVI

Saturday 10 December 2005 8:45:23 am

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.

Nicolas OTTAVI

Tuesday 13 December 2005 2: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.

Greg McAvoy-Jensen

Wednesday 25 January 2006 11:14:28 pm

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.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Łukasz Serwatka

Thursday 26 January 2006 12: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

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

Greg McAvoy-Jensen

Thursday 26 January 2006 8:31:19 am

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?

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

eZ debug

Timing: Jan 18 2025 04:16:26
Script start
Timing: Jan 18 2025 04:16:26
Module start 'content'
Timing: Jan 18 2025 04:16:27
Module end 'content'
Timing: Jan 18 2025 04:16:27
Script end

Main resources:

Total runtime0.8881 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 591.7734180.8438
Module start 'content' 0.00910.7294 772.6172642.2969
Module end 'content' 0.73840.1495 1,414.9141341.6953
Script end 0.8880  1,756.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5324210.0002
Check MTime0.00190.2127210.0001
Mysql Total
Database connection0.00110.125410.0011
Mysqli_queries0.798189.87232080.0038
Looping result0.00230.25992060.0000
Template Total0.855496.320.4277
Template load0.00210.237920.0011
Template processing0.853396.078520.4266
Template load and register function0.00020.023210.0002
states
state_id_array0.00140.153210.0014
state_identifier_array0.00100.112020.0005
Override
Cache load0.00180.2053460.0000
Sytem overhead
Fetch class attribute can translate value0.00120.131040.0003
Fetch class attribute name0.00150.172490.0002
XML
Image XML parsing0.00220.251140.0006
class_abstraction
Instantiating content class attribute0.00000.0026110.0000
General
dbfile0.00350.3941370.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs