Seite 1 von 1

Today Mod inkl. Last Topic Mod?

Verfasst: 08.10.2003 12:20
von Roman
Hi All,

ich hab mir vor ner Zeit die Today/Yesterday Mod eingebaut und das klappt wunderbar.

Gestern Nacht habe ich hier entdeckt, daß es auch noch diese Mod gibt:
## Mod Title: shows topic of last made post on index
## Mod Version: 1.4.0

Und die will ich ja unbedingt. Jetzt habe ich aber das Problem, daß sie nicht gleichzeitig miteinander funktionieren. Einzeln hauen die Mods beide wunderbar hin, aber aber an dieser Stelle:
#
#-----[ 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 . '&nbsp;<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'] . '&nbsp;';
$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> ';
}

#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------
#
...sind die Mods irgendwie nicht mehr kompatibel. Hat es hier schonmal jemand geschafft, beide Mods zu integrieren?

Verfasst: 08.10.2003 12:32
von Henne
http://www.phpbb.de/viewtopic.php?p=172957#172957

Schau da mal. Vielleicht läufts ja noch...

Verfasst: 08.10.2003 13:12
von Roman
Vielen Dank, klappt perfekt! :)

Hier kann man das Ergebnis bestaunen: www.emuforum.de

Wunderbar, jetzt hat das dämliche Wbb wirklich absolut keinen Vorteil mehr. :)