Forums / Setup & design / Allowing anonymous Users to write on coments / forums.

Allowing anonymous Users to write on coments / forums.

Author Message

L K

Saturday 11 December 2004 8:02:48 am

Hello
I'm trying to figure out how to allow anonymous users to post comments on articles and to contribute on the site with out the need to log in. I can see the comments buttons when I log in as the administrator but when I log in as a 'normal user', it still says you are not allowed to make comments and also says you need to log in to contribute to forums..please help. I know it's something to do with roles in the admin area but I haven't done it before. Can somebody please guide me on this..thanks.

Balazs Halasy

Sunday 12 December 2004 12:44:01 am

Hi,

Try this:

Edit the anonymous role and add the following policies:

1)
Step1: Module=content (grant access to one function)
Step2: Function=create (grant limited access)
Step3: Class=Comment, Section=Standard, ParentClass=Article

2)
Step1: Module=content (grant access to one function)
Step2: Function=edit (grant limited access)
Step3: Class=Comment, Section=Standard, ParentClass=Article

Remember to save the role and verify that the policies you added are correct. That's it, I haven't tested this, but I think it should pretty much solve your problem.

Balazs

Ekkehard Dörre

Sunday 12 December 2004 2:36:30 am

Hi,

you can look here:
http://ez.no/ez_publish/documentation/building_an_ez_publish_site/the_guestbook/making_the_button_work

but there is a problem:
http://ez.no/community/bug_reports/how_to_allow_simple_posting_for_anonymous_users_no_login_requirements

Anonymous Users are one user with User ID: 10 so [content edit self] means editing all ever made comments or forum posts by any anonymous user.

The only way is Volkers hack, but not testet is 3.4 or 3.5

Greetings ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

L K

Friday 17 December 2004 2:58:54 am

Hello
I tried all that is been said in the articles above but nothing seems to work.
All I want is to enable anonymous users to make comments, post in forums and make comments on articles with out the need to login.

L K

Sunday 23 January 2005 3:20:37 am

This is how I have set my Roles and Policies for allowing anonymous user to make comments on articles and to post in forums but It's not working according to what I want.

I want to enable anonymous users to post and make coments on forums and on articles. Can some please help me? I'm using 3.4.1 version.

Thanks.
------------------------------------------------------------------------------
user login *
content read Class( Folder , Link , File , Comment , Article , Product , Review , Forum , Forum topic , Forum reply )
content read Class( User group ) , Section( Standard section )
content read Class( Forum ) , Section( Standard section )
content create Class( Forum ) , Section( Standard section ) , ParentClass( Forum )
content create Class( Comment ) , Section( Standard section ) , ParentClass( Article )
content edit Class( Forum ) , Section( Standard section ) , Owner( Self )

L K

Monday 31 January 2005 10:25:12 am

Hello
Does anyone know why my guest users can not post after registration. If someone has done it before, I will appreciate if you can just post the code so that I can see how you set the Roles and Polices.

I can post and make comments when I'm logged in as the admin for my site but when I create another user account, It says "you are not allowed to make comments" instead of having the comments button at the buttom of each article or in the forums that come with ezpublish as fault message board. Plz help.
Thanking you in advance.

eZ debug

Timing: Jan 29 2025 13:30:58
Script start
Timing: Jan 29 2025 13:30:58
Module start 'content'
Timing: Jan 29 2025 13:30:58
Module end 'content'
Timing: Jan 29 2025 13:30:58
Script end

Main resources:

Total runtime0.1317 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.0063 588.1563180.8125
Module start 'content' 0.00630.0065 768.968897.9297
Module end 'content' 0.01280.1188 866.8984530.3750
Script end 0.1317  1,397.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.6335200.0002
Check MTime0.00141.0252200.0001
Mysql Total
Database connection0.00080.644610.0008
Mysqli_queries0.090468.61361410.0006
Looping result0.00090.68911390.0000
Template Total0.118489.910.1184
Template load0.00080.606010.0008
Template processing0.117689.314510.1176
Override
Cache load0.00050.413110.0005
Sytem overhead
Fetch class attribute can translate value0.00050.381010.0005
XML
Image XML parsing0.00030.195810.0003
General
dbfile0.00685.1713200.0003
String conversion0.00000.004730.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