Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mehedi

    (@imehedidip)

    Hi,

    It looks like it’s working.

    Thanks

    Thread Starter Angel Costa

    (@angelcosta)

    Because I am using another function to pull the count.

    Plugin Author Mehedi

    (@imehedidip)

    Which function? Can you provide the code?

    Thread Starter Angel Costa

    (@angelcosta)

    Found it on stack overflow, i think:

    $html =  file_get_contents( "https://plusone.google.com/_/+1/fastbutton?url=".urlencode($url));
        $doc = new DOMDocument();   $doc->loadHTML($html);
        $counter=$doc->getElementById('aggregateCount');
        return $counter->nodeValue;

    Plugin Author Mehedi

    (@imehedidip)

    Something like that was part of the plugin previously, but I’ve removed that due to security reasons. I suggest you don’t use that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google counter not working’ is closed to new replies.