5
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.