Everything is OK except one thing - I cannot move my posts into another thread - I get wrror that this url is not exist
Nach dem Update auf 1.6.17 lief Google Seo bei mir nicht mehr. Die Umwandlung der URLs hat nicht mehr funktioniert.
Durch das Hochladen der vorherigen Version der inc/functions.php konnte ich das Google Seo wieder zum Laufen bringen, aber das kann ja vermutlich nur eine Notlösung sein, oder ? Was kann bzw. muss ich tun ?
Only index sitemap is working other child sitemaps are giving invalid sitemap error
I removed the "sitemap-{url).xml" from sitemap settings and now its working fine
(2014-09-15, 11:18 AM)Come On Thru Wrote: [ -> ] (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!
Looks like this not working anymore on
1.8.5. Maybe someone got another fix?
(2015-06-02, 06:49 PM)Come On Thru Wrote: [ -> ]Looks like this not working anymore on 1.8.5. Maybe someone got another fix?
It's still working for me on 1.8.5.
(2015-06-02, 07:07 PM)doylecc Wrote: [ -> ] (2015-06-02, 06:49 PM)Come On Thru Wrote: [ -> ]Looks like this not working anymore on 1.8.5. Maybe someone got another fix?
It's still working for me on 1.8.5.
Tryed again and yop, it's working. Perhaps through the rush I made somewhere a mistake.
Hi,
If I want to change the Google SEO URL from default to Forum-XXXXX, Thread-XXXXX to have it likes this
the name of parent category>parent forum>thread
What should I do?
I need help with editing .htaccess and the plugin.
Thank.