here is a thread to tweak the Similar topic mod from here : http://www.phpbb-seo.de/downloads/mod-s ... opics.html
The goal is to output rewritten URLs with the Ultimate SEO URL mod (all modes).
Please note :
phpBB SEO Related Topics has been released, you may want to use it in favor to this mod since it has many more options and abilities than this one.
Open :
- Code: Select all
viewtopic.php
Find :
- Code: Select all
'SELECT' => 'f.forum_id, f.forum_name, t.topic_id, t.topic_title, u.user_id, u.username, u.user_colour, t.topic_replies',
Replace with :
- Code: Select all
'SELECT' => 'f.forum_id, f.forum_name, t.topic_id, t.topic_title, t.topic_type ' . (!empty($phpbb_seo->seo_opt['sql_rewrite']) ? ', t.topic_url' : '') . ', u.user_id, u.username, u.user_colour, t.topic_replies',
Find :
- Code: Select all
if ($auth->acl_get('f_read', $similar['forum_id']))
{
After add :
- Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$similar['topic_title'] = censor_text($similar['topic_title']);
$phpbb_seo->set_url($similar['forum_name'], $similar['forum_id'], $phpbb_seo->seo_static['forum']);
$phpbb_seo->prepare_iurl($similar, 'topic', $similar['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$similar['forum_id']]);
// www.phpBB-SEO.com SEO TOOLKIT END
Enjoy

English |
French



