FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Disable editing after reply
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Disable editing after reply [message #23382 is a reply to message #23373] Mon, 14 March 2005 20:39 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
This is quite easy to implement. Something like this should do for a quick fix:

--- drawmsg.inc.t.old   2005-03-14 15:10:17.000000000 -0600
+++ drawmsg.inc.t       2005-03-14 15:38:51.000000000 -0600
@@ -374,7 +374,7 @@

                $delete_link = $perms & 32 ? '{TEMPLATE: dmsg_delete_link}' : '';

-               if (_uid && ($perms & 16 || (_uid == $obj->poster_id && (!$GLOBALS['EDIT_TIME_LIMIT'] || __request_timestamp__ - $obj->post_stamp < $GLOBALS['EDIT_TIME_LIMIT'] * 60)))) {
+               if (_uid && ($perms & 16 || (_uid == $obj->poster_id && (!$GLOBALS['EDIT_TIME_LIMIT'] || __request_timestamp__ - $obj->post_stamp < $GLOBALS['EDIT_TIME_LIMIT'] * 60) && $obj->id == $obj->last_post_id))) {
                        $edit_link = '{TEMPLATE: dmsg_edit_link}';
                } else {
                        $edit_link = '';


Nevertheless, one should add an option in the admin CP to switch this feature on or off.

Best regards.

Frank
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 2Ilia: Are there any variants for copyrights removal?
Next Topic: Profile image
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 21:37:36 GMT 2024

Total time taken to generate the page: 0.04380 seconds