Jump to content

Community

Sign in to follow this  
Alex Morbo

IP.SEO suggestions

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×