spycam wrote:

login: test
pass: test

It looks like your arcade_play.php differs from the file in my package.
There is one missing query if you play a game:

UPDATE arcade_games SET game_played = game_played+1 WHERE game_id = "14"

This query is the "games played" counter.
Please delete your arcade_play.php and replace the file with the one in my download.

quaker wrote:

can u not add this ?

<?php require_once 'SimpleViewer/SimpleViewerConfig.xml'; ?>
<?php include 'SimpleViewer/SimpleViewerConfig.xml';?>

Yes, I´ve test it too, but doesnt work.
I´ve tested also the other way. Changed to the SimpleViewer directory, edit index.php and paste some punbb settings:

define('PUN_ROOT', '../');
require PUN_ROOT.'include/common.php';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';

blablablabla "SimpleViewer" blablabla

require PUN_ROOT.'footer.php';

Then I´ve copied the "style" and "img" folder from punbb root to the SimpleViewer folder and voila ... SimpleViewer started.
Ok, not 100% perfect but it started. The links in punbb header are bashed up. For example the "forum" link is not http://mysite/forum/index.php , it´s http://mysite/forum/SimpleViewer/index.php

spycam wrote:

Ok it is work but doesnt work function: Times played: 0
Can u help me?
login: test
pass: test

Please enable punbb debug mode. Edit /include/common.php and remove the two slashes in front of:
//define('PUN_DEBUG', 1);   and   //define('PUN_SHOW_QUERIES', 1);

// Enable DEBUG mode by removing // from the following line
define('PUN_DEBUG', 1);

// This displays all executed queries in the page footer.
define('PUN_SHOW_QUERIES', 1);

You will see more error details.

A quick fix for those who have the error: Impossible to select the latest score.

This is a version problem of php 4.

Please edit arcade.php edit line 131:

$sql = 'SELECT game_name, username, rank_date, rank_score, id, game_id FROM '.$db->prefix.'arcade_ranking, '.$db->prefix.'arcade_games, '.$db->prefix.'users WHERE rank_game = game_filename AND '.$db->prefix.'users.id = rank_player GROUP BY rank_date ORDER BY rank_date DESC LIMIT 1';

and change it to:

$sql = 'SELECT game_name, username, rank_date, rank_score, id, game_id FROM '.$db->prefix.'arcade_ranking, '.$db->prefix.'arcade_games, '.$db->prefix.'users WHERE rank_game = game_filename AND '.$db->prefix.'users.id = rank_player GROUP BY rank_date ORDER BY rank_date DESC LIMIT 1';

This should fix the problem.

spycam wrote:

I installed last mod on clean database and i have error:
Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/ruspra/public_html/go/include/functions.php on line 955
An error was encountered
Error: Impossible to select the latest score..

This is a php problem one solution is to disable the page compressing in php.
Search in config/phpwcms/conf.inc.php for the following line:

$phpwcms["compress_page"] = 9; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)

Set in this line a 0 (zero).

If this doesn´t help copy your error and paste it in google you will found a lot of help.  ;-)

af3 wrote:

ango -- how to show more than one tophighscorers? For example, if one game there are two users having the same score. This is reflected in the Top Highscore champion count but the additional user is not indicated in the top highscores column.

Yes I agree with you. Think it´s better to show both users with the same highscore also on the same rank.
I´m working on a better statistic/ranking page wich displays all users scores.  ;-)


I´ve tested your code but it doesnt work.

Can't read file: SimpleViewerConfig.xml

SimpleViewerConfig.xml is used in SimpleViewerConfig.php and SimpleViewerFunctions.php.
Ok, it sounds simple but is there a command in punbb to change the directory? Like ind DOS "cd /SimpleViewer" ...

pogenwurst wrote:

Where is SimpleViewer located in relation to your forum install?

This is my forum structure:


quaker wrote:

man... just get my lightbox galley script..hahaha..
DrJ it is done with a slit mod to the header

Yes, looks nice but I think SimpleViewer is better.  ;-)

yes I´ve read FAQ´s but I don´t know how to integrate it. It´s to difficult for me.  :-(
The blank template is a good start, but how does it continue?
How do I change the directory in the template script, for example this index.php in the dir /gallery looks like this:


header("Expires: Mon, 31 Dec 2003 12:34:56 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") ." GMT");
header("Pragma: no-cache");
header("Cache-Control: no-cache");
header("Cache-Control: post-check=0, pre-check=0", false);

// Load the SimpleViewer configuration.
require_once '[b]SimpleViewerConfig.php[/b]';

// Load the SimpleViewer functions library.
require_once '[b]SimpleViewerFunctions.php[/b]';

// Get the current number of albums.
$dirList = getDirList('./', '', false, 'dirs');

// SimpleViewer is not installed yet.
if ($dirList['Number'] == 0) {

<!DOCTYPE html 
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <title><?php echo (!empty($simpleViewer['title']) ? $simpleViewer['title'] : $simpleViewer['defaultTitle']); ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="SimpleViewerCss.php" />
        <?php require_once '[b]SimpleViewer.php[/b]'; ?>

You can see the script needs to load 3 other scripts in the same directory.
Sorry, I don´t have the know how to do that.

Game Pack 7 added. :-)

I´ve also updated my mod.
- added mini thumbs for "new games" and "most played" games
- added on/off for the statistic block (Javascript must be enabled!)
- added newest user score
- added user top highscore table (more statistics in the next update)
  (click on the user link in the main arcade page of each player to see his top highscores)
- optical improvements
- fix for MySQL 4

... have fun

SimpleViewer is a free, customizable Flash image viewing application.
I´d like to integrate SimpleViewer in PunBB.

I´ve tried a lot, however I don´t get ahead.
<pun_include "blablabla.php"> doesn´t work, the script must change to another folder to load some other configuration files.
The programm also uses his own stylesheets.

If I start the script directly all is working fine. You can see it on my forum.
But for a better looking I need the header, footer and styles of my punbb.

Shizzled wrote:

Ango do you use msn or any other messenger programe?

I really need some help with setting up this mod. Please can you assist me smile
Rick@shizzled.com -Msn. TY.

you have mail  :-)

it looks like you have installed PANDARK´s arcade mod ,

Nico´s, DHARMIL and my mod are different! I´ve made all games addon packs compatible to DHARMIL and my mod.
Just try our mod.

Added Game Pack 6!  :-)

... have fun

Shizzled wrote:

i'v looked all over for a 'Url Action Editor' and have been unseuccesful sad is paying $50 really the only way?

I would just download your game packs but rapidshare is a bitch sad i have never been able to dl from there.

Ok, I make some mirrors ...

Did you use my mod?

Cia wrote:

Sometimes it hangs so long it comes up with a 'Cannot find server' error (the forums load instantly however). The error that comes up is:

An error was encountered
Error: Unable to fetch total game count.

The arcade url is http://www.perfectdefect.com/forum/arcade.php


As the message says its a server problem.
I´ve visit your forum, all is working fine.

please post the access error message.

Hi Tubby,
maybe in future updates. Think Dharmil had the same idea ...

Great mod!
One Question: I only see the upload slots after clicking on preview. Did I make something wrong?

Cia wrote:

I am also having the problem where Times Played: 0 does not increment. Any ideas? Thanks.

Did all games not increment the "time played" var? Is there at least one highscore entry of the game that not incremet in the database?

Hi pseric,
in earlier versions of the mod was an error in the highscore table. Think it´s fixed now.
On your side the score for example "simon" is displayed correct.

Maybe if all games played after your update at least ones, the entries in the database are ok.

iatbm wrote:

I hate it ... I installed this mod great and get it to work ... now total games played is showing 0 - zero .... uhh I am angry smile

All was working ... maybe again an ansi problem?

You can test the soccer game on my forum. I make tomorrow a package for you.
Yeah, some football matches are nearby my city