The following warnings occurred:
Warning [2] session_start(): open(/mnt/home/leefish/tmp/sess_1hoqfu9fsronlig70vt4lenig2, O_RDWR) failed: Disk quota exceeded (122) - Line: 559 - File: inc/plugins/flyover.php PHP 5.6.40-81+0~20241224.91+debian12~1.gbp02231c (Linux)
File Line Function
[PHP]   errorHandler->error
/inc/plugins/flyover.php 559 session_start
/inc/class_plugins.php 101 flyover_global_end
/global.php 727 pluginSystem->run_hooks
/showthread.php 22 require_once



  • Random Games on Pro Portal
  • Uploader:leefish
#1
As requested by David Edison, a random games Pro Portal block.

Assumptions:
You have ProPortal and the games section addons installed

Warning
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.

Installation
Unpack the rar file and upload the contents to forum root.

There are two png images included to show the rating stars.

Exclamation IE8 and below does not support this kind of image manipulation so in those browsers there will be no image for the rating. Exclamation

Screenshots
Random Games on Pro Portal Screenshot Random Games on Pro Portal Screenshot Random Games on Pro Portal Screenshot
Download link
Filesize 4.36 KB | File Name random_games_on_Pro_portal.rar | # of Downloads 65  
Comments
#2 14-03-2012 
This plugin contains hard coded values (a problem with ProPortal which is out of my control). In order to change the number of games shown you need to open the portal block and find the following code:

Code:
$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.
The site don't jive? PRESS F5 Flower

#3 16-03-2012 
Thanks!
davidedison, proud to be a member of LeeFish since Nov 2011.


Sorry, that is a members only option
Warning [2] Unknown: open(/mnt/home/leefish/tmp/sess_1hoqfu9fsronlig70vt4lenig2, O_RDWR) failed: Disk quota exceeded (122) - Line: 0 - File: Unknown PHP 5.6.40-81+0~20241224.91+debian12~1.gbp02231c (Linux)
File Line Function
[PHP]   errorHandler->error
Warning [2] Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/mnt/home/leefish/tmp) - Line: 0 - File: Unknown PHP 5.6.40-81+0~20241224.91+debian12~1.gbp02231c (Linux)
File Line Function
[PHP]   errorHandler->error