Chris M.
Forum Replies Created
-
So, this (the whole section):
function comments_evolved_get_gplus_count($url = "") { include_once COMMENTS_EVOLVED_LIB . '/simple_html_dom.php'; if(empty($url)){ $url = get_permalink(); } $link = 'https://apis.google.com/_/widget/render/commentcount?bsv&href=' . urlencode($url); $link_body = get_transient('ce_'.$link); if (false === $link_body) { $link_body = wp_remote_retrieve_body(wp_remote_get($link)); set_transient('ce_'.$link, $link_body, 60); } $link_body = str_get_html($link_body); if(!empty($link_body)) { $count_raw = $link_body->find('#widget_bounds > span', 0); } $count_arr = split(" ",$count_raw->plaintext); return trim($count_arr[0]); }Line 87 being:
$count_raw = $link_body->find('#widget_bounds > span', 0);Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Heads up on version 1.5.7 from Github (not sure about any other version):
I ran a plugin performance test with P3’s Plugin Performance Profiler and I found that Gplus Comments took a whopping 62.95% of the cake. This seriously needs to be addressed (as I’m sure you can appreciate). Look at the comparison with other plugins on the same site in question…
Plugin list:
===========================================
P3 (Plugin Performance Profiler) – 0.0152 sec – 0.87%
Akismet – 0.1018 sec – 5.81%
Digg Digg – 0.0911 sec – 5.20%
Genesis Enews Extended – 0.0093 sec – 0.53%
Genesis Simple Edits – 0.0093 sec – 0.53%
Google Analytics For WordPress – 0.0157 sec – 0.90%
Gplus Comments – 1.1033 sec – 62.95%
OptimizePress – 0.1083 sec – 6.18%
Polldaddy Polls & Ratings – 0.0408 sec – 2.33%
Share a Draft – 0.0079 sec – 0.45%
Simple Social Icons – 0.0037 sec – 0.21%
Simple Urls – 0.0068 sec – 0.39%
Subscribe To Comments – 0.0042 sec – 0.24%
Wordfence Security – 0.0868 sec – 4.95%
Wordpress Seo – 0.0676 sec – 3.86%
Worker – 0.0806 sec – 4.60%Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Not Greek at all! 🙂 I really appreciate you taking the time to reply, and for making the iterations and improvements that you are.
I will download and install 1.5.7 from Github now!
Thanks again!
Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Hey Brandon…
Was wondering if you ever found a way to improve the load times from 1.5.5? Looking forward to an update.
Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…I see that you rolled back this fix in 1.5.6.
For the record, I’m not sure I notice a difference in load time with 1.5.5, as some have reported.
Any solution to the comments count on the near horizon?
Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Looks like it works now! Comment counts are aggregated properly now!!! SO AWESOME man… I love it!
Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Will check for it now! Hope this thread helped you improve things.
Thanks again…Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Looking forward to the update… Thanks again Brandon!
Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Yes. PLEASE. Prefer to have it “just work” (rather than modifying obscure code in my theme). I think having aggregated comments “out-of-the-box” is the way to go and it would make this plugin even more attractive! Loving it so far…
Please let me know when that update is available, if you can…
Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Oh, LOL… I see. So I shouldn’t have put that in the
functions.phpthen.Alright, so now I should find where the
get_comments_number()is used in my theme and REPLACE it with this?echo comments_evolved_get_total_count() . " comments";Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…I’m sorry, but I tried to put that function in my
functions.phpand it crashed my site. Removed it, site is back.Also, where do I put that
echothat you just shared here?Would appreciate the full, working code for
functions.php. Thanks!Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…Thanks Brandon. You rock, as always…
So I can just use this function in my
functions.phpuntil you push out an update?Forum: Plugins
In reply to: [Comments Evolved for WordPress] Comment counts are incorrect…For example, this post has 6 WordPress comments, 2 Facebook comments, and 2 Google+ comments, but the aggregated count on the homepage and post is only “4”, which leads me to believe it is only calculating the Facebook and Google+ comments.
Link to: Sample Post
@pixelkicks: Couldn’t agree more! Would love to hear from the support team on this.