Mam mały problem z plikiem funkcion_display.php po instalacji w/w modyfikacji. Już go edytuje po raz enty i cały czas błąd. w lini 502. Zamieszczę plik przez zemnie wyedytowany i część instrukcji dotyczącej tego pliku. Jeżeli można to proszę mnie nakierować gdzie robię błąd
Kod: Zaznacz cały
Open: includes/functions_display.php
Find
Tip: This may be a partial find and not the whole line.
Code:Select All
if ($show_active)
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
//-- mod : latest topic title --------------------------------------------------
//-- add
$sql_array['LEFT_JOIN'][] = array('FROM' => array(TOPICS_TABLE => 't'), 'ON' => 'f.forum_last_post_id = t.topic_last_post_id');
$sql_array['SELECT'] .= ', t.topic_id, t.topic_title';
//-- fin mod : latest topic title ----------------------------------------------
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select All
$forum_rows[$parent_id]['forum_last_poster_colour'] = $row['forum_last_poster_colour'];
$forum_rows[$parent_id]['forum_id_last_post'] = $forum_id;
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
//-- mod : latest topic title --------------------------------------------------
//-- add
$forum_rows[$parent_id]['topic_id'] = $row['topic_id'];
$forum_rows[$parent_id]['topic_title'] = $row['topic_title'];
//-- fin mod : latest topic title ----------------------------------------------
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select All
// Assign subforums loop for style authors
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
//-- mod : latest topic title --------------------------------------------------
//-- add
$template->alter_block_array('forumrow', array(
'LATEST_TOPIC_TITLE_SHORT' => ltt_max_chars($row['topic_title']),
'LATEST_TOPIC_TITLE_FULL' => censor_text($row['topic_title']),
'U_FIRST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']),
), true, 'change');
//-- fin mod : latest topic title ----------------------------------------------
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select All
if ($return_moderators)
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
//-- mod : latest topic title --------------------------------------------------
//-- add
$template->assign_vars(array('S_LTT' => $config['ltt_url']));
//-- fin mod : latest topic title ----------------------------------------------