Seite 1 von 1
topiccount mod
Verfasst: 11.11.2004 20:47
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
Verfasst: 11.11.2004 21:05
von Markus67
Hi ...
Verlinke mal die viewtopic.php und die Installationsdatei als txt-Datei.
KB:datei
Markus
Verfasst: 12.11.2004 20:29
von patrickcooly
sorry, bin für längere zeit offline, werde es nachholen, sobald ich kann

Verfasst: 13.11.2004 20:24
von patrickcooly
Verfasst: 13.11.2004 20:47
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