SEO Urls V2
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
man was die Leute basteln
Such mal nach:
und ersetze das gegen:
und suche nach dem:
und ersetze es mit:

Such mal nach:
Code: Alles auswählen
if(empty($newest_post_img))
{
$or_append = '';
}
else
{
$or_append = '&view=newest';
}
Code: Alles auswählen
$newest_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $searchset[$i]['topic_id'] . "&highlight=$highlight_active . (empty($newest_post_img) ? '' : '&view=newest')");
und suche nach dem:
Code: Alles auswählen
'U_VIEW_TOPIC' => $topic_url . $or_append)
Code: Alles auswählen
'U_VIEW_TOPIC' => $newest_topic_url)
meine Foren: http://www.maxrev.de/communities.htm
Ich kaufe Dein Forum! Angebote bitte an marc at gutt punkt it
Ich kaufe Dein Forum! Angebote bitte an marc at gutt punkt it
-
- Mitglied
- Beiträge: 568
- Registriert: 06.03.2005 14:11
- Kontaktdaten:
Re: SEO Urls V2
nach dieser Änderung kann ich vom Index keine weitere Seite aufrufen (jedenfalls nicht local).mgutt hat geschrieben:
öffne includes/sessions.php und suche nach:ersetze gegen:Code: Alles auswählen
function append_sid($url, $non_html_amp = false) { global $SID; if ( !empty($SID) && !preg_match('#sid=#', $url) ) { $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; } return $url; }
Code: Alles auswählen
function append_sid($url, $non_html_amp = false) // Seo Urls Anfang Version 1.0.7 { global $SID, $phpEx, $topic_title, $forum_name; if ( !empty($SID) && !preg_match('#sid=#', $url) ) { $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; } elseif ( $url != './' && strpos($url, 'login') === false && !defined('IN_ADMIN') ) { // Jumpbox Fix if ( strpos($url, 'viewforum') !== false && strpos($url, 'f=') === false ) { return $url; } // Search Author's posts URL if ( strpos($url, 'search_author') !== false ) { $author_name = substr( strrchr($url, 'search_author='), 14); if ( preg_match('#[^a-zA-Z0-9-_.]#', $author_name) ) { return $url; } } // Title to URL $url_amp = ( $non_html_amp ) ? '&' : '&'; $url_parms = array( (strpos($url, 'highlight=') !== false && $url{strlen($url)-1} == '=' ? $url_amp . 'highlight=' : ''), $url_amp . 'start=0', $url_amp . 'postdays=0', $url_amp . 'postorder=asc', ".$phpEx?", ".$phpEx", '=', '&', '&'); $url_rparms = array( '', '', '', '', ',', '.html', ',', ',', ','); $url = str_replace($url_parms, $url_rparms, $url); $url = ($url == './' ? '' : $url . ( strpos($url, '.html') !== false ? '' : '.html' )); // replace special chars if ( ( !empty($topic_title) && strpos($url, 'viewtopic') !== false ) || ( !empty($forum_name) && strpos($url, 'viewforum') !== false ) ) { $url_search = array( 'Ö', 'Ä', 'Ü', 'ö', 'ä', 'à', 'é', 'è', 'ü', 'ß', '°', '²', '³', '§', '$', '%', '=', '`', '´', '|', '€', 'µ', '~', ' ', '.', ',', "'", '"', '#','"', '&', '+','>', '<', '–', '–', '!', '?','{','}','[', ']', '/', '\\', ";", ")", "(", ':', '_', '*', '@', '^', '&', '---', '--'); $url_replace = array('oe', 'ae', 'ue', 'oe', 'ae', 'a', 'e', 'e', 'ue','ss', '', '', '', '', '', '', '', '', '', '', '', '', '', '-', '-', '-', '', '', '', '', 'und','und', '', '', '', '-', '', '', '', '', '', '', '-', '', '', '', '', '', '-', '', '', '','und', '-', '-'); } // forum name and topic title to URL if ( !empty($forum_name) && strpos($url, 'viewforum') !== false ) { $url = str_replace('viewforum', '', $url); $forumurl = str_replace($url_search, $url_replace, strtolower($forum_name) . '-'); $url = $forumurl == '-' ? 'forum' . $forumurl . $url : $forumurl . $url; $url = str_replace('-,f,', '-f', $url); } elseif ( !empty($topic_title) && strpos($url, 'viewtopic') !== false ) { $url = str_replace('viewtopic', '', $url); $topicurl = str_replace($url_search, $url_replace, strtolower($topic_title) . '-'); $url = $topicurl == '-' ? 'topic' . $topicurl . $url : $topicurl . $url; $url = str_replace('-,t,', '-t', $url); $url = str_replace('-,p,', '-p', $url); } } return $url; } // Seo Urls Ende Version 1.0.7
Hier die Ausgabe:
Geändert wurde bislang nur das, was mgutt im Eingangspost (Seite 1) unter der Modvers. 1.0.7 gepostet hat.The requested URL /web/aoc/ch/vote/osDate_1.0.1de/public_html/forum/gruppen-f2.html was not found on this server.
Apache/2.0.53 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.3.10 Server at localhost Port 80
Wie gesagt, ich habe die Änderungen nur local vorgenommen ....
ohne die passende .htaccess (auch seite 1) kann das nicht funktionieren. die musst du natürlich auch erstellen. 

meine Foren: http://www.maxrev.de/communities.htm
Ich kaufe Dein Forum! Angebote bitte an marc at gutt punkt it
Ich kaufe Dein Forum! Angebote bitte an marc at gutt punkt it
Hast Du auch die .htaccess inkl. des korrekten Pfads zum Forum angepasst?
...mehr über mich: www.kortirion.de oder www.schwarzer-humbug.de ...oder auch nicht...egal.
Neuestes Projekt: www.das-buchforum.de
Neuestes Projekt: www.das-buchforum.de
Stimmt denn da auch der Pfad? In der .htacces von S. 1 wird davon ausgegangen, dass das Forum im root liegt. Wenn Dein lokales Board aber z.B. unter localhost/forum/ zu erreichen ist, musst Du den Pfad anpassen.
Nachtrag: vgl. http://www.phpbb.de/viewtopic.php?p=681458#681458
Nachtrag: vgl. http://www.phpbb.de/viewtopic.php?p=681458#681458

...mehr über mich: www.kortirion.de oder www.schwarzer-humbug.de ...oder auch nicht...egal.
Neuestes Projekt: www.das-buchforum.de
Neuestes Projekt: www.das-buchforum.de
auch muss "mod_rewrite" lokal aktiv sein:
http://www.phpbb.de/viewtopic.php?p=681388#681388
http://www.phpbb.de/viewtopic.php?p=681388#681388
meine Foren: http://www.maxrev.de/communities.htm
Ich kaufe Dein Forum! Angebote bitte an marc at gutt punkt it
Ich kaufe Dein Forum! Angebote bitte an marc at gutt punkt it