Posted in: Newspaper
Apr 8, 2014 at 11:52 pm
Hello,
Since I exceeded 1000 followers on Google+, the tagDiv plugin Social Counter shows “1” followers.
http://screencast.com/t/MXLllxya2Qd
website : http://riddimtunup.com/
plugin version : 1.3
Regards
Apr 9, 2014 at 9:18 am
hi,
google may change something:
in the plugins directory-> td-social-counter-> td_social_api.php at line 119
change :
case 'googleplus':
$td_data = @$this->get_json("https://www.googleapis.com/plus/v1/people/$user_id?key=AIzaSyA1hsdPPNpkS3lvjohwLNkOnhgsJ9YCZWw");
if (!empty($td_data['plusOneCount'])) {
$buffy_array = (int) $td_data['plusOneCount'];
}else{
$td_data = @$this->get_url("https://plus.google.com/$user_id/posts");
$pattern = "/<span role=\"button\" class=\"d-s o5a\" tabindex=\"0\">(.*?)<\/span>/";
preg_match($pattern, $td_data, $matches);
if (!empty($matches[1])) {
$buffy_array = (int) $matches[1];
}
}
break;
with this:
case 'googleplus':
$td_data = @$this->get_json("https://www.googleapis.com/plus/v1/people/$user_id?key=AIzaSyA1hsdPPNpkS3lvjohwLNkOnhgsJ9YCZWw");
if (!empty($td_data['plusOneCount'])) {
$buffy_array = (int) $td_data['plusOneCount'];
}else{
$td_data = @$this->get_url("https://plus.google.com/$user_id/posts");
$pattern = "/<span role=\"button\" class=\"d-s o5a\" tabindex=\"0\">(.*?)<\/span>/";
preg_match($pattern, $td_data, $matches);
if (!empty($matches[1])) {
$expl_maches = explode(' ', trim($matches[1]));
$buffy_array = str_replace(array('.', ','), array(''), $expl_maches[0]);
}
}
break;
we will change also for future versions
Thanks for you message.
Radu A.
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.