Disable Edit after X Time on selected forums only
#1
Hello!

I would like to be able to turn off the ability to edit a post, for selected usergroups, after a set amount of time has passed.

Required:
- Choose which usergroups the plugin applies to
- Choose the time frame during which edits can be made
- Choose who has permission to edit posts that have been 'locked'.

Once the time frame has been passed (eg, 1 hour) the post will not be able to be edited, except by the usergroup/s with Permission to edit (eg, Administration).

Essentially, each individual post would self-lock after a set amount of time has passed, if it was posted by someone in the applicable usergroup.

Thank you for your time!


Please see third post! Looking to have more power over where this edit lock takes place instead of across the forum as a whole.
[Image: HaLp2lk.png]

[Image: LQwJ7VV.png]
Reply
#2
All the desired features you can set for every usergroup in acp group settings.
Reply
#3
:o ! I didn't realise! Thank you!
[Image: HaLp2lk.png]

[Image: LQwJ7VV.png]
Reply
#4
Okay!

I implemented the disable edit after X time and have no issues with it, etc.

However, I’m wondering if it’s possible to make a plugin could enable the Admin to dictate which forums the edit lock does or does not apply to? Without having to make groups moderators? I don’t want them able to edit anyone but their own posts, in set locations.
[Image: HaLp2lk.png]

[Image: LQwJ7VV.png]
Reply
#5
You’d have to add a setting which specifies the forum ids, explode that list and do an if statement on it and the current forum ID. All of that may not have made much sense to you, so post which plugin you’re using and I’ll be able to assist further.
Plugin Count: I lost count.
Public Plugins are available here.
Official GitHub.
Please do not PM me for support unless asked to.
Reply
#6
(2018-06-19, 07:43 AM)Wires Wrote: You’d have to add a setting which specifies the forum ids, explode that list and do an if statement on it and the current forum ID. All of that may not have made much sense to you, so post which plugin you’re using and I’ll be able to assist further.

Not a lick lol! Thanks for replying though!

I'm not actually using a Plugin for this, just the default setting:
[Image: 037b1a26320daffbc6d0fa234937b6a5.png]

So I'd just really like to be able to dictate which boards it does/doesn't apply to Smile Something like this (this is a Prefix related Plugin) which would allow me to choose which boards the Edit lock applies to.
[Image: 8f0d285554a2e48516f6af20910e792f.png]
[Image: HaLp2lk.png]

[Image: LQwJ7VV.png]
Reply
#7
For now, I could offer you only core changes. But they could get overwritten automatically at next version update.

That's why core edits are suboptimal.
Reply
#8
OK, but you can use plugin called "Patches" for easier core files modifications...
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)