gesloten en verplaatste topics naar onderen
Geplaatst: 11 nov 2008, 22:32
Ik zoek een mod die alle gesloten en verplaatste berichten naar beneden verplaatst in een pagina.
Nederlandstalige phpBB Support
https://www.phpbb.nl/forums/
Code: Selecteer alles
OPEN: viewforum.php
--------
ZOEK:
--------
// Grab just the sorted topic ids
$sql = 'SELECT t.topic_id
PLAATS HIERACHTER:
------------------------------
, topic_status
ZOEK:
--------
while ($row = $db->sql_fetchrow($result))
{
$topic_list[] = (int) $row['topic_id'];
}
VERVANG DOOR:
-----------------------
$closed_topics = array();
while ($row = $db->sql_fetchrow($result))
{
if ( $row['topic_status'] == ITEM_LOCKED )
{
$closed_topics[] = (int) $row['topic_id'];
}
else
{
$topic_list[] = (int) $row['topic_id'];
}
}
$topic_list = array_merge($topic_list, $closed_topics);
Code: Selecteer alles
#OPEN: viewforum.php
#--------
#ZOEK:
#--------
// Grab just the sorted topic ids
$sql = 'SELECT t.topic_id
#PLAATS HIERACHTER:
#------------------------------
, topic_status
#ZOEK:
#--------
while ($row = $db->sql_fetchrow($result))
{
$topic_list[] = (int) $row['topic_id'];
}
#VERVANG DOOR:
#-----------------------
$closed_topics = array();
$move_topics = array();
while ($row = $db->sql_fetchrow($result))
{
if ( $row['topic_status'] == 2 )
{
$move_topics[] = (int) $row['topic_id'];
}
elseif ( $row['topic_status'] == 1 )
{
$closed_topics[] = (int) $row['topic_id'];
}
else
{
$topic_list[] = (int) $row['topic_id'];
}
}
$topic_list = array_merge($topic_list, $move_topics, $closed_topics);