Create and edit a new thread (or post) problem

Author Message

Federico Canuti

Sunday 09 October 2005 8:25:00 am

Hello, I understood (after some trouble) that a user of a forum must have BOTH the create and edit permission to write a new post or a new thread, but acting like this I can't separate the writing of a new post from the editing of an already written post.
I mean we don't want to let the user the possibility to edit a post (or not yet), but I can't just take away the edit button code because we want to make the option available for the administrators.
I don't know if I managed to be clear (it's a hard sunday), can you help me to solve this problem?

Arran Price

Sunday 09 October 2005 3:45:29 pm

You can create 2 different roles for your admins and other uses. Give the admins edit permissions and dont give it to the normal users.

Arran

Federico Canuti

Monday 10 October 2005 12:40:36 am

I know I can create 2 different roles but if I don't give the edit permission to the normal users they can't write anything, the create permission is not enough alone, but I give them also the edit permission after the can also edit their post (an I don't want this).

Olivier G.

Monday 10 October 2005 12:42:15 am

You can also force the version to be the first.

Federico Canuti

Monday 10 October 2005 1:44:14 am

So I can prevent the user to edit his post by forcing the version, but how can I do this?

Federico Canuti

Tuesday 11 October 2005 11:47:15 am

bump!

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 18 2025 22:11:30
Script start
Timing: Jan 18 2025 22:11:30
Module start 'layout'
Timing: Jan 18 2025 22:11:30
Module start 'content'
Timing: Jan 18 2025 22:11:31
Module end 'content'
Timing: Jan 18 2025 22:11:31
Script end

Main resources:

Total runtime0.6238 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 589.1797152.6406
Module start 'layout' 0.00790.0028 741.820339.4766
Module start 'content' 0.01060.6118 781.2969530.6016
Module end 'content' 0.62240.0013 1,311.898412.1250
Script end 0.6238  1,324.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5405160.0002
Check MTime0.00140.2244160.0001
Mysql Total
Database connection0.00100.156810.0010
Mysqli_queries0.576192.3494680.0085
Looping result0.00070.1089660.0000
Template Total0.591494.820.2957
Template load0.00220.354120.0011
Template processing0.589294.454120.2946
Template load and register function0.00020.034810.0002
states
state_id_array0.00100.159310.0010
state_identifier_array0.00070.107920.0003
Override
Cache load0.00180.2921170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.108430.0002
Fetch class attribute name0.00120.185060.0002
XML
Image XML parsing0.00040.059230.0001
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00070.1185100.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs