Forums / Setup & design / Docs on User Module?

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

eZ debug

Timing: Jan 18 2025 19:08:50
Script start
Timing: Jan 18 2025 19:08:50
Module start 'content'
Timing: Jan 18 2025 19:08:50
Module end 'content'
Timing: Jan 18 2025 19:08:50
Script end

Main resources:

Total runtime0.2562 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.6875180.8438
Module start 'content' 0.00740.0075 768.531397.7266
Module end 'content' 0.01490.2411 866.2578522.7500
Script end 0.2561  1,389.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00381.4998200.0002
Check MTime0.00160.6241200.0001
Mysql Total
Database connection0.00180.697210.0018
Mysqli_queries0.198777.56501410.0014
Looping result0.00150.57121390.0000
Template Total0.240693.910.2406
Template load0.00100.375110.0010
Template processing0.239693.553110.2396
Override
Cache load0.00070.256110.0007
Sytem overhead
Fetch class attribute can translate value0.00180.710510.0018
XML
Image XML parsing0.00030.116310.0003
General
dbfile0.00371.4595200.0002
String conversion0.00000.001930.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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