Forums / General / Roles and Permission - EZCrew Please help

Roles and Permission - EZCrew Please help

Author Message

John Smith

Wednesday 22 February 2006 9:57:36 am

hi there,

Hope someone can help me in getting the functionality given below:

1. Administrator can create a "Forum/Discussion Topic" from the administration interface of the website.

2. After the administrator created a "Forum/Discussion Topic", it gets visible to all the user of the public website. In other words, the public can now see the "Forum/Discussion Topic".

3. Now anyone from the public can post a "Forum/Discussion Topic Reply" to that "Forum/Discussion Topic", but the "Forum/Discussion Topic Reply" has to be approved by the administrator before it gets visible to the public.

4. Users can't edit their replies.

Thanks in advance

John

Łukasz Serwatka

Thursday 23 February 2006 1:03:13 am

Hi John,

1. You will need to create new police for "normal" users:

Module	  Function   Limitation	
content 	  create      Class( Forum message ) Parent class( Discussion Topic )

Module	  Function   Limitation	
content 	  edit 	     Class( Forum message ) Parent class( Discussion Topic )

2. Display only "create new reply" form to normal users. Not edit form.

3. Setup Workflow with Approve event.
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/workflow_events/approve

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

John Smith

Thursday 23 February 2006 1:41:00 am

thanks for your kind help.

I will try what you said.

Can you please explain the second point in more detail - like how to hide the edit form.

In the meantime please help me in another point if possible.

Here in my website I want some kind of feedbacks from the anonymous users on the article already published by the administrator.

But obviously the feedback/comments has to be approved by the administrator before it get visible to the public underneath that article.

Thanks in advance.

Cheers.

Łukasz Serwatka

Thursday 23 February 2006 1:48:47 am

John, use Approve workflow event. Here you can read more:
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/workflow_events/approve

and take this tutorial (present your problem):
http://ez.no/products/ez_publish/documentation/building_an_ez_publish_site/the_guestbook/creating_a_workflow

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

John Smith

Thursday 23 February 2006 2:00:53 am

In the guest book example, you are dealing with one folder and entries.

Can i do the same thing with the number of articles and their relevant entries.

In your previous reply regarding discussion topics, you said

"Display only "create new reply" form to normal users. Not edit form."

Can you please make this point more clear.

Cheers.

Łukasz Serwatka

Thursday 23 February 2006 2:16:14 am

Can i do the same thing with the number of articles and their relevant entries.

Yes, you can define in approve event section which will be affected by approve mechanism. Lets say you have section News, someone will publish comment in this section then administrator must approve it. It doesn't matter if this is one folder or many, but everything must be around section specified in workflow event.

Check on template level, if user can create object or not then display "Post reply" button.

{if $node.object.can_crate}
      <form method="post" action="/content/action">
        <input type="hidden" name="NodeID" value="{$node.node_id}" />
        <input type="hidden" name="ClassID" value="CLASS_ID_OF_FORUM_MSG" />
        <input class="button" type="submit" name="NewButton" value="Post reply" />
    </form>
{/if}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

John Smith

Thursday 23 February 2006 5:09:58 am

thanks Lukasz for you kind help.

You are really doing good job by helping the community.

cheers

eZ debug

Timing: Jan 18 2025 10:58:30
Script start
Timing: Jan 18 2025 10:58:30
Module start 'content'
Timing: Jan 18 2025 10:58:31
Module end 'content'
Timing: Jan 18 2025 10:58:31
Script end

Main resources:

Total runtime1.3394 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.7266180.8359
Module start 'content' 0.00821.0529 768.5625594.4141
Module end 'content' 1.06110.2782 1,362.9766341.0781
Script end 1.3393  1,704.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.3464210.0002
Check MTime0.00180.1309210.0001
Mysql Total
Database connection0.00090.065510.0009
Mysqli_queries1.241092.65512060.0060
Looping result0.00260.19102040.0000
Template Total1.297996.920.6489
Template load0.00210.158720.0011
Template processing1.295796.742120.6479
Template load and register function0.00010.009610.0001
states
state_id_array0.00250.187910.0025
state_identifier_array0.00170.130620.0009
Override
Cache load0.00190.1415510.0000
Sytem overhead
Fetch class attribute can translate value0.00200.152830.0007
Fetch class attribute name0.00140.107280.0002
XML
Image XML parsing0.00160.121330.0005
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00680.5052290.0002
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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs