Page 1 of 1

HowTo: Magic SEO URLs for phpBB 3.0/3.1/3.2 and phpBB 3.2 feed

Posted: Tue Jan 24, 2017 12:41 pm
by inveo
To transform the URLs to SEO formats, Magic SEO URLs for phpBB 3.0/3.1/3.2 do not require editing of any of the phpBB files.

However, if you are using phpBB 3.2 (does not apply to phpBB 3.0 or 3.1) and you want to use SEO formats in the phpBB feed, you will need to edit a few files.

/phpBB/phpbb/feed/controller/feed.php

Find:

Code: Select all

class feed


Replace with:

Code: Select all

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

class feed


Find:

Code: Select all

'category'      => ($this->config['feed_item_statistics'] && !empty($row['forum_id'])) ? $board_url . '/viewforum.' . $this->php_ext . '?f=' . $row['forum_id'] : '',


Replace with:

Code: Select all

'category'      => ($this->config['feed_item_statistics'] && !empty($row['forum_id'])) ? msuTransformUrlBb($board_url . '/viewforum.' . $this->php_ext . '?f=' . $row['forum_id']) : '',


/phpBB/phpbb/feed/base.php

Find:

Code: Select all

return '<a href="' . $this->helper->append_sid('memberlist.' . $this->phpEx, 'mode=viewprofile&amp;u=' . $author_id) . '">' . $row[$this->get('creator')] . '</a>';


Replace with:

Code: Select all

return '<a href="' . msuTransformUrlBb($this->helper->append_sid('memberlist.' . $this->phpEx, 'mode=viewprofile&amp;u=' . $author_id)) . '">' . $row[$this->get('creator')] . '</a>';



/phpBB/phpbb/feed/forums.php

Find:

Code: Select all

$item_row['link'] = $this->helper->append_sid('viewforum.' . $this->phpEx, 'f=' . $row['forum_id']);


Replace with:

Code: Select all

$item_row['link'] = msuTransformUrlBb($this->helper->append_sid('viewforum.' . $this->phpEx, 'f=' . $row['forum_id']));


/phpBB/phpbb/feed/post_base.php

Find:

Code: Select all

$item_row['link'] = $this->helper->append_sid('viewtopic.' . $this->phpEx, "t={$row['topic_id']}&amp;p={$row['post_id']}#p{$row['post_id']}");


Replace with:

Code: Select all

$item_row['link'] = msuTransformUrlBb($this->helper->append_sid('viewtopic.' . $this->phpEx, "t={$row['topic_id']}&amp;p={$row['post_id']}#p{$row['post_id']}"));


/phpBB/phpbb/feed/topics_base.php

Find:

Code: Select all

$item_row['link'] = $this->helper->append_sid('viewtopic.' . $this->phpEx, 't=' . $row['topic_id'] . '&amp;p=' . $row['post_id'] . '#p' . $row['post_id']);


Replace with:

Code: Select all

$item_row['link'] = msuTransformUrlBb($this->helper->append_sid('viewtopic.' . $this->phpEx, 't=' . $row['topic_id'] . '&amp;p=' . $row['post_id'] . '#p' . $row['post_id']));

Re: HowTo: Magic SEO URLs for phpBB 3.0/3.1/3.2 and phpBB 3.2 feed

Posted: Mon Jun 26, 2017 8:11 am
by olalavui
Thanks you so much!

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

Wow, thank you very much! Excellent support like this is greatly appreciated!

Todd, the owner of Pez Collectors Store

Magic SEO URLs seem to be having a really positive effect on our ranking and look so much cleaner in the browser than a random set of numbers. The sitemaps have also saved me a lot of time!

Simon, the owner of Beltingonline.com

More Testimonials »