Edit Only Your Unanswered Posts

Allows users to edit their posts only if they haven't been replied to
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Edit Only Your Unanswered Posts

Post by kasimi »

phpBB extension - Edit Only Your Unanswered Posts

This extension for phpBB 3.1.x & 3.2.x adds a forum permission that - if set to yes - allows users to edit their posts only if they haven't been replied to. If a post is not the user's last one in a topic, editing is not allowed anymore. Moderators who are allowed to edit all posts (m_edit) are exempt from this.

You can find the permission Can only edit unanswered posts under the Post tab in your forum permissions. Users are required to have regular edit permission for this extension to work. If a user does not have regular edit permission, the permission added by this extension - whether it is set to Yes or No - has no effect.

Thanks to Darloup for funding this extension.

Requirements
  • PHP at least 5.3.3
  • phpBB at least 3.1.10-RC1
Download

This extension is only available to Donors. How to get access.
kasimi-phpbb-ext-editonlyyourunansweredposts-1.0.0.zip
How to install, update and uninstall extensions: https://www.phpbb.com/extensions/installing/
Install path: ext/kasimi/editonlyyourunansweredposts/

Changelog
  • v1.0.0 - 2016-12-14
    • Renamed from Edit Last Post Only to Edit Only Your Unanswered Posts
    • Allow moderators to edit all posts
  • v1.0.0 - 2016-11-10
    • First release
You do not have the required permissions to view the files attached to this post.
terry2
Posts: 242
Joined: 22 Oct 2016, 18:22
Location: My castle

Re: Edit Last Post Only

Post by terry2 »

Nice idea thankyou
User avatar
Darloup
Posts: 62
Joined: 20 Oct 2016, 18:21
Location: Barranquilla (Colombia)

Re: Edit Last Post Only

Post by Darloup »

Thanks for a great extension!

I assume that, under the general Post/Post settings tab of the ACP, the "Limit editing time" field must be set to 0 in order to disable this behaviour?

Regards,

Henry
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: Edit Last Post Only

Post by kasimi »

You're welcome! :)
Darloup wrote:the "Limit editing time" field must be set to 0 in order to disable this behaviour?
What behaviour are you talking about exactly?

The permission added by this extension works in addition to all existing editing conditions. This means that if a user is not allowed to edit a post for whatever reason, this extension doesn't change that. If, on the other hand, a user is in fact allowed to edit a post, only then the Can edit last post only permission is checked and if set to Yes, editing is denied if it isn't the last post.
User avatar
Darloup
Posts: 62
Joined: 20 Oct 2016, 18:21
Location: Barranquilla (Colombia)

Re: Edit Last Post Only

Post by Darloup »

What behaviour are you talking about exactly?
There is a Limit editing time under the general Post/Post settings tab of the ACP. You can choose various editing time from a scrolling menu and I had set it to 15 minutes in my forum.

So, if this extension must make any sense, I suppose that this particular setting has to be disabled (set to 0) otherwise, as you explained, users will only be able to edit their last messages for 15 minutes!

H.
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: Edit Last Post Only

Post by kasimi »

Darloup wrote:I suppose that this particular setting has to be disabled (set to 0) otherwise, as you explained, users will only be able to edit their last messages for 15 minutes!
Yes, which is a valid use case in my opinion. I haven't tested this extension in combination with the Limit editing time setting specifically but that's how it's supposed to work.
User avatar
Darloup
Posts: 62
Joined: 20 Oct 2016, 18:21
Location: Barranquilla (Colombia)

Re: Edit Last Post Only

Post by Darloup »

A small suggestion for a small cosmetic change:

I think that, in the ACP, Can edit last post only should be changed to

Can only edit last posts which have not been replied to (or something to that effect).

I've already modified it ! ;)

H.
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: Edit Last Post Only

Post by kasimi »

I understand your intentions but isn't that a little redundant? A post that has been replied to can't be the last one. :D Maybe Can only edit posts which have not been replied to? Continuing this thought, maybe the whole extension needs renaming...
User avatar
Darloup
Posts: 62
Joined: 20 Oct 2016, 18:21
Location: Barranquilla (Colombia)

Re: Edit Last Post Only

Post by Darloup »

A post that has been replied to can't be the last one. :D
Yes, it could! The LAST post of a given user.

In other words, a user's LAST post can have been replied to. It will not be the last one in the thread, but it will be the last one for them.
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: Edit Last Post Only

Post by kasimi »

True, but this again means that the extension name needs to be changed as well, don't you think?

Who is online

Users browsing this forum: CCBot [Bot] and 0 guests