Page 1 of 1

News - Seo URL's

Posted: 2. September 2009 12:05
by N20
Deine Portal Version: 1.0.0RC3
Typ Deines phpBB Forums: Premodded phpBB3
MODs installiert: Nein
Dein Wissensstand: Einsteiger
Link zu Deinem Forum: http://nolimits.devspac.es

PHP Version: 5.2.9
MySQL Version: 5

Was hast Du gemacht, bevor das Problem aufgetreten ist?
nichts

Was hast Du bereits versucht um das Problem zu lösen?


Fehlerbeschreibung und Nachricht
Hallo,

ich habe mir ein phpBB3 aufgesetzt das schon den ultimate seo url's mod mit drin hatte. nun habe ich den news block aktiviert und statt der umgeschriebene url's sind dort solche url's wie zb. "topic2396.html".

bei allen anderen url's funktioniert das ja ganz wunderbar mit dem seo mod, nur eben beim news block nicht. auch die suche hier hat nichts ergeben. oder hab ich was übersehen?

mfg N20

Re: News - Seo URL's

Posted: 7. September 2009 12:30
by N20
mh, keiner eine idee?

Re: News - Seo URL's

Posted: 8. September 2009 22:39
by Kharon
board3 portal 1.0.3 & Ultimate SEO URL

open: news.php


find

Code: Select all

// unread?
			$forum_id = $fetch_news[$i]['forum_id'];
			$topic_id = $fetch_news[$i]['topic_id'];
after add

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

find

Code: Select all

// Show "read full" page
	{
		$i = $news;
		$forum_id = $fetch_news[$i]['forum_id'];
		$topic_id = $fetch_news[$i]['topic_id'];
after add

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

Re: News - Seo URL's

Posted: 18. October 2009 13:16
by tomtom76
danke für den tipp.

Leider hat es bei mir nicht geholfen.

Die Links haben immer noch die endungungen wie "topic3.html" anstatt "ein-neuer-beuitag-t3.html#p3"

Gibt es noch etwas zu beachten?
Geändert habe ich die news.php im ordner portal/block