diddy1
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Insert/edit image or HTML link popup window never the right sizeOR you can just fix the problem all together by following this https://www.seonewsblog.com/how-to-fix-wordpresss-resizing-link-pop-up-in-firefox-20 tutorial. That should work to make it look like it was mean to look like. Just change those settings every time you switch to a different computer.
Thank you
Forum: Fixing WordPress
In reply to: “only post a new comment once every 15 seconds” problemHey guys this is from the k2 forum and it worked for me:
Try remove in comments-ajax.php:
// Simple flood-protection
if ( ! isset($comment_author_IP) )
$comment_author_IP = $_SERVER[‘REMOTE_ADDR’];
if ( ! isset($comment_date) )
$comment_date = current_time(‘mysql’);
if ( ! isset($comment_date_gmt) )
$comment_date_gmt = gmdate(‘Y-m-d H:i:s’, strtotime($comment_date) );
if ( ! isset($comment_approved) )
$comment_approved = 1;$comment_user_domain = apply_filters(‘pre_comment_user_domain’, gethostbyaddr($comment_author_IP) );
if ( $lasttime = $wpdb->get_var(“SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_author_IP = ‘$comment_author_IP’ OR comment_author_email = ‘$comment_author_email’ ORDER BY comment_date DESC LIMIT 1”) ) {
$time_lastcomment = mysql2date(‘U’, $lasttime);
$time_newcomment = mysql2date(‘U’, $comment_date_gmt);
if ( ($time_newcomment – $time_lastcomment) < 15 ) {
do_action(‘comment_flood_trigger’, $time_lastcomment, $time_newcomment);
fail(__(‘Sorry, you can only post a new comment once every 15 seconds. Slow down cowboy.’,’k2_domain’) );
}
}Though there should be a better way to solve this problem as someone may need their flood protection.
Thank You