Docs on User Module?

Author Message

Willie Seabrook

Thursday 14 August 2003 8:01:06 pm

Hi,

I'm still looking for information on how to modify/use the user module. I can't find any docs!

I have searched the docs, searched the forums (you can't actually search for "user" in the forum search - you get an error returned), downloaded and created the doxygen docs and read the complete ezpublish 3 wiki and I can't find anything on using the user module. I have also asked previously but with no answer.

I need to have a user register on my site, intercept that with a workflow somehow so I can run my own php code, add the new user to a couple of roles/groups and then at the other end, restrict access to sections based upon roles/groups.

Any pointers on where to start? Are there *any* docs at all (have I been a dummy and missed them)?. Is there any information available? I've got my site built but can't register or restrict access like I want to so I'm stuck!!!

Kind Regards,
Willie

Jerry Jalava

Friday 15 August 2003 4:03:13 pm

Hi Willie,

I'm having the same prob... The only way I founded how to learn it was from the ezuser's source code... It takes a while, but after understanding the sources you will understand the way it works... But like you (I think) I would like to make it more custom (Name and logins aint enough) without customising the ezuser itself... (The updates wouldnt really like it...)

So please, someone help us out and tell is there anyway to improve the user class so it could take more attributes inside etc...

Thanks,
Jerry

Dave Dykshoorn

Wednesday 27 August 2003 11:40:34 am

You may already have this question answered but here it goes anyways.

As far as I can tell you want to add some more properties to the User accounts. You can add new properties to the user accounts in the Admin interface->Setup->Users->User.

I went as far as adding my own datatype as I wanted a list based Datatype (200+ entries in a seperate DB Table). I have created php scripts in a seperate module that access the current user and read the data from this new property. I am using this as the basis for securing my module as roles the way eZp defines them are not exactly what I need.

All current user attributes are available in eZUser::currentUser(); whereever you are in your module so grabbing aspects of the data_map shouldn't be a problem for your specific needs.

I'm not sure if that helps any but I just wanted to affirm that it is very doable with a little monkeying around.

Dave

Paul Forsyth

Wednesday 27 August 2003 2:48:35 pm

Earlier today i replied to a message on this thread:

http://ez.no/developer/ez_publish_3/forum/setup_design/checkout_adding_fields_and_shipping

I've been using ezusers for a few weeks now through php code and templates. Maybe we need to document examples of usage.

Tomorrow Ill look into the current documentation and see where i can add such information.

Paul

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 18 2025 22:14:18
Script start
Timing: Jan 18 2025 22:14:18
Module start 'layout'
Timing: Jan 18 2025 22:14:18
Module start 'content'
Timing: Jan 18 2025 22:14:18
Module end 'content'
Timing: Jan 18 2025 22:14:18
Script end

Main resources:

Total runtime0.0194 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.0081 587.9063152.6250
Module start 'layout' 0.00810.0032 740.531339.4297
Module start 'content' 0.01130.0058 779.960993.1797
Module end 'content' 0.01710.0022 873.140634.3047
Script end 0.0193  907.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.5220140.0002
Check MTime0.00115.9230140.0001
Mysql Total
Database connection0.00084.098010.0008
Mysqli_queries0.005226.705630.0017
Looping result0.00000.082510.0000
Template Total0.00179.010.0017
Template load0.00094.888010.0009
Template processing0.00084.047510.0008
Override
Cache load0.00063.034710.0006
General
dbfile0.00147.428080.0002
String conversion0.00000.050540.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