infinite loop on page with comments after changing comments.php and header.php

The article you’re using is quite old, from ~2009. There are much better cleaner ways of doing commenting. As a guide, follow this: http://ottopress.com/2008/wordpress-2-7-comments-enhancements/ This is the definitive guide to implementing Comments post v2.7, and Otto is widely respected in the community. Firstly, your comments code uses have_posts() to check if there are comments, instead … Read more

Empty comments field or

The easiest way to achieve this is to use jQuery on the client side to handle this validation. There are a number of ways you can achieve this, though one of the easiest would be to use a ready made solution of which one can be found HERE You’ll need to download the plugin file … Read more

Modify links in user comments

To replace nofollow with nofollow external _blank Put this code in your theme’s functions.php file to replace text as required. function wpse_60668_relnofollow($text) { $return = str_replace(‘nofollow’, ‘external nofollow _blank’, $text); return $return; } add_filter(‘get_comment_author_link’, ‘wpse_60668_relnofollow’); //this’ll change author link add_filter(‘comment_text’, ‘wpse_60668_relnofollow’); //This’ll change the content

Can I create a new comment type?

Taking a quick look at comments.php, I can say – using custom comment type is so far legal, however I didn’t played with this yet but you can, and post back with your results if you found any illegal stuff in this. I found on codex the get_comments() function is accepting comment type as argument, … Read more

how should the comment form really work?

If you want to redirect the user to somewhere else after they submit a comment, then all you have to do is include a hidden input in your comment form with the name of “redirect_to” and the value of the URL you want to redirect them to. The lines of code you posted show that … Read more

ask and edit an extra comment field

The get_comment_ID function was not working. So use following code in location_meta_call function function location_meta_call(){ $location = get_comment_meta($_GET[“c”],’location’, true); } add_filter(‘comment_save_pre’,’location_save’); function location_save($comment_content){ global $wpdb; $id = $_POST[‘comment_ID’]; $text = $_POST[‘location_meta_box_text’]; update_comment_meta($id , ‘location’, $text); return $comment_content; }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)