Verfasst: 17.10.2004 13:29
Ja, funktioniert und die beiden Zeilen sind bei mir auch drinnen 

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
viewforum.php
#
#-----[ FIND ]------------------------------------------------
#
//
// All announcement data, this keeps announcements
// on each viewforum page ...
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//
// All GLOBAL announcement data, this keeps GLOBAL announcements
// on each viewforum page ...
//
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2
WHERE t.topic_poster = u.user_id
AND p.post_id = t.topic_last_post_id
AND p.poster_id = u2.user_id
AND t.topic_type = " . POST_GLOBAL_ANNOUNCE . "
ORDER BY t.topic_last_post_id DESC ";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't obtain topic information", "", __LINE__, __FILE__, $sql);
}
$topic_rowset = array();
$total_announcements = 0;
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_announcements++;
}
$db->sql_freeresult($result);
// End add - Global announcement MOD
#
#-----[ FIND ]------------------------------------------------
#
$topic_rowset = array();
$total_announcements = 0;
#
#-----[ REPLACE WITH ]----------------------------------------
#
// 2 rows deleted - Global announcement MOD
#
#-----[ FIND ]------------------------------------------------
#
AND t.topic_type <> " . POST_ANNOUNCE . "
#
#-----[ AFTER, ADD ]------------------------------------------
#
AND t.topic_type <> " . POST_GLOBAL_ANNOUNCE . "
#
#-----[ FIND ]------------------------------------------------
#
'FOLDER_ANNOUNCE_NEW_IMG' => $images['folder_announce_new'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start add - Global announcement MOD
'FOLDER_GLOBAL_ANNOUNCE_IMG' => $images['folder_global_announce'],
'FOLDER_GLOBAL_ANNOUNCE_NEW_IMG' => $images['folder_global_announce_new'],
// End add - Global announcement MOD
#
#-----[ FIND ]------------------------------------------------
#
'L_ANNOUNCEMENT' => $lang['Post_Announcement'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start add - Global announcement MOD
'L_GLOBAL_ANNOUNCEMENT' => $lang['Post_global_announcement'],
// End add - Global announcement MOD
#
#-----[ FIND ]------------------------------------------------
#
if( $topic_type == POST_ANNOUNCE )
{
$topic_type = $lang['Topic_Announcement'] . ' ';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start add - Global announcement MOD
else if( $topic_type == POST_GLOBAL_ANNOUNCE )
{
$topic_type = $lang['Topic_global_announcement'] . ' ';
}
// End add - Global announcement MOD
#
#-----[ FIND ]------------------------------------------------
#
if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE )
{
$folder = $images['folder_announce'];
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// Start add - Global announcement MOD
if( $topic_rowset[$i]['topic_type'] == POST_GLOBAL_ANNOUNCE )
{
$folder = $images['folder_global_announce'];
$folder_new = $images['folder_global_announce_new'];
}
else
// End add - Global announcement MOD