Page 1 of 1

Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 29. March 2009 18:46
by PeterS
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' );
finde in der Zeile/in the Line find:

Code: Select all

'index' => ''
ersetze/replace mit:

Code: Select all

'index' => 'forum'
nach dem Klick auf den Portal Link sollte die Browserzeile ohne http://www.../portal.php dargestellt werden
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") : '',
ersetze/replace mit:

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
ersetze/replace mit:

Code: Select all

$sql = 'SELECT topic_title, forum_id, topic_id, topic_type
finde/find:

Code: Select all

if ( ($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0') )
{
danach einfügen/add after:

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
öffne/open portal/block/news.php
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'];
danach einfügen/ add after:

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
öffne/open portal/block/announcements.php
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'];
danach einfügen/ add after:

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
ACP | styles | template | cache | leeren und
ACP | Allgemein | Cache | leeren
clear your styles cache an your ACP cache

Peter

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 14. April 2009 16:07
by Phoenix
Hallo,

ich habe bei meiner neuen Seite den SEO und den Portal Mod eingebaut.
Aber leider wirken bei mir diese Änderungen nicht.

Wenn ich das richtig verstehe, dann sollen doch die URLs unter AKTUELLES und LETZTE BEKANNTMACHUNGEN geändert werden, aber das ist bei mir nicht der Fall.

Hier der Link: http://www.wo-finde-ich-wen.de/

Die Änderungen sind eingebaut, aber ohne den oberen Part mit den Links zu Portal/Forum.

Dank euch für euren Support!

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 15. April 2009 05:57
by PeterS
Hallo,

nein das siehst du nicht richtig, die hier gemachten Änderungen wirken auf die aktuellen Beiträge und die aktuellen Themen.

Was noch fehlt sind die Bekanntmachungen. Bekommst du im Laufe des Tages.

Peter

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 15. April 2009 08:27
by PeterS
Nachtrag: Seo-Injection für Bekanntmachungen

öffne: /portal/block/announcements.php
die Änderungen muss 2 Mal durchgeführt werden
finde:

Code: Select all

			$forum_id = $fetch_news[$i]['forum_id'];
			$topic_id = $fetch_news[$i]['topic_id'];
danach einfügen:

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
ACP | Allgemein | Cache leeren

Peter

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 15. April 2009 10:44
by Phoenix
Danke für die schnelle Umsetzung!
Das Umsetzen des Boards klappt damit, aber leider nicht den Part für das Thema, da steht immer noch viewtopic.php ...

Wenn man das noch ändern könnte wäre ich dankbar!

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 16. April 2009 08:36
by PeterS
Hallo

mir ist eben noch etwas an deiner Seite aufgefallen, im Block "neue Mitglieder" klappt die Seo-Injection, bei "Wer ist online" nicht.

Du solltest den kompl. Seo-Mod noch einmal überprüfen.

Peter

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 16. April 2009 10:59
by Phoenix
Meinst du wer ist online im Forum oder im Portal?
ALso im FOrum klappt das bei mir, da sehe ich die SEO Links!

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 16. April 2009 11:21
by PeterS
Sorry,

mein Fehler, ich bin auf die Legende gerutscht :oops:

Peter

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 16. April 2009 19:50
by Phoenix
Mir ist gerade noch was aufgefallen:
Wenn ich den Block AKTUELLES ausblende, dann geht auch der Rest ;) so als kleiner Workarround!

Re: Board3 V1.0.3 und Advanced phpBB3 SEO Mod RewriteV0-4-8

Posted: 2. August 2009 15:05
by DHMH
Ich habe einen Bug gefunden, könnte ihn bitte jemand fixen ?
Wenn man den Announcement Block auf dem Portal hat, dann werden dort die URLs ohne Forum dargestelt, welches zu einem 404 Error führt, also statt http://computerboard.eu/announces/forenregeln-t31.html lauten die Links http://computerboard.eu/forenregeln.html .
Komischerweise tritt das Problem nicht bei allen Links auf, siehe http://computerboard.eu ...
Gibts da eine Lösung ?