How to give permisions to moderators to edit post time?
In lasts version moderators could edit post time, but since I upgrade (I don't really know which version) they cannot edit post time.
Thanks in advance :) .
How To Give Permisions To Moderators To Edit Post Time?
Subject: Re: How To Give Permisions To Moderators To Edit Post Time?
sounds to me like a little bug....
let's wait MG
let's wait MG
Subject: 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:
REPLACE WITH:
FIND in edit_post_details.php:
REPLACE WITH:
Anyway if you want to allow moderators, you need to edit two files: viewtopic.php and edit_post_details.php.
FIND in viewtopic.php:
$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>') : '';
REPLACE WITH:
$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>') : '';
FIND in edit_post_details.php:
if ($userdata['user_level'] != ADMIN)
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorized']);
}
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorized']);
}
REPLACE WITH:
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.4068s (PHP: 4% SQL: 96%)
SQL queries: 29 - Debug Off - GZIP Enabled