Detail Web Design

SMF => SMF 2.0 Sürümü => SMF 2.0 Sorunlar | Çözümler => Konuyu başlatan: Admin - 05 Mar 2019, 03:58

Başlık: Smf Kategori Sıralama Sorunu Çözümü
Gönderen: Admin - 05 Mar 2019, 03:58
Source/Subs-Db-mysql.php'da
Bul:
Kod Seç
// Decide which connection to use.
$connection = $connection == null ? $db_connection : $connection;
Değiştir;
Kod Seç
// Decide which connection to use.
$connection = $connection == null ? $db_connection : $connection;

// Special queries that need processing.
$replacements = array(
'alter_table_boards' => array(
'~(.+)~' => '',
),
'boardindex_fetch_boards' => array(
'~(.)$~' => '$1 ORDER BY b.board_order',
),
'messageindex_fetch_boards' => array(
'~(.)$~' => '$1 ORDER BY b.board_order',
),
'order_by_board_order' => array(
'~(.)$~' => '$1 ORDER BY b.board_order',
),
);

if (isset($replacements[$identifier]))
$db_string = preg_replace(array_keys($replacements[$identifier]), array_values($replacements[$identifier]), $db_string);

if (trim($db_string) == '')
return false;