Disable Post Editing After X Hours

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
7
70%
Very Good
0
No votes
Good
2
20%
Fair
1
10%
Poor
0
No votes
 
Total votes: 10

MarkTheDaemon
Former Team Member
Posts: 2770
Joined: Thu Oct 20, 2005 2:42 am
Location: United Kingdom
Name: Mark Barnes

Post by MarkTheDaemon »

MOD Updated to version 1.1.1
See first post for Download Link
ferrethouse2004
Registered User
Posts: 80
Joined: Mon Oct 04, 2004 2:28 am

Post by ferrethouse2004 »

Would it be possible to exclude moderators and admins from this?
Throckmorton
Registered User
Posts: 364
Joined: Tue Oct 07, 2003 7:07 pm
Location: Naperville, IL

Post by Throckmorton »

ferrethouse2004 wrote: Would it be possible to exclude moderators and admins from this?

That is the default operation. Mods and Admins are already excluded.
-Lance

Come visit The Illuminati-R-Us Forums for all your debunking needs.

I was touched by His Noodly Appendage
deejaybet
Registered User
Posts: 1814
Joined: Thu Dec 08, 2005 2:01 pm
Location: Derry, Northern Ireland
Contact:

Post by deejaybet »

if i change the 3600 in the posting.php to just 60... will that make the mod then operate in minutes rather than hours?
Throckmorton
Registered User
Posts: 364
Joined: Tue Oct 07, 2003 7:07 pm
Location: Naperville, IL

Post by Throckmorton »

Yup, sure will. You might also want to change hours to minutes in the two occurrences in language/lang_english/lang_main.php as well, so you don't get confused later.

Alternately, you could just use values less than "1" to represent shorter time limits. Setting the value to .5 would give you 30 minutes. Setting to .1 would be 6 minutes, and so on.
-Lance

Come visit The Illuminati-R-Us Forums for all your debunking needs.

I was touched by His Noodly Appendage
WarriorPrincess
Registered User
Posts: 163
Joined: Wed Feb 08, 2006 10:09 am
Location: Australia

Post by WarriorPrincess »

Can this be turned off at all??

I was hoping to install this mod... but what happens if I decide I want to allow editing later on??
Throckmorton
Registered User
Posts: 364
Joined: Tue Oct 07, 2003 7:07 pm
Location: Naperville, IL

Post by Throckmorton »

WarriorPrincess wrote: Can this be turned off at all??

I was hoping to install this mod... but what happens if I decide I want to allow editing later on??

Yes, it can. From the control panel:

"Set to zero to completely disable post editing. Set to -1 to disable the mod."
-Lance

Come visit The Illuminati-R-Us Forums for all your debunking needs.

I was touched by His Noodly Appendage
WarriorPrincess
Registered User
Posts: 163
Joined: Wed Feb 08, 2006 10:09 am
Location: Australia

Post by WarriorPrincess »

Throckmorton wrote:
WarriorPrincess wrote:Can this be turned off at all??

I was hoping to install this mod... but what happens if I decide I want to allow editing later on??

Yes, it can. From the control panel:

"Set to zero to completely disable post editing. Set to -1 to disable the mod."


thankyou very much! :D
techies02
Registered User
Posts: 15
Joined: Sat Dec 09, 2006 9:04 pm

Post by techies02 »

Hi,

Is there was way to do this for only one specific user?
We've got this one user on my board who will edit his posts/thread to say "delete me" after he finds the answer to a question he was asking or whatever. Makes it very annoying to try to maintain a clean board :x


Thanks!
Throckmorton
Registered User
Posts: 364
Joined: Tue Oct 07, 2003 7:07 pm
Location: Naperville, IL

Post by Throckmorton »

techies02 wrote: Is there was way to do this for only one specific user?

No, there isn't, sorry.

Do your other users regularly have a need to edit their posts after a while? Maybe you can just install the mod and see how it works for you. If you have problems with other users you can always disable (or uninstall) it later.
-Lance

Come visit The Illuminati-R-Us Forums for all your debunking needs.

I was touched by His Noodly Appendage
Fridge
Registered User
Posts: 307
Joined: Sat Nov 11, 2006 1:41 am
Location: Rotterdam, The Netherlands
Name: Martin
Contact:

Post by Fridge »

I've tried this mod...installed and updated sql.

It works but...i can't change the value in the ACP, it is actually complete empty.
When i try to fill here a value (let's say 2) and hit submit it says everything is fine, but when i check the value the little box is empty.

The part that works is that editing post is completely disabled for users :D

The sql action is default a value 4 and changing it in MyphpAdmin to -1 does not disable the mod so my guess that the solution is to be found in the reading of the database....only where exactly i don't know :?

Help ;)
Fridge
Registered User
Posts: 307
Joined: Sat Nov 11, 2006 1:41 am
Location: Rotterdam, The Netherlands
Name: Martin
Contact:

Post by Fridge »

problem solved!

The first time i performed the sql in phpMyAdmin, after deleting the line in phpbb_config and updated again through a update.php file the mod worked fine.
nfs
Registered User
Posts: 49
Joined: Mon May 16, 2005 10:04 pm

Post by nfs »

May I suggest that the time check in viewtopic.php to limit edits also be applied to limit deletion of posts?

Say, like this ...

Code: Select all

#
#-----[ FIND ]-----------------------------------------------------------------
#
                if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] )
#
#-----[ IN-LINE FIND ]-----------------------------------------------------------------
#
&& $is_auth['auth_delete']
#
#-----[ IN-LINE AFTER, ADD ]-----------------------------------------------------------------
#
 && !$edit_time_expired
mnp13
Registered User
Posts: 268
Joined: Fri Jan 06, 2006 11:48 pm
Contact:

Post by mnp13 »

this mod is conflicting with the "save as draft" mod. Once the hour has passed, people can not access their drafts. any ideas?
Michelle
vic2007
Registered User
Posts: 40
Joined: Fri May 04, 2007 1:32 am

Re: Disable Post Editing After X Hours

Post by vic2007 »

wow - the suggestion by nfs (2 posts above) works great to restrict post deletion time.

I spent last 3 hours looking for a mod to do this but couldnt find any - so finally gave this suggestion a try & it works just great.

Vic
Post Reply

Return to “[2.0.x] MOD Database Releases”