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
  • [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
  • [phpBB3] Chinese language support
    Hi, i bought magic seo for phpbb because it says that it supports a wide range of alphabets and UTF-8, however i found that it doesn't. I'm preparing a website in Chinese and all forums having a...
    by iwsmike
  • [WP2PS] Yoast SEO plugin
    Thanks for your support installing the PS-WP integration. However there is some errors when PS-WP integration is activated. 1. Error generating sitemap with Yoas SEO plugin (it disappears when...
    by argidomin
Join our support forum » Pre-Sales Questions »
Featured Testimonials

Thank you so much for getting it setup!

Jonathan, the owner of Foster's Point

The Inveo team provided the best service and support that we have received from any vendors we have ever used. They did work that was far beyond the scope of the purchase, and for this we are grateful and can certainly highly recommend them to anyone else.

Allen, the owner of Zele Private Investigator Philippines

More Testimonials »