WordPress.org

Ready to get started?Download WordPress

Forums

SEO Stats Widget
Seems broken on 3.8 (4 posts)

  1. Andrei
    Member
    Posted 6 months ago #

    I've just installed the plugin on my 3.8 WordPress, but after activation all I get is some javascript code printed on the page at the top of my admin area.

    http://wordpress.org/plugins/seo-stats-widget/

  2. sunnyverma1984
    Member
    Plugin Author

    Posted 6 months ago #

    Can you post that javascript code here, So i can solve this issue

  3. Lathif Sama
    Member
    Posted 4 months ago #

    url=$u; } public function get_PR() { $query="http://toolbarqueries.google.com/tbr?client=navclient-auto&ch=".$this->CheckHash($this->HashURL($this->url)). "&features=Rank&q=info:".$this->url."&num=100&filter=0"; $data=$this->getPageData($query); $pos = strpos($data, "Rank_"); if($pos === false){return 0;} else{ $pagerank = substr($data, $pos + 9); return $pagerank; } } public function get_GIP(){ $query="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:".$this->url."&filter=0&rsz=1"; $data=$this->getPageData($query); $data=json_decode($data,true); return isset($data['responseData']['cursor']['resultCount'])?$data['responseData']['cursor']['resultCount']:0; } public function get_GBL(){ $query="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=link:".$this->url."&filter=0&rsz=1"; $data=$this->getPageData($query); $data=json_decode($data,true); return isset($data['responseData']['cursor']['resultCount'])?$data['responseData']['cursor']['resultCount']:0; } public function get_SEM(){ $query = 'http://us.backend.semrush.com/?action=report&type=domain_rank&domain='.$this->url; $data=$this->getPageData($query); $data=json_decode($data,true); if(isset($data['rank']['data'][0])) return array('rank'=>$data['rank']['data'][0]['Rk'],'keywords'=>$data['rank']['data'][0]['Or'],'traffic'=>$data['rank']['data'][0]['Ot'],'cost'=>$data['rank']['data'][0]['Oc']); else return array('rank'=>'NA','keywords'=>'NA','traffic'=>'NA','cost'=>'NA'); } public function get_Alexa(){ $query="http://data.alexa.com/data?cli=10&dat=snbamz&url=".$this->url; $data=$this->getPageData($query); $rank = preg_match("/]*TEXT=\"([\d]*)\"/",$data,$match)?$match[1]:0; $speed = preg_match("/]*TEXT=\"([\d]*)\"/",$data,$match)?$match[1]:0; $isdmoz=preg_match("/FLAGS=\"DMOZ\"/",$data,$match)?1:0; $links=preg_match("/]*NUM=\"([\d]*)\"/",$data,$match)?$match[1]:0; return array("rank"=>$rank,"dmoz"=>$isdmoz,"links"=>$links,"speed"=>$speed); } private function StrToNum($Str, $Check, $Magic) { $Int32Unit = 4294967296; $length = strlen($Str); for ($i = 0; $i < $length; $i++) { $Check *= $Magic; if ($Check >= $Int32Unit) { $Check = ($Check - $Int32Unit * (int) ($Check / $Int32Unit)); $Check = ($Check < -2147483648) ? ($Check + $Int32Unit) : $Check; } $Check += ord($Str{$i}); } return $Check; } private function HashURL($String) { $Check1 = $this->StrToNum($String, 0x1505, 0x21); $Check2 = $this->StrToNum($String, 0, 0x1003F); $Check1 >>= 2; $Check1 = (($Check1 >> 4) & 0x3FFFFC0 ) | ($Check1 & 0x3F); $Check1 = (($Check1 >> 4) & 0x3FFC00 ) | ($Check1 & 0x3FF); $Check1 = (($Check1 >> 4) & 0x3C000 ) | ($Check1 & 0x3FFF); $T1 = (((($Check1 & 0x3C0) << 4) | ($Check1 & 0x3C)) <<2 ) | ($Check2 & 0xF0F ); $T2 = (((($Check1 & 0xFFFFC000) << 4) | ($Check1 & 0x3C00)) << 0xA) | ($Check2 & 0xF0F0000 ); return ($T1 | $T2); } private function CheckHash($Hashnum) { $CheckByte = 0; $Flag = 0; $HashStr = sprintf('%u', $Hashnum) ; $length = strlen($HashStr); for ($i = $length - 1; $i >= 0; $i --) { $Re = $HashStr{$i}; if (1 === ($Flag % 2)) { $Re += $Re; $Re = (int)($Re / 10) + ($Re % 10); } $CheckByte += $Re; $Flag ++; } $CheckByte %= 10; if (0 !== $CheckByte) { $CheckByte = 10 - $CheckByte; if (1 === ($Flag % 2) ) { if (1 === ($CheckByte % 2)) { $CheckByte += 9; } $CheckByte >>= 1; } } return '7'.$CheckByte.$HashStr; } private function getPageData($url) { if(function_exists('curl_init')) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); if((ini_get('open_basedir') == '') && (ini_get('safe_mode') == 'Off')) { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); } curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_FAILONERROR, 1); return @curl_exec($ch); } else { return @file_get_contents($this->url); } } } ?>
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wp1\wp-content\plugins\seo-stats-widget\lib\seostatsClass.php:126) in C:\xampp\htdocs\wp1\wp-includes\option.php on line 563

  4. Max Pen
    Member
    Posted 3 months ago #

    Has this been fixed?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.