Thread Rating:
  • 36 Vote(s) - 4.22 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] Google SEO 1.6.8 [EOL]
(2014-09-05, 11:06 PM)Kowak Wrote: Can you update fast this important plugin?

Just change the compatibility line to "18*"
[Image: misc.php?page=signature]
Reply
Since 1.6.7 works i have this on my site and works perfect, if any i report here, but we did not find any truble with this plugin on MyBB 1.8
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
To change the Compatibility mode of this plugin Go to "Plugin.php" file within folder ./inc/plugins/google_seo/

Then search for the word "compatibility" within file and change it to 18 from 16.

Now plugin should work.
Reply
So just change compatibility? That's sound good but at the same time strange... btw thanks and I'll update to 1.8 now Smile
Founder of Gamer-Core.it, Gamer-Nest.com and Militarypedia.it
[Image: logo.png]
Reply
I noticed that after enable "URL length soft limit", URLs change only after when I visited this thread. Is possible to mass rebuilt URLs?
Reply
Plugin works, but 1.8 Move post function don't recognize seo urls. What would be the solution to fix this?
Reply
(2014-09-12, 09:07 AM)Come On Thru Wrote: Plugin works, but 1.8 Move post function don't recognize seo urls. What would be the solution to fix this?


You have to edit MyBB's moderation.php file.

Find:
case "do_multimoveposts":
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

Insert after:
// Google SEO URL support
		if($db->table_exists("google_seo"))
		{
			// Build regexp to match URL.
			$regexp = "{$mybb->settings['bburl']}/{$mybb->settings['google_seo_url_threads']}";

			if($regexp)
			{
				$regexp = preg_quote($regexp, '#');
				$regexp = str_replace('\\{\\$url\\}', '([^./]+)', $regexp);
				$regexp = str_replace('\\{url\\}', '([^./]+)', $regexp);
				$regexp = "#^{$regexp}$#u";
			}

			// Fetch the (presumably) Google SEO URL:
			$url = $mybb->input['threadurl'];

			// $url can be either 'http://host/Thread-foobar' or just 'foobar'.

			// Kill anchors and parameters.
			$url = preg_replace('/^([^#?]*)[#?].*$/u', '\\1', $url);

			// Extract the name part of the URL.
			$url = preg_replace($regexp, '\\1', $url);

			// Unquote the URL.
			$url = urldecode($url);

			// If $url was 'http://host/Thread-foobar', it is just 'foobar' now.

			// Look up the ID for this item.
			$query = $db->simple_select("google_seo", "id", "idtype='4' AND url='".$db->escape_string($url)."'");
			$newtid = $db->fetch_field($query, 'id');
		}



And find:
$newtid = 0;

Replace with:
if (empty($newtid))
{
    $newtid = 0;
}
Reply
(2014-09-12, 10:58 AM)doylecc Wrote:
(2014-09-12, 09:07 AM)Come On Thru Wrote: Plugin works, but 1.8 Move post function don't recognize seo urls. What would be the solution to fix this?


You have to edit MyBB's moderation.php file.

Find:

case "do_multimoveposts":
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

Insert after:

// Google SEO URL support
		if($db->table_exists("google_seo"))
		{
			// Build regexp to match URL.
			$regexp = "{$mybb->settings['bburl']}/{$mybb->settings['google_seo_url_threads']}";

			if($regexp)
			{
				$regexp = preg_quote($regexp, '#');
				$regexp = str_replace('\\{\\$url\\}', '([^./]+)', $regexp);
				$regexp = str_replace('\\{url\\}', '([^./]+)', $regexp);
				$regexp = "#^{$regexp}$#u";
			}

			// Fetch the (presumably) Google SEO URL:
			$url = $mybb->input['threadurl'];

			// $url can be either 'http://host/Thread-foobar' or just 'foobar'.

			// Kill anchors and parameters.
			$url = preg_replace('/^([^#?]*)[#?].*$/u', '\\1', $url);

			// Extract the name part of the URL.
			$url = preg_replace($regexp, '\\1', $url);

			// Unquote the URL.
			$url = urldecode($url);

			// If $url was 'http://host/Thread-foobar', it is just 'foobar' now.

			// Look up the ID for this item.
			$query = $db->simple_select("google_seo", "id", "idtype='4' AND url='".$db->escape_string($url)."'");
			$newtid = $db->fetch_field($query, 'id');
		}



And find:

$newtid = 0;

Replace with:

if (empty($newtid))
{
    $newtid = 0;
}

Thanks, it worked!
Reply
Do you planto upgrade this plugin for 1.8?
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
hi not working for me this my sites http:**6yo[dot]in
The Writing Talents in The World
Find Tutorial , Create Writing Talents Now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)