Jump to content

Recommended Posts

I like the idea but I think that it is set way to low.. I just made a post and attempted to edit less then 5 minutes later but got the message that the time limit had passed. As I said I like the idea but would it be possible to extend that a little maybe 10 minutes or so?

Thanks,
Tom
Link to comment
https://forums.phpfreaks.com/topic/33663-time-limit-on-editing-posts/
Share on other sites

  • 1 month later...
Hi,

I think there is a way to do it. Just get the time of entering the new data and keep it in session. When user tries to edit it....compare the current time with the session.....when the time diff is more than 2 minutes allow the user to edit....else just echo the user that the data is not ready and redirect the user back to the original page. hope it works.

[quote author=ananda link=topic=121853.msg527341#msg527341 date=1171304649]
Hi,

I think there is a way to do it. Just get the time of entering the new data and keep it in session. When user tries to edit it....compare the current time with the session.....when the time diff is more than 2 minutes allow the user to edit....else just echo the user that the data is not ready and redirect the user back to the original page. hope it works.
[/quote]

Uhm... isn't that how it's done already? :-\
[quote author=ananda link=topic=121853.msg527341#msg527341 date=1171304649]
I think there is a way to do it. Just get the time of entering the new data and keep it in session. When user tries to edit it....compare the current time with the session.....when the time diff is more than 2 minutes allow the user to edit....else just echo the user that the data is not ready and redirect the user back to the original page. hope it works.
[/quote]

There wasn't a question of how to do it.  We're not going to hack SMF to modify this feature.

Thread closed, this is a dead topic.
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.