Yes, run that query in PHPMyAdmin or something similar.rantbot wrote:What is this?
#-----[ SQL ]------------------------------------------
#
INSERT INTO phpbb_config VALUES ('post_edit_time_limit', '4');
#
#-----[ OPEN ]-----------------------------------------------------------------
Is it something I have to add to the database?
I have phpMyAdmin but haven't the slightest idea how to do this. Is there a discussion of this or a tutorial somewhere? There's a tutorial of sorts in the Mods in Development forum, but it's locked, the images are gone, and the links are dead, so not much help there.dellsystem wrote:Yes, run that query in PHPMyAdmin or something similar.
In PhpMyAdmin click on your database so that you can see its tables, then in the left pane you should see 5 small images near the top of the pane - the middle one is a SQL Query button. Click it, copy and paste the query code into that box, and click run or whatever the button says (should be intuitive)rantbot wrote:I have phpMyAdmin but haven't the slightest idea how to do this. Is there a discussion of this or a tutorial somewhere? There's a tutorial of sorts in the Mods in Development forum, but it's locked, the images are gone, and the links are dead, so not much help there.dellsystem wrote:Yes, run that query in PHPMyAdmin or something similar.
I think that can be done with just a little coding on your part - for example, adding the red part in the linekyle1745 wrote:It would be nice if this mod would offer a selection on which forums it applied to.
You're right - try this: (posting.php)kyle1745 wrote:I tested this on my test site and its not enough. As the user can still not see the "edit" button. I would guess something would also need changed in viewtopic.php.
posting.php line:Sorry, but you can only edit your posts for 1 hours.
Click Here to return to the topic
Code: Select all
if ( $mode == 'editpost' && !$is_auth['auth_mod'] && $form_id != 10 )
Code: Select all
if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] && (!$edit_time_expired || $forum_id = 10 )) || $is_auth['auth_mod'] )
You forgot a u inkyle1745 wrote:viewtopic.php line:Code: Select all
if ( $mode == 'editpost' && !$is_auth['auth_mod'] && $form_id != 10 )
Code: Select all
if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] && (!$edit_time_expired || $forum_id = 10 )) || $is_auth['auth_mod'] )
Code: Select all
if ( $mode == 'editpost' && !$is_auth['auth_mod'] && $form_id != 10 )