Roles required for Anonymous Comments

Author Message

Ian Cumming

Sunday 18 July 2004 7:40:51 am

Hi,

I've searched the forum for every post regarding this issue, but I can't seem to get enough info to solve the problem..

I can't enable comments on articles for anonymous users in 3.4. I first tried the following roles for Anonymous:

content create Class( Comment )
content read Class( Comment )
content edit Class( Comment )

However, if I add:

content * *

for Anonymous I am able to create them?

I am really stuck please help :(

meinhard benn

Sunday 29 August 2004 3:27:46 pm

hi there,

this seems to be a bug in the template files in 3.4 (and 3.4.1 as well). however, if you change "can_create" into "create" in the right .tpl file in your ez design directory, you can post comments.

for me it worked like this (i wanted to have anonymous weblog comments):
1. edit <ez_dir>/design/<name_of_your_ez_site>/override/templates/full/weblog.tpl
2. look for "can_create" at the bottom of the file, replace with "create"
3. clear template caches in the cache admin
4. make sure the anonymous role has sufficient rights to post comments

hope this get you on the right track..

meinhard.

http://goozee.benn.org/ - Google Co-op for eZ sites

Randeep Walia

Wednesday 08 September 2004 11:37:24 am

I don't know how you figured that out- but YOU THE MAN! It works.

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

Frederik Holljen

Wednesday 08 September 2004 11:29:37 pm

This bug is fixed for the upcomming 3.4.2

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 31 2025 03:26:37
Script start
Timing: Jan 31 2025 03:26:37
Module start 'layout'
Timing: Jan 31 2025 03:26:37
Module start 'content'
Timing: Jan 31 2025 03:26:37
Module end 'content'
Timing: Jan 31 2025 03:26:37
Script end

Main resources:

Total runtime0.0224 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.1484151.2109
Module start 'layout' 0.00420.0036 739.3594220.6875
Module start 'content' 0.00790.0131 960.04691,001.7734
Module end 'content' 0.02100.0014 1,961.820333.9922
Script end 0.0224  1,995.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.8577140.0002
Check MTime0.00104.6196140.0001
Mysql Total
Database connection0.00052.264610.0005
Mysqli_queries0.002310.439030.0008
Looping result0.00000.057410.0000
Template Total0.00104.410.0010
Template load0.00083.432610.0008
Template processing0.00020.989410.0002
Override
Cache load0.00052.268910.0005
General
dbfile0.00198.473080.0002
String conversion0.00000.027640.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