allow our registered visitors to edit their own threads and replies

Hello,
I'm trying to figure out within the roles & permissions system, how to allow our registered visitors to edit their own threads and replies, without time limits on certain categories, but only theirs, not other users' too.
Thank you.
Tagged:
1
Answers
@Shatojon
Welcome to the community.
This may be what you are looking for:
https://vanillaforums.org/discussion/32296/can-members-only-delete-your-comments-and-discussions
good suggestion would be good to have this part of core.
UNFORTUNATELY), There is no role and permission option that allows per category editing "without time limits". It is either all or nothing with regards to self-editing of your own discussions and comments.
$Configuration['Garden']['EditContentTimeout']
options via the dashboard - advanced options
allowable options .....
Since there is no category option for self-editing. The only self-editing option is the one in the dashboard where you can adjust edit timeout for ALL categories which affects users that are able to edit their own discussions and comments.
This is referenced in the config statement which is the default of 60 minutes.
Most of the Editing is checked in canedit function in the discussion model, the individual user control granularity for self discussions editing is affected by the value in $Configuration['Garden']['EditContentTimeout']
So you could create different roles or ranks and change the config EditContentTimout per sesssion based on role or rank via addition to an add-on or creating a separate add-on. Another option, you could also change the Timeout to -1 to always allow self-editing in all categories, and then prevent editing before the comment or discussion save on an category basis. Based on event check the category id , session user or role and prevent the edit-save on categories that you don't want the Timeout to be -1 and actually be restricted.
For completeness - As far as self-deleting, the config statement mentioned in link mentioned in previous comment ONLY refers to comments and self-deletion. Users cannot self-delete Discussions without also being to allow deletion of any discussion.
$Configuration['Vanilla']['Comments']['AllowSelfDelete'] = true;
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.
temporarily adjust to unlimited per session - create your own conditional based on values you want.
saveToConfig('Garden.EditContentTimeout', '-1', array('Save' => FALSE));
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.
Hey everyone,
Thank you for your responses - very appreciated!
I'm genuinely surprised this isn't an option by default available in the core.
It is a built in perk for Yaga.
/shameless self promotion
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Is it really. Is this TRUE or FALSE.
I believe user asked for different timeouts for "certain" categories for the registered users.
interpreted as different categories with different timeouts for user.
meaning a Single User or role or rank can have different Timeouts based on different categories. Category A - timeout unlimited. Category B timeout 15 minutes same user.
Are you saying this is builitin perk or did you misinterpret question?
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.
Misinterpretation, but that perk sounds like a cool idea.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
doesn't need to be a perk, tho might be a good feature in vanilla core
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.