Custom Search

Thursday, March 17, 2011

How to Allow Duplicate Comments in Wordpress.org

How to disable Duplicate Comment filter. when a comment is posted second time wordpress shows a error "Duplicate comment detected; it looks as though you’ve already said that!". How to remove this ??

There is a simple trick to do it. go to "/public_html/wp-includes" through ftp and locate comment.php file. Right click view/edit,

find


// Simple duplicate check
// expected_slashed ($comment_post_ID, $comment_author, $comment_author_email, $comment_content)
// $dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND comment_approved != 'trash' AND ( comment_author = '$comment_author' ";
// if ( $comment_author_email )
// $dupe .= "OR comment_author_email = '$comment_author_email' ";
// $dupe .= ") AND comment_content = '$comment_content' LIMIT 1";
// if ( $wpdb->get_var($dupe) ) {
// if ( defined('DOING_AJAX') )
// die( __('Duplicate comment detected; it looks as though you’ve already said that!') );
//
// wp_die( __('Duplicate comment detected; it looks as though you’ve already said that!') );
// }

just delete and save it. that's it from now on you can post the same comment again and again.
read more "How to Allow Duplicate Comments in Wordpress.org"

Wednesday, October 6, 2010

Related Posts with Thumbnails Below Posts in Wordpress Thesis Theme

I have searched a lot for related posts with thumbnails below posts for wordpress thesis but couldn't find. later I did it with 3 plugins.

wordpress 3.0.0 with thesis 1.8 version.

Step 1 :
Download These 3 Plugins

Advanced Random Post

Add Widgets to Page

Shantz WordPress Prefix Suffix

Step 2 :

Upload and Install 3 plugins

Step 3 :

create new page. just type [addw2p name="Related Posts"] and publish. open page.

Step 4 :

go to widgets panel.
there you will see extra side bar with name addwp2-Related Posts.



you will also see Advanced Random Posts just beside it.
Drag Advanced Random Posts in to addwp2-Related Posts.
customize it. give thumbnails size to 70 & 80. check get first image of post & get first attached image of post. check get posts from current category.
just check the pic below and do as it is.



Step 5 :

under settings click Shantz WordPress Prefix Suffix. paste [addw2p name="Related Posts"] in Add the following text after the posts (Suffix). check only Add suffix to pages.



that's it you will now see all related posts below your posts.
read more "Related Posts with Thumbnails Below Posts in Wordpress Thesis Theme"