Works great, although moderators for a forum should be able to use it too not just admins and the owner of the post.
PHP Code:
// Quick Edit hack
if (($bbuserinfo['usergroupid'] == 6) or ($post['userid'] == $bbuserinfo['userid']))
{
$edittext = htmlspecialchars_uni($post['pagetext']);
eval('$quickedit = "' . fetch_template('showthread_quickedit') . '";');
}
else
{
$edittext="";
$quickedit="";
}
// End Quick Edit hack
Should be
PHP Code:
// Quick Edit hack
if (($bbuserinfo['usergroupid'] == 6) or (can_moderate($foruminfo['forumid'])) or ($post['userid'] == $bbuserinfo['userid']))
{
$edittext = htmlspecialchars_uni($post['pagetext']);
eval('$quickedit = "' . fetch_template('showthread_quickedit') . '";');
}
else
{
$edittext="";
$quickedit="";
}
// End Quick Edit hack