Google+ bug with Plugin Social Counter

Posted in: Newspaper
Post count: 15

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

Post count: 854

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.

Post count: 15

Hello,

Thanks for reply

Sorry but G+ still not work

Best Regards

Post count: 15

Hello

Sorry G+ works perfectly now

Many thanks

Best regards

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.