topiccount mod

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
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.
Antworten
patrickcooly
Mitglied
Beiträge: 86
Registriert: 31.05.2004 12:38
Wohnort: Wien

topiccount mod

Beitrag von patrickcooly »

hallo,

ich hab mir den topiccount mod installiert, jetzt kommt diese fehlermeldung, wenn ioch in ein topic rein will...

Code: Alles auswählen

Parse error: parse error, unexpected '\"' in /usr/export/www/vhosts/funnetwork/hosting/patrickcooly/foren/viewtopic.php on line 1206
Benutzeravatar
Markus67
Ehrenadmin
Beiträge: 28346
Registriert: 12.01.2004 16:02
Wohnort: Neuss
Kontaktdaten:

Beitrag von Markus67 »

Hi ...

Verlinke mal die viewtopic.php und die Installationsdatei als txt-Datei.
KB:datei

Markus
patrickcooly
Mitglied
Beiträge: 86
Registriert: 31.05.2004 12:38
Wohnort: Wien

Beitrag von patrickcooly »

sorry, bin für längere zeit offline, werde es nachholen, sobald ich kann ;)
Benutzeravatar
Markus67
Ehrenadmin
Beiträge: 28346
Registriert: 12.01.2004 16:02
Wohnort: Neuss
Kontaktdaten:

Beitrag von Markus67 »

Hi ....

der Block ist falsch in die viewtopic.php eingebaut ...

suche:

Code: Alles auswählen

	// Editing information
	//
	if ( $postrow[$i]['post_edit_count'] )
	{
		$l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total'];

		$l_edited_by = '	$sql = "SELECT COUNT(topic_id) AS topics 
    FROM ". TOPICS_TABLE ." 
    WHERE topic_poster = '". $postrow[$i]['user_id'] ."'"; 
  if ( !($result = $db->sql_query($sql)) ) 
  { 
    message_die(GENERAL_ERROR, "Could not count topics", '', __LINE__, __FILE__, $sql); 
  } 
  $topics = $db->sql_fetchrow($result); 
  $poster_topics = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Topics'] . ': '.  ( $topics['topics'] == 0 ? $lang['None'] : $topics['topics'] ) : '';
<br /><br />' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']);
	}
	else
	{
		$l_edited_by = '';
	}

	//
	// Again this will be handled by the templating
	// code at some point
ersetze mit:

Code: Alles auswählen

	// Editing information
	//
	if ( $postrow[$i]['post_edit_count'] )
	{
		$l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total'];

		$l_edited_by = '<br /><br />' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']);
	}
	else
	{
		$l_edited_by = '';
	}

	  $sql = "SELECT COUNT(topic_id) AS topics 
	    FROM ". TOPICS_TABLE ." 
	    WHERE topic_poster = '". $postrow[$i]['user_id'] ."'"; 
	  if ( !($result = $db->sql_query($sql)) ) 
	  { 
	    message_die(GENERAL_ERROR, "Could not count topics", '', __LINE__, __FILE__, $sql); 
	  } 
	  $topics = $db->sql_fetchrow($result); 
	  $poster_topics = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Topics'] . ': '.  ( $topics['topics'] == 0 ? $lang['None'] : $topics['topics'] ) : '';

	//
	// Again this will be handled by the templating
	// code at some point
Markus
Antworten

Zurück zu „phpBB 2.0: Mod Support“