Forums / General / admins and ordinary users

admins and ordinary users

Author Message

Jacek S

Monday 16 October 2006 9:15:18 am

Im curently developing a site with forums, users comments and other user generated contend. I want also to gather some info about user(like their age, where they live and other).
I have two big problem/quiestion:
1. How to distinguish beetween ordinary site user and user with admin/editor rights? Wont it be a security leak if i will use user accounts system build in ez publish? Admins will be a closed group contains a few people, users will be an open group - everyone(who get to this site) will be able to join it.
2. How to gather info about users? I think i have to build a custom class which will contains all data about single user. But how to connect object of that class with users login/password?

Claudia Kosny

Monday 16 October 2006 11:52:16 am

Hello Thorgrim

EZpublish has a pretty good access right system. By default an user cannot do much unless you especially give him more permissions or move him into an group that has more permissions.
You can find information about that here:
http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/access_control

Although I think it is more informative to just have a look at the roles that are setup during installation.There you have already an admin with the respective permission set and a set for anonymous users. I think there is also a ready role for editors (this might depend on the package that is installed).

Each user is an object so you can edit the class if you need to store more information. One big minus for EZ is that it is quite complicated to have different user classes. So if you want to automatically give some users admin rights and some not,this will be difficult. Generally though there is only one registration form for all users and the admin has to give an user admin rights manually if required.

Greetings from Luxembourg

Claudia

Xavier Dutoit

Tuesday 17 October 2006 1:27:38 am

And you can add as many fields as you want to the user class (age...) or create a new forum_user with one attribute ezuser.

X+

http://www.sydesy.com

eZ debug

Timing: Jan 18 2025 19:20:57
Script start
Timing: Jan 18 2025 19:20:57
Module start 'content'
Timing: Jan 18 2025 19:20:58
Module end 'content'
Timing: Jan 18 2025 19:20:58
Script end

Main resources:

Total runtime0.7874 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.8203180.8438
Module start 'content' 0.00680.6339 769.6641569.9609
Module end 'content' 0.64060.1467 1,339.6250332.7578
Script end 0.7874  1,672.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4803210.0002
Check MTime0.00150.1910210.0001
Mysql Total
Database connection0.00080.095910.0008
Mysqli_queries0.718191.19601960.0037
Looping result0.00220.28061940.0000
Template Total0.760696.620.3803
Template load0.00180.232420.0009
Template processing0.758896.361920.3794
Template load and register function0.00050.063610.0005
states
state_id_array0.00070.084710.0007
state_identifier_array0.00080.098720.0004
Override
Cache load0.00150.1889200.0001
Sytem overhead
Fetch class attribute can translate value0.00140.180140.0004
Fetch class attribute name0.00170.219240.0004
XML
Image XML parsing0.00170.220340.0004
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00330.4212270.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs