https://www.icyphoenix.com/viewtopic.php?f=35&t=6105&p=41391#p41391
-----------------------------------
Mighty Gorgon
Sat 18 Jul, 2009 12:15

Re: How To Give Permisions To Moderators To Edit Post Time?
-----------------------------------
It is not a bug... changing post time it is something which could create problems in the DB... I don't want moderators to mess up with that.

Anyway if you want to allow moderators, you need to edit two files: viewtopic.php and edit_post_details.php.


FIND in viewtopic.php:
[codeblock]$post_edit_string = ($userdata['user_level'] == ADMIN) ? ('<a href="#" onclick="post_time_edit(\'' . $post_edit_link . '\'); return false;" style="text-decoration: none;" title="' . $lang['Edit_post_time_xs'] . '">' . $lang['Edit_post_time_xs'] . '</a>') : '';[/codeblock]

REPLACE WITH:
[codeblock]$post_edit_string = (($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD)) ? ('<a href="#" onclick="post_time_edit(\'' . $post_edit_link . '\'); return false;" style="text-decoration: none;" title="' . $lang['Edit_post_time_xs'] . '">' . $lang['Edit_post_time_xs'] . '</a>') : '';[/codeblock]

FIND in edit_post_details.php:
[codeblock]if ($userdata['user_level'] != ADMIN)
{
	message_die(GENERAL_MESSAGE, $lang['Not_Authorized']);
}[/codeblock]

REPLACE WITH:
[codeblock]if (($userdata['user_level'] != ADMIN) || ($userdata['user_level'] != MOD))
{
	message_die(GENERAL_MESSAGE, $lang['Not_Authorized']);
}[/codeblock]


