Page 1 of 1

[phpBB3] URL rewriting and Sitemaps

Posted: Fri May 27, 2016 2:32 am
by nicolasg
I have a problem, no rewrite url in sitemap :(

I use this module :
https://www.phpbb.com/customise/db/exte ... o_sitemap/

Do you have any solution please ? or other extension sitemap compatible with the module inveo ?

Thank ;)

Re: [phpBB3] URL rewriting and Sitemaps

Posted: Fri May 27, 2016 3:29 am
by inveo
To add support of URL rewriting to this Sitemaps extension, please:

1) open /ext/shredder/sitemap/core.php file:

Find:

Code: Select all

class core


Replace with:

Code: Select all

define('MSU_LOAD_LIB_ONLY_BB', true);
include(dirname(dirname(dirname(dirname(__FILE__)))).'/includes/magic_seo_url.php');

class core


Find:

Code: Select all

$f_xml .= '<loc>'.$loc.'</loc>'."\r\n";


Replace with:

Code: Select all

$f_xml .= '<loc>'.msuTransformUrlBb($loc).'</loc>'."\r\n";


Save and upload to your FTP and all is done :-)

Re: [phpBB3] URL rewriting and Sitemaps

Posted: Fri May 27, 2016 3:40 am
by nicolasg
Very good :) ;)

Re: [phpBB3] URL rewriting and Sitemaps

Posted: Wed Oct 12, 2016 12:28 pm
by Binano
Hello,

There's a new version. Can you help me please ?
https://www.phpbb.com/customise/db/download/128081

Re: [phpBB3] URL rewriting and Sitemaps

Posted: Thu Oct 13, 2016 4:50 am
by inveo
To add support of URL rewriting to the the recent version of this Sitemaps extension, please:

Open /ext/shredder/sitemap/core.php file:

Find:

Code: Select all

class core


Replace with:

Code: Select all

define('MSU_LOAD_LIB_ONLY_BB', true);
include(dirname(dirname(dirname(dirname(__FILE__)))).'/includes/magic_seo_url.php');

class core


Find:

Code: Select all

$this->appender->append($f_url, (int) max(array_merge($glob, $ann, $times)), $this->config['sitemap_seo_freq_f'], $this->config['sitemap_seo_prior_f']);


Replace with:

Code: Select all

$this->appender->append(msuTransformUrlBb($f_url), (int) max(array_merge($glob, $ann, $times)), $this->config['sitemap_seo_freq_f'], $this->config['sitemap_seo_prior_f']);


Find:

Code: Select all

$this->appender->append($t_url, max($times), $this->frequency[$t_type], $this->priority[$t_type]);


Replace with:

Code: Select all

$this->appender->append(msuTransformUrlBb($t_url), max($times), $this->frequency[$t_type], $this->priority[$t_type]);


Save and upload to your FTP and all is done :-)

Re: [phpBB3] URL rewriting and Sitemaps

Posted: Thu Oct 13, 2016 6:03 am
by Binano
Good job ! 8-)

Cart  
(empty)

Cart Check out  »

Prices are tax inclusive.

The VAT rate for your country (US) * is 0,0 % because it is not a member of the European Union (EU).

* Please create an account if your country does not match.

Community feed
  • [Zen Cart] Can't execute Magic SEO URLs sitemaps
    I installed Magic SEO URLs Sitemaps Add-On for ZenCart MSU4.x/MSU5.x 2.0 on my server, when I try to generate sitemaps using: https://www.pechesudv155.owally.com/sitemaps.php I received :...
    by peter@pechesud.com
  • [phpBB3] Sharing users between phpBB / PrestaShop
    Hi i have 2 question 1- prestashop module support phpBB 3.3 ? 2- why we can not login in prestashop and phpbb with same user?
    by zohall
  • [phpBB3] AJAX Userinfo Extension
    Hi! I'm having trouble with this extension: https://www.phpbb.com/customise/db/exte ... _userinfo/ I tried asking support from the author but for no avail, since now. My request for support...
    by Lord Phobos
  • [phpBB3] Upgrade to phpBB 3.2.3
    Hello.. after Upgrade to phpBB 3.2.3 I am getting this message.. How can I solve this issue..? Thank you
    by ingbrzy
  • [phpBB3] URL path changed
    Hello.. I have changed my site path after moving to new hosting and now can not activate SEO module.. new path http://www.miuios.cz/domains/miuios.cz/ could you help me? thank you
    by ingbrzy2
Join our support forum » Pre-Sales Questions »
Featured Testimonials

I installed the WordPress and WooCommerce Accelerator from Inveostore and it was really easy to configure - unlike some other caching plugins, it did not break the more complicated bits of my site and my PageSpeed score has gone from E to B even on a shared hosting plan. Luke was really helpful and the support response was very quick - I am...

Mark, the owner of Digital Marketing Works

Great work - great support - great tool! Thank you for your whole work and your great support. We're very glad with the plugin and our online portals now run much faster than before.

Alexander, the owner of Die Wirtschaft Köln

More Testimonials »