RHCP adlı üyeden alıntı: mesajı görüntüle

Aşağıdakileri yapmanız gerekmez ama benim için güzel değişiklikler.
İndex'deki oyunları random olarak göstermek isterseniz. (Oyunlar devamlı değişik gözükür ve anasayfa güncelmiş gibi gözükebilir.)
Aşağıdaki kodu bulun
    // Get files in this category
    $files_query = mysql_query("SELECT title, icon, iconlocation, fileid, description, timesplayed, rating FROM ". $tbl_prefix ."files WHERE category  = '". $category_row['catid'] ."' && status = '1' || category  IN (SELECT catid FROM ". $tbl_prefix ."categories WHERE status = '1' && parentcategory = '". $category_row['catid'] ."') && status = '1' ORDER BY dateadded DESC, fileid DESC LIMIT ". $settings['max_files_index']);
Aşağıdaki kod ile değiştirin.
    // Get files in this category
    $files_query = mysql_query("SELECT title, icon, iconlocation, fileid, description, timesplayed, rating FROM ". $tbl_prefix ."files WHERE category  = '". $category_row['catid'] ."' && status = '1' || category  IN (SELECT catid FROM ". $tbl_prefix ."categories WHERE status = '1' && parentcategory = '". $category_row['catid'] ."') && status = '1' ORDER BY RAND() LIMIT ". $settings['max_files_index']);
Ve herhangi bir kategoriye tıkladığınızda oyunların harf sıralamasına göre değilde, son eklenen oyun sıralamasına göre değiştirmek isterseniz. (Bunun yapmamın amacı kategoriye tıklandığında son güncel videoları ilk sırada göstermek)
Aşağıdaki kodu bulun
$files_query = mysql_query("SELECT fileid, title, description, icon, iconlocation, timesplayed, scores FROM ". $tbl_prefix ."files WHERE category = '". $category_id ."' && status = '1' ORDER BY title ASC LIMIT ". $start_here .", ". $settings['browse_per_page']);
ve aşağıdaki kod ile değiştirin.
$files_query = mysql_query("SELECT fileid, title, description, icon, iconlocation, timesplayed, scores FROM ". $tbl_prefix ."files WHERE category = '". $category_id ."' && status = '1' ORDER BY fileid DESC LIMIT ". $start_here .", ". $settings['browse_per_page']);
Eğer burayıda random olarak göstermek isterseniz aşağıdaki kod ile değiştirin.
$files_query = mysql_query("SELECT fileid, title, description, icon, iconlocation, timesplayed, scores FROM ". $tbl_prefix ."files WHERE category = '". $category_id ."' && status = '1' ORDER BY RAND() LIMIT ". $start_here .", ". $settings['browse_per_page']);
Not:Bunları yapmadan önce yinede dosylarınızın yedeklerini almayı unutmayın..
burdaki degisiklikler hangi dosya?