News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Maximun edit time

Started by dschwab9, September 13, 2003, 06:41:52 AM

Previous topic - Next topic

Grudge

Quote from: helenbpd on November 06, 2004, 02:11:46 PM
Quote from: Kender on November 05, 2004, 02:54:55 AM
why not create a usergroup for people who abuse edit
have permissions for that usergroup restricted to no edit no delete
when someone does something you dont like, throw them in that usergroup

The problem with that is that they'd get a public user-group title in their profile, no? (like "global moderator" etc) Seems kind of embarassing to advertise someone's restricted status (say, "restricted buffoon") to the other members.

H
Not at all. If you add them as a "additional group", it won't be displayed.
I'm only a half geek really...

helenbpd


gentleman

Maximum Edit Time MUST be implemented.
I stress on MUST.

I used to run a tourism related board with pictures posted all around.
Then one member turned sour and proceeded to delete ALL his posts.

raedzaro

I did add it but nothing changed

dschwab9

This is a standard feature in 1.1 ;D

raedzaro


Ben_S

You will have to wait till 1.1 is released, 1.0.x is feature frozen and doesn't have it.
Liverpool FC Forum with 14 million+ posts.

szinski

Quote from: [Unknown] on November 03, 2004, 09:58:18 PM
Find, Sources/Post.php:
// Make sure the user isn't spamming the board.
if (!isset($_REQUEST['msg']))
spamProtection('spam');


Add after:
if (!empty($modSettings['edit_wait_time']) && $row['posterTime'] + $modSettings['edit_wait_time'] * 60 < time() && !allowedTo('moderate_board'))
fatal_error('You\'re not allowed to edit your posts anymore!', false);


Find, Sources/Display.php:
'can_modify' => allowedTo('modify_any') || (allowedTo('modify_replies') && $context['user']['started']) || (allowedTo('modify_own') && $message['ID_MEMBER'] == $ID_MEMBER),
'can_remove' => allowedTo('remove_any') || (allowedTo('remove_replies') && $context['user']['started']) || (allowedTo('remove_own') && $message['ID_MEMBER'] == $ID_MEMBER),


Replace:
'can_modify' => allowedTo('modify_any') || (allowedTo('modify_replies') && $context['user']['started']) || (allowedTo('modify_own') && $message['ID_MEMBER'] == $ID_MEMBER && (empty($modSettings['edit_disable_time']) || $message['posterTime'] + $modSettings['edit_wait_time'] * 60 > time())),
'can_remove' => allowedTo('remove_any') || (allowedTo('remove_replies') && $context['user']['started']) || (allowedTo('remove_own') && $message['ID_MEMBER'] == $ID_MEMBER),


That will change the meaning of the setting for you.

-[Unknown]

Will this code work with SMF 1.0.5? I tried adding it and it would not let me post a new message (saying that I could not edit my posts).

Thanks!

Steve

JustJa

I have RC1
looked everywhere and can´t find this option on the cp  ::)

xenovanis

Admin -> Post and Topics -> Post Settings -> Maximum time after posting to allow edit
"Insanity: doing the same thing over and over again and expecting different results."

JustJa


Wrightwood

Quote from: xenovanis on October 21, 2005, 10:27:35 AM
Admin -> Post and Topics -> Post Settings -> Maximum time after posting to allow edit

What am I missing. We've got 1.0.5. and can't find that option.
There is no Post and Topics option.

dschwab9

This feature is only available in 1.1.

Wrightwood

Thanks dschwab9 that's what I needed to know !

szinski

Quote from: xenovanis on October 21, 2005, 10:27:35 AM
Admin -> Post and Topics -> Post Settings -> Maximum time after posting to allow edit

Does this setting also pertain to the ability to DELETE a post as well?

Advertisement: