• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.
Resource icon

HowTo: Comments Evolved for WordPress and XenScripts

Step 1: Open the frontend.php file found in the directory /wp-content/plugins/gplus-comments/includes/lib

Step 2: Replace the function comments_evolved_get_wordpress_count [lines 29 - 32]

PHP:
function comments_evolved_get_wordpress_count() {
  // global $post, $comments, $wp_query, $comments_by_type;
  // return count($wp_query->comments_by_type['comment']);
  	global $XF;

	if( $XF->useXenForoCommentHandler() ) {
		return $XF->getCommentNumbersFromCache($post_id);
	}
	else {
		return $n;
	}

}

This allows the comment count to include comments made in XenForo and in WordPress.
Author
LPH
Views
507
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from LPH

Top