Für die nachfolgende Anleitung ist der vorherige Einbau des Board3 Portals 1.0.3 und des Advanced phpBB3 SEO Mod RewriteV0-4-8 vorausgesetzt.
die Änderung der index.php => forum.html
Change index.php to forum.html
öffne/open phpbb_seo/phpbb_seo_class.php
Finde/find:
Code: Select all
$this->seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => '', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'pagination' => 'page', 'gz_ext' => '.gz' );
Code: Select all
'index' => ''
Code: Select all
'index' => 'forum'
after click on the Portal link the browsers topic line should be displayed without http://www.../portal.php
dafür folgende Änderung
for this the followed Changes
öffne/open includes/functions.php
finde/find:
Code: Select all
'U_PORTAL' => ($portal_config['portal_enable']) ? append_sid("{$phpbb_root_path}portal.$phpEx") : '',
Code: Select all
'U_PORTAL' => ($portal_config['portal_enable']) ? append_sid("{$phpbb_root_path}") : '',
Die Änderungen an der recent.php sind auf jeden Fall erforderlich und müssen 3 mal durchgeführt werden
the changes to the recent.php are necessary in any case and must be carried out 3 times
öffne portal/block/recent.php
finde/find:
Code: Select all
$sql = 'SELECT topic_title, forum_id, topic_id
Code: Select all
$sql = 'SELECT topic_title, forum_id, topic_id, topic_type
Code: Select all
if ( ($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0') )
{
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( empty($phpbb_seo->seo_url['topic'][$row['topic_id']]) ) {
if ($row['topic_type'] == POST_GLOBAL) {
$phpbb_seo->seo_opt['topic_type'][$row['topic_id']] = POST_GLOBAL;
}
$phpbb_seo->seo_url['topic'][$row['topic_id']] = $phpbb_seo->format_url(censor_text($row['topic_title']));
}
// www.phpBB-SEO.com SEO TOOLKIT END
diese Änderung muss 2 mal erfolgen
the changes must be carried out 2 times
finde/find:
Code: Select all
$forum_id = $fetch_news[$i]['forum_id'];
$topic_id = $fetch_news[$i]['topic_id'];
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !empty($fetch_news[$i]['forum_name']) && empty($phpbb_seo->seo_url['forum'][$forum_id]) ) {
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->set_url($fetch_news[$i]['forum_name'], $forum_id, $phpbb_seo->seo_static['forum']);
}
if ( empty($phpbb_seo->seo_url['topic'][$topic_id]) ) {
if (@$fetch_news[$i]['topic_type'] == POST_GLOBAL) {
$phpbb_seo->seo_opt['topic_type'][$topic_id] = POST_GLOBAL;
}
$phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url(censor_text($fetch_news[$i]['topic_title']));
}
// www.phpBB-SEO.com SEO TOOLKIT END
diese Änderung muss 2 mal erfolgen
the changes must be carried out 2 times
finde/find:
Code: Select all
$forum_id = $fetch_news[$i]['forum_id'];
$topic_id = $fetch_news[$i]['topic_id'];
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !empty($fetch_news[$i]['forum_name']) && empty($phpbb_seo->seo_url['forum'][$forum_id]) ) {
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->set_url($fetch_news[$i]['forum_name'], $forum_id, $phpbb_seo->seo_static['forum']);
}
if ( empty($phpbb_seo->seo_url['topic'][$topic_id]) ) {
if (@$fetch_news[$i]['topic_type'] == POST_GLOBAL) {
$phpbb_seo->seo_opt['topic_type'][$topic_id] = POST_GLOBAL;
}
$phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url(censor_text($fetch_news[$i]['topic_title']));
}
// www.phpBB-SEO.com SEO TOOLKIT END
clear your styles cache an your ACP cache
Peter
Quicklink:
Code: Select all
[url=http://www.board3.de/knowledge/kb_show.php?id=46]Knowledge Base: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8[/url]