Zum Inhalt springen

Url wird nach Posteintrag umgeschrieben

Erstellt am 5. Juni 2008 · 3 Antworten · letzte Antwort am 20. Juni 2008

Tags: Frage

daniz78 ·

TYPO3 4.1.1
MM_Forum 0.1.4

Wenn ich einen Beitrag schreibe und senden klicke, lande ich auf der Seite www.domain.de/#pid10

// Redirect user to new post
$linkParams = array(
	'tx_mmforum_pi1[action]'  => 'list_post',
	'tx_mmforum_pi1[tid]'     => intval($this->piVars['tid']),
	'tx_mmforum_pi1[pid]'     => $post_uid
);

$link = $this->pi_getPageLink($GLOBALS['TSFE']->id,'',$linkParams);
$link = $this->getAbsUrl($link);

echo $link;

// header("Location: $link#pid$post_uid"); die();

gibt mir jedoch den richtigen link zurück, also mit allen GET-Parametern.

Ich steh grad völlig auf dem Schlauch, warum der Link intern aber nicht funktioniert! $localconf, RealURL, utf-8???

Gruß, Daniz

daniz78 ·

Hi greenbanana,

danke für Deine Antwort und sorry für meine späte Rückmeldung...viel zu tun hier!
Ich habe die Einstellungen mal abgeglichen doch leider ohne Erfolg!

Anbei meine Konfiguration:

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array(
	
		'useCHashCache' => '0',
		'enableCHashCache' => 1,
		'respectSimulateStaticURLs' => 'TRUE',
		'appendMissingSlash' => 'ifNotFile',
		'enableUrlDecodeCache' => '1',
		'enableUrlEncodeCache' => '1',	
		
		'postVarSet_failureMode' => 'redirect_goodUpperDir',
	),
	'rewrite' => array(),
	'preVars' => array(
		array(
			'GETvar' => 'no_cache',
				'valueMap' => array(
					'nc' => 1,
				),
				'noMatch' => 'bypass',
			),
			array(
				'GETvar' => 'L',
				'valueMap' => array(),
/*
				'valueMap' => array(
#					 'de' => '0',
# Für die Standardsprache keinen Wert definieren, da sonst duplicate content
					 'at' => '1',
				),
			'valueDefault' => 'de',
*/
			'noMatch' => 'bypass',
		),
	),

	'fixedPostVars' => array(
		// #######################################################################
		// # Extension [mm_forum]
		// #######################################################################
		'mm_forum_pi1' => array(
			array(
				'GETvar'            => 'tx_mmforum_pi1[action]',
				'valueMap'          => array(
					'themen'                => 'list_topic',
					'beitraege'             => 'list_post',
					'benutzer'              => 'forum_view_profil',
					'antworten'             => 'new_post',
					'eroeffnen'             => 'new_topic',
					'melden'                => 'post_alert',
					'bearbeiten'            => 'post_edit',
					'loeschen'              => 'post_del',
					'alle_beitraege'        => 'post_history',
					'unbeantwortet'         => 'list_unans',
					'ungelesen'             => 'list_unread',
					'alles_gelesen'         => 'reset_read',
					'abonnieren'            => 'set_havealook',
					'abo_loeschen'          => 'del_havealook',
					'favorit'               => 'set_favorite',
					'kein_favorit'          => 'del_favorite',
					'praefix'               => 'list_prefix',
					'anhaenge'              => 'get_attachment',
				),
			),
			array(
				'GETvar'            => 'tx_mmforum_pi1[fid]',
				'lookUpTable'       => array(
					'table'                 => 'tx_mmforum_forums' ,
					'id_field'              => 'uid',
					'alias_field'           => 'forum_name',
					'addWhereClause'        => ' AND NOT deleted',
					'useUniqueCache'        => 1,
					'useUniqueCache_conf'   => array(
						'strtolower'            => 1,
						'spaceCharacter'        => '_',
					),
				),
			),
			array(
				'GETvar'            => 'tx_mmforum_pi1[tid]',
				'lookUpTable'       => array(
					'table'                 => 'tx_mmforum_topics' ,
					'id_field'              => 'uid',
					'alias_field'           => 'topic_title',
					'addWhereClause'        => ' AND NOT deleted',
					'useUniqueCache'        => 1,
					'useUniqueCache_conf'   => array(
						'strtolower'            => 1,
						'spaceCharacter'        => '_',
					),
				),
			),
			array(
				'GETvar'            => 'tx_mmforum_pi1[pid]',  
			),
			array(
				'GETvar'            => 'tx_mmforum_pi1[page]',  
			),
			array(
				'GETvar'            => 'tx_mmforum_pi1[user_id]',
				'lookUpTable'       => array(
					'table'                 => 'fe_users' ,
					'id_field'              => 'uid',
					'alias_field'           => 'username',
					'addWhereClause'        => ' AND NOT deleted',
					'useUniqueCache'        => 1,
					'useUniqueCache_conf'   => array(
						'strtolower'            => 1,
						'spaceCharacter'        => '_',
					),
				),
			),
			array(
				'GETvar'            => 'tx_mmforum_pi1[user_id]',
				'lookUpTable'       => array(
					'table'                 => 'fe_users' ,
					'id_field'              => 'uid',
					'alias_field'           => 'username',
					'addWhereClause'        => ' AND NOT deleted',
					'useUniqueCache'        => 1,
					'useUniqueCache_conf'   => array(
						'strtolower'            => 1,
						'spaceCharacter'        => '_',
					),
				),
			),
											   
		),
	 
		// #######################################################################
		// # PID anpassen pi1 = Forum, pi3 = Private Nachricht
		// #######################################################################
		'3185' => 'mm_forum_pi1'
	),
	'pagePath' => array(
		'type' => 'user',
		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
		'spaceCharacter' => '-',
		'languageGetVar' => 'L',
		'expireDays' => 3,
		'firstHitPathCache' => 1,
		'segTitleFieldList' => 'nav_title,title', //TEST
		'rootpage_id' => '1'
	),		
	'fileName' => array (
		'defaultToHTMLsuffixOnPrev' => 1,
		'index' => array(
			'page.html' => array(
				'keyValues' => array (
					'type' => 1,
				),
			),
			'print.html' => array(
				'keyValues' => array (
					'type' => 98,
				),
			),
			'rss.xml' => array(
				'keyValues' => array(
					'type' => 100,
				),
			),				
		),
	),
);

Das interessante an der ganzen Sache ist, das ich das Forum auf einer anderen Seite, mit gleicher Konfiguration ohne Probleme laufen habe!

Hat vielleicht noch jemand eine Idee?

Gruß, Daniz

daniz78 ·

Oh man...das kann jetzt echt nicht mein Ernst sein!!!

Ich hatte unter mm_forum -> Installation -> Forum
die Forumsseite nicht eingetragen...

Ja nee, is klar! #angry#