- Size: 4.36 KB
- MD5 Hash: cbb97f8e2d77d230ef4798bb7a55f39b
- Downloads: 44
- Last Updated: 14-03-2012, 07:52 PM
- Uploaded: 14-03-2012, 07:52 PM
- MyBB Compatibility: 1.6
You have ProPortal and the games section addons installed
This block uses "order by RAND". This is NOT optimised for forums with a lot of games and may cause slow loading and excessive server load.
Unpack the rar file and upload the contents to forum root.
There are two png images included to show the rating stars.
IE8 and below does not support this kind of image manipulation so in those browsers there will be no image for the rating.
$query = $db->query("SELECT g.title, g.gid, g.active, g.rating, g.name FROM ".TABLE_PREFIX."games g ORDER by RAND() DESC LIMIT 0, 4");
Change the number 4 to however many games you want to display.