I'm trying to make a plugin for this that will force mods and admins to enter a comment for warnings....but its not working! Whats wrong with this?
Code:
// Require Comment //
if ($vbulletin->GPC['comment']==0)
{
$message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
elseif ($vbulletin->GPC['comment']==1)
{
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');
}