Forums / Setup & design / Login/Member-Area

Login/Member-Area

Author Message

Timo Bahr

Tuesday 22 June 2010 1:04:05 pm

Hello to all!

I want to create a member section that is only visible to members!

http://creative-noise.com/index.php/ger/Press-Partner

This should be a login-box and after a login content should be visible. I really dont know what to do and i couldn find anything "maybe easy" here by using the search-option! Do you have any ideas?

Thanks for your support!

Bertrand Dunogier

Wednesday 23 June 2010 12:32:31 am

Hi Timo !

First, you need to restrict access to the Press-Partner folder / container. This can be achieved in several way, but the easiest one is to apply a custom section to it. First go to Setup / Sections, and create a new one, named for example Press-Partner or whatever makes the most sense here. Then use the assign button to assign this newly created section to your Press-Partner node.

Right after you've done this, trying to access this page as Anonymous should prompt a login screen. This is because the anonymous role is only allowed to see content from the Standard (default) section.

The next step is to create a new user role (or re-use one of the default ones, like Members), and grant members of this role the content / view / Section( Press-Partner ) permission. Finally, assign this role to a (new) user group. From now on, any user that is part of this group will be able to login and access this content.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Robin Muilwijk

Wednesday 23 June 2010 12:39:40 am

Hi Timo,

Have you checked the following doc page already? http://ez.no/doc/ez_publish/technical_manual/4_x/concepts_and_basics/content_management/sections

With sections you can also limit access to certain content for groups (members) you have setup. It would probably require a custom template to show the login box when a regular visitor opens such a restricted link.

Does the above help you out continue with setting this up or do you need further information?

Regards Robin

p.s. looks like while writing my reply Bertrand beat me to it ;) Follow his reply and your ok...

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Timo Bahr

Wednesday 23 June 2010 3:18:45 am

Thank you so much! But i created a testuser and if i try to log it into the area a error-message comes up:

Access not allowed

  • You are not allowed to access ger.

Any Ideas?

Robin Muilwijk

Wednesday 23 June 2010 3:48:06 am

Check which roles and groups the new user is in. Looks like it does not have access to the "ger" SiteAccess. Normally when you have a group, the Anonymous role is linked to it, this contains the rights to access siteaccess.

For example, in a default install of eZWebin the Member group has 2 roles, Anonymous and Members where Anonymous contains the access rights for the configured siteaccess.

-- Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Jurica Perić

Thursday 25 November 2010 6:41:21 am

That message means that you have created role and user group but you haven't assigned role to a user or a user group. You can do that by opening page for viewing that role and below you will have button for assigning that role to a user or a user group

Daisy Radix

Saturday 27 November 2010 10:54:34 pm

Check that you user policies are ok. I think he don't have access to login function on ger siteacess.

User accounts -> role and policies -> you user role -> module "user", function "login", siteaccess "ger".

eZ Publish certified developper :http://auth.ez.no/certification/verify/378142

eZ debug

Timing: Jan 18 2025 01:00:04
Script start
Timing: Jan 18 2025 01:00:04
Module start 'content'
Timing: Jan 18 2025 01:00:05
Module end 'content'
Timing: Jan 18 2025 01:00:05
Script end

Main resources:

Total runtime1.0658 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.7266180.8438
Module start 'content' 0.00760.9417 769.5703712.9375
Module end 'content' 0.94930.1165 1,482.5078340.4609
Script end 1.0658  1,822.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3809210.0002
Check MTime0.00150.1374210.0001
Mysql Total
Database connection0.00070.063710.0007
Mysqli_queries0.980291.96342130.0046
Looping result0.00220.20542110.0000
Template Total1.037097.320.5185
Template load0.00210.196020.0010
Template processing1.034997.095220.5174
Template load and register function0.00020.023010.0002
states
state_id_array0.00090.084210.0009
state_identifier_array0.00070.063220.0003
Override
Cache load0.00180.1686400.0000
Sytem overhead
Fetch class attribute can translate value0.00180.170560.0003
Fetch class attribute name0.00160.1479100.0002
XML
Image XML parsing0.00210.195160.0003
class_abstraction
Instantiating content class attribute0.00000.0024110.0000
General
dbfile0.00570.5315410.0001
String conversion0.00000.000330.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
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/header.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/header.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs