Merhaba Arkadaşlar
İmzamdaki wordpress sitemde yazılara yorum yazarken aşağıdaki hata mesajını alıyorum.
Error: Please press the back button and fill the required field for spam protection.
Çok fazla anlamıyorum acaba nasıl düzeltebilirim bu sorunu ???
................
....
Yorum Yazarken Bu Hatayla Karşılaşıyorum
9
●572
- 23-11-2010, 20:13:47Üyeliği durdurulduSpam korumasıyla ilgili alanı doldurunuz diyor ancak spam korumanız gözükmüyor. comment.php dosyasının editlenmesi gerekiyor. default temada comment.php ile kullandığınız temada ki ni açınız. div kodlarına dokunmadan editmeleye çalışınız. Zaten comment.php nizde o hata metnini görürsünüz o hata metninin orayı düzeltmeniz yada silmeniz halinde sorun kalkar. Yok ben yapamam diyorsanız buraya comment.php inizi copy/yapıştırınMyKaBuS adlı üyeden alıntı: mesajı görüntüle
- 23-11-2010, 22:37:45KonyaShell Arkadaşım Öncelikle İlgilendiğin İçin Çok Teşekkür Ederim. Comment.php kodları aşağıdadır
<?php // Do not delete these lines
// thanks to Jeremy at http://clarktech.no-ip.com for the tips
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (function_exists('post_password_required'))
{
if ( post_password_required() )
{
echo '<p class="nocomments">This post is password protected. Enter the password to view comments.</p>';
return;
}
} else
{
if (!empty($post->post_password))
{ // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password)
{ // and it doesn't match the cookie ?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<?php return;
}
}
}
if (function_exists('wp_list_comments')):
//WP 2.7 Comment Loop
if ( have_comments() ) : ?>
<div id="commentsbox">
<?php if ( ! empty($comments_by_type['comment']) ) :
$count = count($comments_by_type['comment']);
($count !== 1) ? $txt = "Yorum Yapılmış : " : $txt = "Yorum Yapılmış :"; ?>
<h3><?php echo $count . " " . $txt; ?></h3>
<ul class="commentlist">
<?php wp_list_comments('type=comment&callback=mytheme_co mment'); ?>
</ul>
<?php endif; ?>
<div id="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
<div class="cleared"></div>
</div>
<?php if ( ! empty($comments_by_type['pings']) ) :
$countp = count($comments_by_type['pings']);
($countp !== 1) ? $txtp = "Geri İzlenimler:" : $txtp = "Geri İzlenimler:"; ?>
<h3 id="trackbacktitle"><?php echo $countp . " " . $txtp; ?></h3>
<ul class="trackback">
<?php wp_list_comments('type=pings&callback=mytheme_ping '); ?>
</ul>
<?php endif; ?>
</div><!-- /yorum kutu -->
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) :
// If comments are open, but there are no comments.
else : ?>
<?php endif;
endif;
else:
//WP 2.6 and older Comment Loop
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<div id="commentsbox">
<?php if ($comments) : ?>
<h3 id="comments"><?php the_title(); ?> yazısına <?php comments_number('No comments filed', 'One comment', '% comments' );?> ”:</h3>
<ul class="commentlist">
<?php foreach ( $comments as $comment ) : ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php
if (function_exists('get_avatar')) {
echo get_avatar( $comment, 50);
} else {
//alternate gravatar code for < 2.5
$grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=
" . md5($email) . "&default=" . urlencode($default) . "&size=" . $size;
echo "<img src='$grav_url' height='50px' width='50px' />";
}
?>
<div class="commentbody">
<div class="author"><?php comment_author_link() ?></div>
<?php if ($comment->comment_approved == '0') : ?>
<em>(Yorumunuz onaylandıktan sonra gözükecektir..)</em>
<?php endif; ?>
<div class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('j F Y') ?> on <?php comment_time() ?></a> <?php edit_comment_link('düzenle',' ',''); ?></div>
<?php comment_text() ?>
</div>
<div class="cleared"></div>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<br/></div>
<?php endif; // 2.6 and older Comment Loop end ?>
<?php if ( comments_open() ) : ?><?php else : ?><p class="nocomments">Comments for this entry are closed.</p><?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<div class="cleared"></div>
<div id="respond">
<h3>Görüşleriniz Değerlidir..</h3>
<?php if (function_exists('cancel_comment_reply_link')) {
//2.7 comment loop code ?>
<div id="cancel-comment-reply">
<small><?php cancel_comment_reply_link('(... Or click here to cancel reply.)');?></small>
</div>
<?php } ?>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p></div>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<?php
if (function_exists('wp_logout_url')) {
$logout_link = wp_logout_url();
} else {
$logout_link = get_option('siteurl') . '/wp-login.php?action=logout';
}
?>
<p style="font-size:.75em;">(Kullanıcı: <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.
<a href="<?php echo $logout_link; ?>" title="Log out"><?php _e('Kapat »'); ?></a>)</p>
<?php else : ?>
<p><label>İsim (zorunlu)</label>
<input type="text" name="author" id="author" size="22" tabindex="1" /></p>
<p><label>Email (zorunlu)</label>
<input type="text" name="email" id="email" size="22" tabindex="2" /></p>
<p><label>Website (varsa)</label>
<input type="text" name="url" id="url" size="22" tabindex="3" /></p>
<?php endif; ?>
<?php if (function_exists('cancel_comment_reply_link')) {
//2.7 comment loop code ?>
<p><?php comment_id_fields(); ?></p>
<?php } ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> </small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4" onfocus="if(this.value=='Yorumunuz..')this.value=' ';" onblur="if(this.value=='')this.value='Yorumunuz..' ;" onkeypress="isLoaded=0">Yorumunuz..</textarea></p>
<p>
<input name="submit" type="submit" id="submit" class="submitbutton" tabindex="5" value="Yorumu Gönder" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<div class="cleared"></div>
<?php do_action('comment_form', $post->ID); ?>
</form>
</div><!-- /yanit -->
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?> - 24-11-2010, 00:44:49Üyeliği durdurulduAşağıda ki kodları comment.php e yazıp ftp'ne bi atıp deneyiniz. Orjinal comment.php'nin yedeğini almayı unutmayınız.
<div id="commentsbox"> <?php if ( ! empty($comments_by_type['comment']) ) : $count = count($comments_by_type['comment']); ($count !== 1) ? $txt = "Yorum Yapılmış : " : $txt = "Yorum Yapılmış :"; ?> <h3><?php echo $count . " " . $txt; ?></h3> <ul class="commentlist"> <?php wp_list_comments('type=comment&callback=mytheme_comment'); ?> </ul> <?php endif; ?> <div id="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> <div class="cleared"></div> </div> <?php if ( ! empty($comments_by_type['pings']) ) : $countp = count($comments_by_type['pings']); ($countp !== 1) ? $txtp = "Geri İzlenimler:" : $txtp = "Geri İzlenimler:"; ?> <h3 id="trackbacktitle"><?php echo $countp . " " . $txtp; ?></h3> <ul class="trackback"> <?php wp_list_comments('type=pings&callback=mytheme_ping'); ?> </ul> <?php endif; ?> </div><!-- /yorum kutu --> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : // If comments are open, but there are no comments. else : ?> <?php endif; endif; else: //WP 2.6 and older Comment Loop /* This variable is for alternating comment background */ $oddcomment = 'alt'; ?> <!-- You can start editing here. --> <div id="commentsbox"> <?php if ($comments) : ?> <h3 id="comments"><?php the_title(); ?> yazısına <?php comments_number('No comments filed', 'One comment', '% comments' );?> ”:</h3> <ul class="commentlist"> <?php foreach ( $comments as $comment ) : ?> <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> <?php if (function_exists('get_avatar')) { echo get_avatar( $comment, 50); } else { //alternate gravatar code for < 2.5 $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id= " . md5($email) . "&default=" . urlencode($default) . "&size=" . $size; echo "<img src='$grav_url' height='50px' width='50px' />"; } ?> <div class="commentbody"> <div class="author"><?php comment_author_link() ?></div> <?php if ($comment->comment_approved == '0') : ?> <em>(Yorumunuz onaylandıktan sonra gözükecektir..)</em> <?php endif; ?> <div class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('j F Y') ?> on <?php comment_time() ?></a> <?php edit_comment_link('düzenle',' ',''); ?></div> <?php comment_text() ?> </div> <div class="cleared"></div> </li> <?php /* Changes every other comment to a different class */ if ('alt' == $oddcomment) $oddcomment = ''; else $oddcomment = 'alt'; ?> <?php endforeach; /* end for each comment */ ?> </ol> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> <br/></div> <?php endif; // 2.6 and older Comment Loop end ?> <?php if ( comments_open() ) : ?><?php else : ?><p class="nocomments">Comments for this entry are closed.</p><?php endif; ?> <?php if ('open' == $post->comment_status) : ?> <div class="cleared"></div> <div id="respond"> <h3>Görüşleriniz Değerlidir..</h3> <?php if (function_exists('cancel_comment_reply_link')) { //2.7 comment loop code ?> <div id="cancel-comment-reply"> <small><?php cancel_comment_reply_link('(... Or click here to cancel reply.)');?></small> </div> <?php } ?> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p></div> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <?php if (function_exists('wp_logout_url')) { $logout_link = wp_logout_url(); } else { $logout_link = get_option('siteurl') . '/wp-login.php?action=logout'; } ?> <p style="font-size:.75em;">(Kullanıcı: <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo $logout_link; ?>" title="Log out"><?php _e('Kapat »'); ?></a>)</p> <?php else : ?> <p><label>İsim (zorunlu)</label> <input type="text" name="author" id="author" size="22" tabindex="1" /></p> <p><label>Email (zorunlu)</label> <input type="text" name="email" id="email" size="22" tabindex="2" /></p> <p><label>Website (varsa)</label> <input type="text" name="url" id="url" size="22" tabindex="3" /></p> <?php endif; ?> <?php if (function_exists('cancel_comment_reply_link')) { //2.7 comment loop code ?> <p><?php comment_id_fields(); ?></p> <?php } ?> <!--<p><small><strong>XHTML:</strong> You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> </small></p>--> <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4" onfocus="if(this.value=='Yorumunuz..')this.value='';" onblur="if(this.value=='')this.value='Yorumunuz..';" onkeypress="isLoaded=0">Yorumunuz..</textarea></p> <p> <input name="submit" type="submit" id="submit" class="submitbutton" tabindex="5" value="Yorumu Gönder" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <div class="cleared"></div> <?php do_action('comment_form', $post->ID); ?> </form> </div><!-- /yanit --> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> - 30-11-2010, 20:48:27sanırım burdan çözebilirsiniz sorunu.
http://www.wordpress-tr.com/forum/topic/7536 - 01-12-2010, 01:24:06Arkadaşım Teşekkür Ederim Fakat Yine Sorunum Çözülmedi..zanqi adlı üyeden alıntı: mesajı görüntüle
Verdiğin Linkteki Eklentiyi Yaptım Spam Korucusu Oluyor Fakat Yorum Ekleyince Aynı Sorunu Veriyor...