frankenberrie
10-27-2004, 10:00 PM
ORGANIZE YOUR V3Arcade CATEGORIES
This 30 second mod that will help you organize your V3Arcade Categories. I have included a few different choices.
1) Sort categories by name
2) Sort categories by most games available
3) Sort categories by least games available
Files to modify: ARCADE.PHP - (very simple)
I cannot stress to you more - make sure you keep a backup of your original files
Find:
SELECT A.categoryID,A.categorytitle,A.categorydescr, count(*) 'total' FROM " . TABLE_PREFIX . "gamescat A, " . TABLE_PREFIX . "games B WHERE A.categoryID = B.categoryID group by A.categoryID
If you wanna sort your categories by name, replace with:
SELECT A.categoryID,A.categorytitle,A.categorydescr, count(*) 'total' FROM " . TABLE_PREFIX . "gamescat A, " . TABLE_PREFIX . "games B WHERE A.categoryID = B.categoryID group by A.categoryID ORDER BY categorytitle ASC
If you wanna sort your categories by games available (least-most), replace with:
SELECT A.categoryID,A.categorytitle,A.categorydescr, count(*) 'total' FROM " . TABLE_PREFIX . "gamescat A, " . TABLE_PREFIX . "games B WHERE A.categoryID = B.categoryID group by A.categoryID ORDER BY total ASC
If you wanna sort your categories by games available (most-least), replace with:
SELECT A.categoryID,A.categorytitle,A.categorydescr, count(*) 'total' FROM " . TABLE_PREFIX . "gamescat A, " . TABLE_PREFIX . "games B WHERE A.categoryID = B.categoryID group by A.categoryID ORDER BY total DESC
Save your file and uload - Don't forget to click install if you use this mod.
EDIT:
this mod is required:
https://vborg.vbsupport.ru/showthread.php?t=65967&highlight=Arcade+Category
This 30 second mod that will help you organize your V3Arcade Categories. I have included a few different choices.
1) Sort categories by name
2) Sort categories by most games available
3) Sort categories by least games available
Files to modify: ARCADE.PHP - (very simple)
I cannot stress to you more - make sure you keep a backup of your original files
Find:
SELECT A.categoryID,A.categorytitle,A.categorydescr, count(*) 'total' FROM " . TABLE_PREFIX . "gamescat A, " . TABLE_PREFIX . "games B WHERE A.categoryID = B.categoryID group by A.categoryID
If you wanna sort your categories by name, replace with:
SELECT A.categoryID,A.categorytitle,A.categorydescr, count(*) 'total' FROM " . TABLE_PREFIX . "gamescat A, " . TABLE_PREFIX . "games B WHERE A.categoryID = B.categoryID group by A.categoryID ORDER BY categorytitle ASC
If you wanna sort your categories by games available (least-most), replace with:
SELECT A.categoryID,A.categorytitle,A.categorydescr, count(*) 'total' FROM " . TABLE_PREFIX . "gamescat A, " . TABLE_PREFIX . "games B WHERE A.categoryID = B.categoryID group by A.categoryID ORDER BY total ASC
If you wanna sort your categories by games available (most-least), replace with:
SELECT A.categoryID,A.categorytitle,A.categorydescr, count(*) 'total' FROM " . TABLE_PREFIX . "gamescat A, " . TABLE_PREFIX . "games B WHERE A.categoryID = B.categoryID group by A.categoryID ORDER BY total DESC
Save your file and uload - Don't forget to click install if you use this mod.
EDIT:
this mod is required:
https://vborg.vbsupport.ru/showthread.php?t=65967&highlight=Arcade+Category