Verfasst: 27.07.2005 13:36
ja kann dir helfen, ich brauch allerdings kurz etwa 10-20 minuten, da ich an der Uni kein Zugriff auf mein Offlinetestforum hab und alles OnLine testen muss
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
$template->assign_block_vars('shoutrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'SHOUT' => $shout,
'TIME' => create_date($lang['Shoutbox_date'], $shout_row['shout_session_time'], $board_config['board_timezone']),
'USERNAME' => $username
));
Code: Alles auswählen
$template->assign_block_vars('shoutrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'SHOUT' => $shout,
'MINI_POST_IMG' => $images['icon_minipost'],
'TIME' => create_date($lang['Shoutbox_date'], $shout_row['shout_session_time'], $board_config['board_timezone']),
'USERNAME' => $username
));
Code: Alles auswählen
//
// Define censored word matches
//
Code: Alles auswählen
//
// Define the little post icon
//
if ( $userdata['session_logged_in'] && $shoutrow[$i]['post_time'] > $userdata['user_lastvisit'] && $shoutrow[$i]['post_time'] > $topic_last_read )
{
$mini_post_img = $images['icon_minipost_new'];
$mini_post_alt = $lang['New_post'];
}
else
{
$mini_post_img = $images['icon_minipost'];
$mini_post_alt = $lang['Post'];
}
Code: Alles auswählen
$template->assign_block_vars('shoutrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'SHOUT' => $shout,
Code: Alles auswählen
'MINI_POST_IMG' => $mini_post_img,
'L_MINI_POST_ALT' => $mini_post_alt,
Code: Alles auswählen
$template->assign_block_vars('shoutrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'SHOUT' => $shout,
'TIME' => create_date($board_config['default_dateformat'], $shout_row['shout_session_time'], $board_config['board_timezone']),
'SHOUT_USERNAME' => $shout_username,
'U_VIEW_USER_PROFILE' => $user_profile,
'USER_RANK' => $user_rank,
'RANK_IMAGE' => $rank_image,
'IP_IMG' => $ip_img,
'IP' => $ip,
'MINI_POST_IMG' => $mini_post_img,
'L_MINI_POST_ALT' => $mini_post_alt,
'DELETE_IMG' => $delshout_img,
'DELETE' => $delshout,
'CENSOR_IMG' => $censorshout_img,
'CENSOR' => $censorshout,
'USER_JOINED' => $user_joined,
'USER_POSTS' => $user_posts,
'USER_FROM' => $user_from,
'USER_AVATAR' => $user_avatar,
'U_SHOUT_ID' => $shout_row['shout_id']
));
auch so einstellen, daß die Beiträge nach einem halben Tag (12Std.) automatisch gelsöcht werden?ACP hat geschrieben:Beiträge in der Shoutbox automatisch löschen
Anzahl der Tage bis die Beiträge gelöscht werden. 0 (Null) eingeben, um diese Funktion zu deaktivieren.
Code: Alles auswählen
$sql = "DELETE FROM " . SHOUTBOX_TABLE. " WHERE shout_session_time<=".(time()-86400*$board_config['prune_shouts']);