Verfasst: 21.03.2004 00:28
Ja das tut er. Meinst du man könnte das auf den anderen übertragen ?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
#
#---------[ FINDE ]------------------
#
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_topics++;
}
#
#---------[ MIT FOLGENDEM ERSETZEN ]------------------
#
$topics_on_page = '';
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_topics++;
$topics_on_page .= ( ( $topics_on_page != '' ) ? ', ' : '' ) . $row['topic_id'];
}
#
#---------[ FINDE ]------------------
#
for($i = 0; $i < $total_topics; $i++)
{
#
#---------[ DANACH EINFÜGEN ]------------------
#
$posted_topics = array();
if ( $userdata['session_logged_in'] && !empty($topics_on_page))
{
$sql = "SELECT p.topic_id FROM " . POSTS_TABLE . " p
WHERE p.topic_id IN ($topics_on_page)
AND p.poster_id = " . $userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$posted_topics[] = $row['topic_id'];
}
}
#
#---------[ FINDE ]------------------
#
if( $topic_rowset[$i]['topic_type'] == POST_GLOBAL_ANNOUNCE )
{
$folder = $images['folder_global_announce'];
$folder_new = $images['folder_global_announce_new'];
}
else
if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE )
{
$folder = $images['folder_announce'];
$folder_new = $images['folder_announce_new'];
}
else if( $topic_rowset[$i]['topic_type'] == POST_STICKY )
{
$folder = $images['folder_sticky'];
$folder_new = $images['folder_sticky_new'];
}
else if( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED )
{
$folder = $images['folder_locked'];
$folder_new = $images['folder_locked_new'];
}
else
{
if($replies >= $board_config['hot_threshold'])
{
$folder = $images['folder_hot'];
$folder_new = $images['folder_hot_new'];
}
else
{
$folder = $images['folder'];
$folder_new = $images['folder_new'];
}
}
#
#---------[ MIT FOLGENDEM ERSETZEN ]------------------
#
if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE )
{
$folder = ( in_array($topic_id, $posted_topics) ) ? $images['folder_announce_own'] : $images['folder_announce'];
$folder_new = ( in_array($topic_id, $posted_topics) ) ? $images['folder_announce_new_own'] : $images['folder_announce_new'];
}
else if( $topic_rowset[$i]['topic_type'] == POST_GLOBAL_ANNOUNCE )
{
$folder = ( in_array($topic_id, $posted_topics) ) ? $images['folder_announce_own'] : $images['folder_global_announce'];
$folder_new = ( in_array($topic_id, $posted_topics) ) ? $images['folder_announce_new_own'] : $images['folder_global_announce_new'];
}
else if( $topic_rowset[$i]['topic_type'] == POST_STICKY )
{
$folder = ( in_array($topic_id, $posted_topics) ) ? $images['folder_sticky_own'] : $images['folder_sticky'];
$folder_new = ( in_array($topic_id, $posted_topics) ) ? $images['folder_sticky_new_own'] : $images['folder_sticky_new'];
}
else if( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED )
{
$folder = ( in_array($topic_id, $posted_topics) ) ? $images['folder_lock_own'] : $images['folder_locked'];
$folder_new = ( in_array($topic_id, $posted_topics) ) ? $images['folder_lock_new_own'] : $images['folder_locked_new'];
}
else
{
if($replies >= $board_config['hot_threshold'])
{
$folder = ( in_array($topic_id, $posted_topics) ) ? $images['folder_hot_own'] : $images['folder_hot'];
$folder_new = ( in_array($topic_id, $posted_topics) ) ? $images['folder_new_hot_own'] : $images['folder_hot_new'];
}
else
{
$folder = ( in_array($topic_id, $posted_topics) ) ? $images['folder_own'] : $images['folder'];
$folder_new = ( in_array($topic_id, $posted_topics) ) ? $images['folder_new_own'] : $images['folder_new'];
}
}
Ich weiss..Sujao hat geschrieben:Hab mich eben total gefreut, das du es gemacht hast und hab die Datei gemodet, aber dann ist mir beim uploaden aufgefallen, dass du die falsche Datei verändert hast.