Jump to content

IP.SEO suggestions

Featured Replies

Posted

Dan, plz add Yandex support http://yandex.ru http://yandex.com

Code from IBR

Yandex 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!

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...

If you don't have site in russian language, you really don't need Yandex.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.