Posiadam Last topic on index lekko zmodyfikowanego tzn z miejscami w: (przy temacie postu) oraz autor: (przy autorze ost. tematu)
Nie moge sobie poradzic z zainplementowaniem moda yesterday w index.php
Oto kod z index.php moze ktos sobie z tym poradzil?
[php]//
// 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_TOPIC_URL . "=" . $forum_data[$j]['topic_id']) . '" title="' . $topic_title2 . '"><b>' . $topic_title . '</b></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 .= 'autor: ';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : cr($forum_data[$j]);
}[/php]
motoryzacja, vt, tuning, 4x4, tapety i galerie samochodowe, newsy, sklep i wiele innych - www.motocity.pl
Reklama na motocity.pl, ponad 35tys odwiedzin na m/c...więcej
Sklep Tuning 24/7