чтоб не спамили запрети английские буквы в комментах вот мне парень хак
https://vk.com/life.intention
engine/ajax/addcomments.php
после $ajax_add = true;
if ( preg_match_all("/[a-z]/iu", $_POST['comments']) ) {
$tpl->result['content'] = "<script type=\"text/javascript\">\nvar form = document.getElementById('dle-comments-form');\n";
$tpl->result['content'] .= "\n jQuery('#dlereplypopup').remove(); jQuery('#dlefastreplycomments').remove(); \n";
$tpl->result['content'] .= "\n DLEalert('Запрещено использовать введенные вами символы...', '". $lang['add_comm']."');\n var timeval = new Date().getTime();\n";
$tpl->result['content'] .= "setTimeout(function (){jQuery('#dle-ajax-comments').html('')}, 4000);</script>";
echo $tpl->result['content'];
die();
}
если у тебя кодировка windows-1251
то вот это
if ( preg_match_all("/[a-z]/i", $_POST['comments']) ) {
$tpl->result['content'] = "<script type=\"text/javascript\">\nvar form = document.getElementById('dle-comments-form');\n";
$tpl->result['content'] .= "\n jQuery('#dlereplypopup').remove(); jQuery('#dlefastreplycomments').remove(); \n";
$tpl->result['content'] .= "\n DLEalert('Запрещено использовать введенные вами символы...', '". $lang['add_comm']."');\n var timeval = new Date().getTime();\n";
$tpl->result['content'] .= "setTimeout(function (){jQuery('#dle-ajax-comments').html('')}, 4000);</script>";
echo $tpl->result['content'];
die();
}
каждый день удалял спамить заебали,делают так ссылку оставляют на твитер а с твитера на платный плеер, как запретил английские буквы живу спокойно. минус не получится цитировать комменты,смайлы использовать