2009-09-24, 05:13 PM
Is there some kind of plugin or hack to allow author to close his thread?
I thought that it would be possible if we could give moderation rights to authors as admins and moders have. I tried to find a piece of code in showthread.php that "gives" moderation tools to admins and moderators.
Is it right part?
And how to do same for author?
I thought that it would be possible if we could give moderation rights to authors as admins and moders have. I tried to find a piece of code in showthread.php that "gives" moderation tools to admins and moderators.
Is it right part?
if($ismod == true)
{
if($pollbox)
{
$adminpolloptions = "<option value=\"deletepoll\">".$lang->delete_poll."</option>";
}
if($thread['visible'] != 1)
{
$approveunapprovethread = "<option value=\"approvethread\">".$lang->approve_thread."</option>";
}
else
{
$approveunapprovethread = "<option value=\"unapprovethread\">".$lang->unapprove_thread."</option>";
}
if($thread['closed'] == 1)
{
$closelinkch = ' checked="checked"';
}
if($thread['sticky'])
{
$stickch = ' checked="checked"';
}
$closeoption = "<br /><label><input type=\"checkbox\" class=\"checkbox\" name=\"modoptions[closethread]\" value=\"1\"{$closelinkch} /> <strong>".$lang->close_thread."</strong></label>";
$closeoption .= "<br /><label><input type=\"checkbox\" class=\"checkbox\" name=\"modoptions[stickthread]\" value=\"1\"{$stickch} /> <strong>".$lang->stick_thread."</strong></label>";
$inlinecount = "0";
$inlinecookie = "inlinemod_thread".$tid;
$plugins->run_hooks("showthread_ismod");
}
else
{
$modoptions = " ";
$inlinemod = "";
}
And how to do same for author?