WordPress Plugin: googleCards Patch 20110830

Hier ist die nächste Patchrunde (Stand 30.08.2011):

--- googleCardClass.php.orig    2011-08-30 14:01:28.000000000 +0200
+++ googleCardClass.php 2011-08-30 14:02:49.000000000 +0200
@@ -124,7 +124,7 @@
        protected function parseHtml()
        {
                // parse the html to look for the h4 'have X in circles' element
-               preg_match('/<h4 class="nPQ0Mb pD8zNd">(.*?)<\/h4>/s', $this->html, $matches);
+               preg_match('/<h4 class="Pv rla">(.*?)<\/h4>/s', $this->html, $matches);
                if (isset($matches) && !empty($matches))
                {
                        $count = $matches[1];
@@ -140,7 +140,7 @@
                $name = $matches[1];

                // parse the html for the img div
-               preg_match('/<div class="DzkbSc">(.*?)<\/div>/s', $this->html, $matches);
+               preg_match('/<div class="c-i-Ra-L CK Xu">(.*?)<\/div>/s', $this->html, $matches);
                $img_div = $matches[1];

                // parse the img div for the image src

In der Datei „googleCardClass.php“ müssen wieder die beiden Regular Expressions zur Ermittlung des Zählers und der Profilbild-URL angepasst werden.

Außerdem darf nicht vergessen werden die Datei „wp-content/cache/plus_cards.txt“ zu entfernen.

Schreib einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

css.php