Advertisement:

Author Topic: Set forum to let users change own post content, but not when there is a reply  (Read 468 times)

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 314
  • currently reading; '$smcFunc'
I would like to know how to set a SimpleMachines forum to let the user edit their post content for infinite time but not when someone else (or the users self), has posted a reply.

I believe this is possible but I wasn't able to figure it out.

Member permissions are set to Admin -> Boards and Topics -> Time in seconds how long a user may change topic 180 seconds. But this setting doesn't matter because I surpressed the forums notification of changed posts.

Member permissions are also set to Admin -> Boards an Topics -> Maximum time a post may be editted 0 because that is what I want.

Member permissions are set to Admin -> Members -> Permissions -> Forum members -> Standard board permissions -> Edit posts -> Own posts checked.

I think I'm overlooking something, please guide me.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,965
this is not available by default.

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 314
  • currently reading; '$smcFunc'
Okay. Could you please elaborate?
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,195
    • StoryBB/StoryBB on GitHub
What's to elaborate? This is not something SMF can do out of the box and the only way to do it is to change the code which is more complex than it sounds.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,050
  • Gender: Male
    • Macedonian electronics forum
I would like to know how to set a SimpleMachines forum to let the user edit their post content for infinite time but not when someone else (or the users self), has posted a reply.

You mean like, the last post in a topic can be edited by the user at any time, but, if a post is made after that by the user that last posted in the topic or any other user, all of the previous posts in the thread can't be edited by the users that made those posts?
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 314
  • currently reading; '$smcFunc'
@Arantor, you are right it is just me, I would help where I can and product support are two different things. So my expectation wasn't justified.

Yeah GigaWatt, you are right, only the last post may be editted by the owner.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,050
  • Gender: Male
    • Macedonian electronics forum
Hmmm... that's a tough one. I presume the script would have to first search for the last post in the topic (this shouldn't be too hard, since all posts are sorted by date and post time by default) and then, a special permission set triggered on the last post in the topic.

I'm not a coder, I'm just thinking out loud... but I think that I'm mostly right in my assumptions about how this should be handled ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 314
  • currently reading; '$smcFunc'
I must say the source is quite readable. I do have customization, for example I was asked to use the postimage plugin also inside a pm. But with spring and summer, I'm not sure when I take a dive.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,655
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Is this a paid request?