PDA


View Full Version : [CMPS v2.0 RC1][ibProArcade v2.5.1] Last 5 Added Arcade Games


untold4you
06-16-2005, 06:52 PM
Shows last 5 added arcade games in a side left or right block.
Use 5newestgames.module for the center version.

Screenshot(Side version):

http://www.powerplant.be/ppimages/last5addeds.gif

Screenshot(Center version):

http://www.powerplant.be/ppimages/last5added.gif

Install:

Just upload the module file and magic happens ;)

Options:

Open:

forum/modules/arcade_last5_side.php for the side version
OR forum/modules/arcade_last5.php for the center version

Find:


/* ### EDIT OPTIONS #########################################################*/

/* Set number of games to show */
$show_numb = 5;

/* Path to arcade images */
$path = "forum/arcade/images/"; //---> Do not forget the '/' --->

/* ################################################# NO EDIT NEEDED BELOW ###*/


$show_numb = Number of new games shown in the module.
$path = Path to your arcade images - Set this to the correct path to show your images.

Gr3łTz

MP3
06-23-2005, 06:33 AM
cool :)

untold4you
06-25-2005, 07:40 PM
UPDATE: Fix so password protected games are not shown in the list.

Fix for side block & center block:

open:

Side block:
/forum/modules/arcade_last5_side.php

Center block:
/forum/modules/arcade_last5.php

Find:

$game = $DB_site->query(
"SELECT gid, gname, gtitle, gwords, added FROM
" . TABLE_PREFIX . "games_list WHERE active='1' ORDER BY added DESC LIMIT ".$show_numb
);

Replace with:

$game = $DB_site->query("
SELECT l.gid, l.gname, l.gtitle, l.gwords, l.gcat, l.active, l.added
FROM " . TABLE_PREFIX . "games_list AS l, " . TABLE_PREFIX . "
games_cats AS c WHERE l.active='1' AND l.gcat=c.c_id AND c.password='' ORDER BY l.added DESC LIMIT ".$show_numb
);


Gr3łTz...

katerri
07-15-2005, 04:13 PM
I installed this mod and it's working, except the game icons are showing up as red X's. When I look at the properties, the image path appears to be correct: http://www.mysite.com/forum/arcade/images/asteroids2.gif, etc.

Any suggestions?

CANCEL. Found the problem. my path should be forums with an 's', not forum.

elisios
10-30-2005, 08:32 PM
The file you have uploaded is not a valid module file.

that what it says when i try to upload it from the admincp any ideas?

untold4you
10-31-2005, 02:16 AM
What version are of vba are you using ?

Siemens
11-14-2005, 06:51 AM
Hi i using the vba_cmps 1.0.1 is there a chance to make the hack for this Version?

deta
01-06-2006, 07:22 PM
The file you have uploaded is not a valid module file.

Any Idee?
I have vbadvance 2 the aktually...

cu Deta

Exco
01-07-2006, 12:37 PM
Thanx ;)

ga2000gt
01-07-2006, 01:17 PM
I get this error :
Fatal error: Call to a member function on a non-object in /home/sheepfea/public_html/forums/modules/arcade_last5.php on line 39

I noticed that when I edit the arcade_last5.php file it doesn't let me reupload it so $path = "/forum/arcade/images/" never gets changed to /forums. Gonna see what my host says.

ThePhlexican
07-07-2007, 08:49 PM
This shyt doesn't work!!!!

Fatal error: Call to a member function on a non-object in /hsphere/........../forumz/modules/arcade_last5_side.php on line 46