1
risto
Time limit on edit post in forum.
  • 2004/4/7 23:43

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


Hi. I’m just wondering if there is a way to limit time for editing a post? When people now are writing something in a topic, they can always go back and edit there original post. There should be a time limit to it. Is it possible?

2
risto
Re: Time limit on edit post in forum.
  • 2004/4/8 9:30

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


Someone? please. I realy need to "fix" this.

3
risto
Re: Time limit on edit post in forum.
  • 2004/4/9 19:24

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


please?

4
kahumbu
Re: Time limit on edit post in forum.
  • 2004/4/9 20:00

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


Hi risto,

I'm sorry but I don't think that feature is available in the current newbb.

Check out this link for updates on the new version of newbb:
Report about the NewBB

5
Dave_L
Re: Time limit on edit post in forum.
  • 2004/4/9 23:32

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


If you're in a hurry, here's a quick & dirty hack that allows only admins and mods to edit a post after a specified time limit.

modules/newbb/edit.php [Xoops 2.0.6]

Before:

$nohtml $forumpost->nohtml();


Insert:

if (time() - $forumpost->posttime() > 3600 and !($xoopsUser and ($xoopsUser->isAdmin($xoopsModule->mid()) or is_moderator($forum$xoopsUser->uid())))) {
   
redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum"2'time limit for editing post reached');
}


I used 3600 seconds (one hour) as the time limit, but that could be whatever you want.

It's probably possible to bypass this check by "form spoofing". If you're concerned about that, a similar check would need to be added in the place that processes the form submission, which I think is post.php.

6
risto
Re: Time limit on edit post in forum.
  • 2004/4/10 10:43

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


thanks a million! Ill use thisone until it comes up! sorry for nagging! Just need it befor monday!

7
risto
Re: Time limit on edit post in forum.
  • 2004/4/11 19:33

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


Is it posible to do this with comments too?

Login

Who's Online

109 user(s) are online (68 user(s) are browsing Support Forums)


Members: 0


Guests: 109


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits