yop, the sub forum mod needs extra adaptation :
Add on for the simple sub forum mod for the mixed and advanced phpBB seo mod rewrites :
- Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
// Append new entry
$data[] = array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $forum_data['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
if( $all_forums[$i]['forum_id'] == $parent_id )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $all_forums[$i]['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
if( $total_forums )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $forum_row['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $subforum_data[$j]['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
if( $all_forums[$i]['forum_id'] == $parent_id )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $all_forums[$i]['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Those are very simple as for the regular phpbb files moddings.
And there is a small issu with this code, links won't all work until there is a post in all sub forums (not the on hosting them if you like).
This is due to how sud forum does the trick and to the fact I did not want to implement an additional check for a case only supposed to happen very few time before the forum is populated.
Besides, woks like a charm.
Will soon start posting add ons like this one
