News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Modify the message after the minutes have passed

Started by Jotade29, March 25, 2024, 04:06:57 PM

Previous topic - Next topic

Jotade29

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.
Quote from: Diego Andrés on August 12, 2023, 02:20:18 AMI'm afraid convincing Jotade to upgrade to SMF 2.1 will require bigger effort than your work sanitizing Unicode characters  :laugh:

Kindred

Sounds like your system has some sort of cache
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Jotade29

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
Quote from: Diego Andrés on August 12, 2023, 02:20:18 AMI'm afraid convincing Jotade to upgrade to SMF 2.1 will require bigger effort than your work sanitizing Unicode characters  :laugh:

Jotade29

#3
@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: Diego Andrés on August 12, 2023, 02:20:18 AMI'm afraid convincing Jotade to upgrade to SMF 2.1 will require bigger effort than your work sanitizing Unicode characters  :laugh:

@rjen

Quote from: Jotade29 on March 25, 2024, 08:41:53 PM@Aleksi &#034;Lex&#034; 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...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Diego Andrés

Yup, in case the author made a mistake which is quite common.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

My pet rock is not feeling well. I think it's stoned.

Advertisement: