V: 2.0.19
In the momento, i dont want update version, thanks.
Hello. I have a question. In administration, in the messages section, i have configured so that messages cannot be modified after 1 minute. So far everything is correct, once the minute passes, the option to modify/delete the message is hidden.
The problem is that it is still possible to modify the message, i am referring to the person who published it who is a regular user. That is, the url to modify the message is:
mifooooooooooro.com/index.php?action=post;msg=1006;topic=201.0, if the user accesses it, they can still modify the message, even if the option is already hidden. An additional 1-2 minutes must pass until the "you cannot modify the message" error occurs.
In short, if ii configure the forum so that the messages cannot be modified in 1 minute, after the minute the option is hidden, but it is still possible to modify it, until 1-2 minutes pass (I have not calculated it exactly), and the message jumps. fatal_error that it is not possible to modify the message.
That additional interval of 1-2 minutes, how can I modify it? Because if i configure it for 10 minutes, for example, it is the 10 minutes that the buttons are hidden, but still 1-2 minutes it is possible to modify it by the url.
Thank you.
Sounds like your system has some sort of cache
Quote from: Kindred on March 25, 2024, 07:32:14 PMSounds like your system has some sort of cache
Speak about cache, one question, can i delete all files in the cache carpet? If i do this, the files generate again
@Aleksi "Lex" Kilpinen
Do you know about why this?
// Give an extra five minutes over the disable time threshold, so they can type - assuming the post is public.
if ($row['approved'] && !empty($modSettings['edit_disable_time']) && $row['poster_time'] + ($modSettings['edit_disable_time'] + 5) * 60 < time())
fatal_lang_error('modify_post_time_passed', false);Why 5 minutes extra?
Quote from: Jotade29 on March 25, 2024, 08:41:53 PM@Aleksi "Lex" Kilpinen
Do you know about why this?
// Give an extra five minutes over the disable time threshold, so they can type - assuming the post is public.
if ($row['approved'] && !empty($modSettings['edit_disable_time']) && $row['poster_time'] + ($modSettings['edit_disable_time'] + 5) * 60 < time())
fatal_lang_error('modify_post_time_passed', false);
Why 5 minutes extra?
I would guess to finish typing the changes and submit them...
Yup, in case the author made a mistake which is quite common.
I never make a m1stake ....