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&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&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']}&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']}&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'] . '&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'] . '&p=' . $row['post_id'] . '#p' . $row['post_id']));