Nach Update auf 2.0.15 LastTopicIndex Mod
Verfasst: 09.05.2005 01:26
Nabend!
Dachte mir "Mach es sauber" und habe die neuen Files einfach über die alten gespielt, da ich nur kleinere Mods drin habe und das nachträgliche einbauen recht fix geht.
DB Update usw alles geklappt und Forum läuft wieder.
Wollte nun das Forum wieder etwas Google Freundlicher machen und die 2-3 Hacks einbauen die ich drin hatte.
Darunter auch LastTopicIndex Mod.
Nur sieht zb. die index.php nach dem Update anders aus.
Das dort finde ich in exakt dieser Form nicht und ich habe jetzt bedenken, daß ich da etwas ersetze was nachher nicht mehr klappt, oder die neue laufende Version beeinträchtigt.
Kann mir da bitte jemand einen Tipp geben, was ich wo und wie ersetzen muss, damit dieser Mod funktioniert?
Vielen Dank!
Dachte mir "Mach es sauber" und habe die neuen Files einfach über die alten gespielt, da ich nur kleinere Mods drin habe und das nachträgliche einbauen recht fix geht.
DB Update usw alles geklappt und Forum läuft wieder.
Wollte nun das Forum wieder etwas Google Freundlicher machen und die 2-3 Hacks einbauen die ich drin hatte.
Darunter auch LastTopicIndex Mod.
Nur sieht zb. die index.php nach dem Update anders aus.
Code: Alles auswählen
#-----[ ACTION Find ]------------------[phpBB 2.0.5]-----------------------
#
if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = $last_post_time . '<br />';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
#
#-----[ ACTION Replace With ]---------------------------------
#
if ( $forum_data[$j]['forum_last_post_id'] )
{
$topic_title = $forum_data[$j]['topic_title'];
$topic_title2 = $forum_data[$j]['topic_title'];
//
// Censor topic title
//
if ( count($orig_word) )
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
$topic_title2 = preg_replace($orig_word, $replacement_word, $topic_title2);
}
if (strlen($topic_title)>27) {
$topic_title = substr($topic_title,0,24) . '...';
}
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $topic_title2 . '">' . $topic_title . '</a><br>';
$last_post .= $last_post_time . ' <a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '"></a><br>' . $lang['by'] . ' ';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
}
Kann mir da bitte jemand einen Tipp geben, was ich wo und wie ersetzen muss, damit dieser Mod funktioniert?
Vielen Dank!