Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 7, 201114 yr Dan, plz add Yandex support http://yandex.ru http://yandex.com Code from IBRYandex Ping for Sitemap: Open /admin/applications_addon/ips/ipseo/sources/generator.php Find else { $this->log('Successfully pinged Yahoo.'); } Add after // Ping Yandex: @$http->getFileContents('http://yandex.ru/ping?sitemap='.$sitemapUrl); if($http->http_status_code != 200) { $this->class->appendTaskLog($this->task, 'Failed to ping Yandex.'); $rtn = false; $this->log('Failed to ping Yandex.'); } else { $this->log('Successfully pinged Yandex.'); } Yandex Tracking: Open /admin/applications_addon/ips/ipseo/sources/tracker.php find $this->engines[] = array('name' => 'Facebook', 'match' => '/http\:\/\/www\.facebook/', 'parser' => 'parseFacebookUrl'); Add after: $this->engines[] = array('name' => 'Yandex', 'match' => '/http\:\/\/(www\.)?yandex/', 'parser' => 'parseYandexUrl'); In the end of file, before last "}" add: protected function parseYandexUrl($url) { $matches = array(); if(preg_match('/text\=([^\&]+)/', $url, $matches)) { if(isset($matches[1])) { $keywords = $matches[1]; $keywords = urldecode($keywords); $keywords = str_replace('+', ' ', $keywords); $keywords = str_replace('%20', ' ', $keywords); return $keywords; } } return null; } Thaks, it will be cool & We shouldn't add constantly this code after updating IP.SEO!
February 7, 201114 yr Don't like that bot "Yandex" it's a russian search engine all it bring is a bunch spammers to you're site,i've banned it from indexing my site...
Archived
This topic is now archived and is closed to further replies.