um every thing works perfect for me?

ango wrote:

Ok, it´s better to convert all to lowercase for future releases. thanx for the hint

thanks

yeah i used this ango

<img src="yetisports8.jpg"  width="200" height="85"> use html tags


and the lower and upcase some server you have to have the correct case in file name or they dont load the server will think its not there

modfied it and made it loko like this
http://img343.imageshack.us/img343/8539/show8ef.jpg

to view live go to:
http://forum.dharmil.info/arcade.php

the arcade mod is llokg nice good job and your ghame install files for engilh are not good because when the file is installed it sets the name in llowercase how you set it but in the games dictony the staring for some of the games is uper case

thanks for fixeing the game problem

mines is a little dinffrent from angos but its just about the same code i just fixed or added some thing's ango missed and the one on punres is diffrent the code is very diffrent

my arcade is there
http://forum.dharmil.info/

but on my arcade i have added a high score box with is not included in the curent avalabe verson so soom i will put it in there and alos ango is working on a search function for the arcade

they dont work ofr me eather for some reson

ooo alright

no problem i am here to help

nice ty

nice the search function will be bvery help full and are you creating any new game packs?

ango have you added any thing new to the arcade?

38

(11 replies, posted in PunBB 1.2 show off)

now i back up my data base every day just incase some thing like this happnes again

install_mod.php

<?php
/***********************************************************************/

// Some info about your mod.
$mod_title      = 'Punbb_Arcade_Games';
$mod_version    = '1.0';
$release_date   = '2006-04-20';
$author         = 'ANGO, Dharmil, Pandark';
$author_email   = ' ';

// Versions of PunBB this mod was created for. Minor variations (i.e. 1.2.4 vs 1.2.5) will be allowed, but a warning will be displayed.
$punbb_versions    = array('1.2.10', '1.2.11');

// Set this to false if you haven't implemented the restore function (see below)
$mod_restore    = true;


// This following function will be called when the user presses the "Install" button
function install()
{
    global $db, $db_type, $pun_config;

            $db->query("CREATE TABLE ".$db->prefix."arcade_ranking (
            `rank_id` SMALLINT(5) NOT NULL auto_increment,
            `rank_game` varchar(50) NOT NULL default '0',
            `rank_player` SMALLINT(5) NOT NULL default '0',
            `rank_score` double NOT NULL default '0',
            `rank_topscore` TINYINT(1) NOT NULL default '0',
            `rank_date` INTEGER UNSIGNED default NULL,
            PRIMARY KEY  (`rank_id`)
            ) ENGINE=MyISAM ") or error('Unable to add Table "arcade_ranking" ', __FILE__, __LINE__, $db->error());
                    
            $db->query("CREATE TABLE ".$db->prefix."arcade_games (
              `game_id` SMALLINT(5) NOT NULL auto_increment,
              `game_name` varchar(50) NOT NULL default '',
              `game_filename` varchar(30) NOT NULL default '',
              `game_desc` text NOT NULL,
              `game_image` varchar(200) NOT NULL default '',
              `game_width` smallint(3) NOT NULL default '550',
              `game_height` smallint(3) NOT NULL default '400',
              `game_cat` TINYINT(3) NOT NULL default '0',
              `game_played` smallint(5) NOT NULL default '0',
              PRIMARY KEY  (`game_id`)
            ) ENGINE=MyISAM AUTO_INCREMENT=6") or error('Unable to add Table "arcade_games" ', __FILE__, __LINE__, $db->error());


// Config
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_sort", "DESC")') or error('Unable to add arcade_sort" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_showtop", "1")') or error('Unable to add "arcade_showtop" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_numgames", "10")') or error('Unable to add arcade_numgames" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_numchamps", "5")') or error('Unable to add "arcade_numchamps" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_live", "1")') or error('Unable to add arcade_live" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_numnew", "10")') or error('Unable to add arcade_numnew" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_mostplayed", "10")') or error('Unable to add arcade_mostplayed" in config table', __FILE__, __LINE__, $db->error());

// Add games.
$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Balloon Hunter", "balloonhunter", "Shoot down the balloons before they leave your reach.<br>Accuracy, timing and power are everything in this game.", "balloonhunter.jpg", 550, 400)') or error('Unable to add game Balloon Hunter', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Breakit", "breakit", "Use YOUR MOUSE to move the base, hit the ball against the brick wall to breakthrough and proceed onto the next level.<br>Be sure to collect the points and power ups. Avoid power downs! There are 50 unique stages to play.", "breakit.jpg", 640, 480)') or error('Unable to add game Breakit', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Diamond Mines", "diamondmine", "The screen is full of gems and you must move the checks around to create three of the same kind of gem in a row.", "diamondmine.gif", 550, 400)') or error('Unable to add game Diamond Mines', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Tetrollapse", "tetrollapse", "You should not only escape the over-filling of the board but also sort out the figures which are on the board.<br>If the figure disappears you will pass to the next level where another figure is preparing for you.", "tetrollapse.jpg", 640, 480)') or error('Unable to add game Tetrollapse', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Frogger", "frogger", "The object of this game is to guide a frog to its home.<br>To do so, the player must get frogs to successfully dodge cars and navigate a river full of hazards.", "frogger.jpg", 400, 450)') or error('Unable to add game Frogger', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Space Invaders", "invaders", "Taito had the inspired idea around 1978 that killing aliens was extremely good fun.<br>So they invented a game called Space Invaders.", "invaders.jpg", 520, 440)') or error('Unable to add game Space Invaders', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Reel Gold", "reelgold", "Move your cart around on the rails and fire the rope down to reel in gold but avoid hitting rocks.", "reelgold.jpg", 550, 450)') or error('Unable to add game Reel Gold', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Spank The Monkey", "spankmonkey", "Spank the monkey as hard as you can.", "spankmonkey.jpg", 850, 400)') or error('Unable to add game Spank The Monkey', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Wheelchair Speartoss", "speartoss", "How far can you throw the spear?", "speartoss.gif", 625, 360)') or error('Unable to add game Wheelchair Speartoss', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Speartoss 5 Shots", "speartoss5shots", "How far can you throw the spear?", "speartoss5shots.jpg", 625, 360)') or error('Unable to add game Speartoss 5 Shots', __FILE__, __LINE__, $db->error());


}


// This following function will be called when the user presses the "Restore" button (only if $mod_uninstall is true (see above))
function restore()
{
    global $db, $db_type, $pun_config;
    switch ($db_type)
    {
        default:
    $db->query('DROP TABLE '.$db->prefix.'arcade_ranking') or error('Unable to drop table "arcade_ranking"', __FILE__, __LINE__, $db->error());
    $db->query('DROP TABLE '.$db->prefix.'arcade_games') or error('Unable to drop table "arcade_games"', __FILE__, __LINE__, $db->error());
    
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_sort"') or error('Unable to delete arcade_sort" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_showtop"') or error('Unable to delete "arcade_showtop" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_numgames"') or error('Unable to delete arcade_numgames" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_live"') or error('Unable to delete "arcade_live" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_numnew"') or error('Unable to delete "arcade_numnew" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_mostplayed"') or error('Unable to delete "arcade_mostplayed" from config table', __FILE__, __LINE__, $db->error());    
            break;
    }

}

/***********************************************************************/

// DO NOT EDIT ANYTHING BELOW THIS LINE!


// Circumvent maintenance mode
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

// We want the complete error message if the script fails
if (!defined('PUN_DEBUG'))
    define('PUN_DEBUG', 1);

// Make sure we are running a PunBB version that this mod works with
$version_warning = false;
if(!in_array($pun_config['o_cur_version'], $punbb_versions))
{
    foreach ($punbb_versions as $temp)
    {
        if (substr($temp, 0, 3) == substr($pun_config['o_cur_version'], 0, 3))
        {
            $version_warning = true;
            break;
        }
    }

    if (!$version_warning)
        exit('You are running a version of PunBB ('.$pun_config['o_cur_version'].') that this mod does not support. This mod supports PunBB versions: '.implode(', ', $punbb_versions));
}


$style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style'];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $mod_title ?> installation</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_config['o_default_style'].'.css' ?>" />
</head>
<body><?php
/***********************************************************************/

// Some info about your mod.
$mod_title      = 'Punbb_Arcade_Games';
$mod_version    = '1.0';
$release_date   = '2006-04-20';
$author         = 'ANGO, Dharmil, Pandark';
$author_email   = ' ';

// Versions of PunBB this mod was created for. Minor variations (i.e. 1.2.4 vs 1.2.5) will be allowed, but a warning will be displayed.
$punbb_versions    = array('1.2.10', '1.2.11');

// Set this to false if you haven't implemented the restore function (see below)
$mod_restore    = true;


// This following function will be called when the user presses the "Install" button
function install()
{
    global $db, $db_type, $pun_config;

            $db->query("CREATE TABLE ".$db->prefix."arcade_ranking (
            `rank_id` SMALLINT(5) NOT NULL auto_increment,
            `rank_game` varchar(50) NOT NULL default '0',
            `rank_player` SMALLINT(5) NOT NULL default '0',
            `rank_score` double NOT NULL default '0',
            `rank_topscore` TINYINT(1) NOT NULL default '0',
            `rank_date` INTEGER UNSIGNED default NULL,
            PRIMARY KEY  (`rank_id`)
            ) ENGINE=MyISAM ") or error('Unable to add Table "arcade_ranking" ', __FILE__, __LINE__, $db->error());
                    
            $db->query("CREATE TABLE ".$db->prefix."arcade_games (
              `game_id` SMALLINT(5) NOT NULL auto_increment,
              `game_name` varchar(50) NOT NULL default '',
              `game_filename` varchar(30) NOT NULL default '',
              `game_desc` text NOT NULL,
              `game_image` varchar(200) NOT NULL default '',
              `game_width` smallint(3) NOT NULL default '550',
              `game_height` smallint(3) NOT NULL default '400',
              `game_cat` TINYINT(3) NOT NULL default '0',
              `game_played` smallint(5) NOT NULL default '0',
              PRIMARY KEY  (`game_id`)
            ) ENGINE=MyISAM AUTO_INCREMENT=6") or error('Unable to add Table "arcade_games" ', __FILE__, __LINE__, $db->error());


// Config
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_sort", "DESC")') or error('Unable to add arcade_sort" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_showtop", "1")') or error('Unable to add "arcade_showtop" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_numgames", "10")') or error('Unable to add arcade_numgames" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_numchamps", "5")') or error('Unable to add "arcade_numchamps" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_live", "1")') or error('Unable to add arcade_live" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_new_games", "10")') or error('Unable to add arcade_new_games" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_most_played", "10")') or error('Unable to add arcade_most_played" in config table', __FILE__, __LINE__, $db->error());
// Set Configs
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '10' WHERE CONVERT( `conf_name` ) = 'arcade_most_played'") or error('Unable to update arcade_most_played in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = 'DESC' WHERE CONVERT( `conf_name` ) = 'arcade_sort'") or error('Unable to update arcade_sort in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '1' WHERE CONVERT( `conf_name` ) = 'arcade_showtop'") or error('Unable to update arcade_showtop in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '10' WHERE CONVERT( `conf_name` ) = 'arcade_numgames'") or error('Unable to update arcade_numgames in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '1' WHERE CONVERT( `conf_name` ) = 'arcade_live'") or error('Unable to update arcade_live in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '10' WHERE CONVERT( `conf_name` ) = 'arcade_new_games'") or error('Unable to update arcade_new_games in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '5' WHERE CONVERT( `conf_name` ) = 'arcade_numchamps'") or error('Unable to update arcade_numchamps in config', __FILE__, __LINE__, $db->error());



// Add games.
$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Balloon Hunter", "balloonhunter", "Shoot down the balloons before they leave your reach.<br>Accuracy, timing and power are everything in this game.", "balloonhunter.jpg", 550, 400)') or error('Unable to add game Balloon Hunter', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Breakit", "breakit", "Use YOUR MOUSE to move the base, hit the ball against the brick wall to breakthrough and proceed onto the next level.<br>Be sure to collect the points and power ups. Avoid power downs! There are 50 unique stages to play.", "breakit.jpg", 640, 480)') or error('Unable to add game Breakit', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Diamond Mines", "diamondmine", "The screen is full of gems and you must move the checks around to create three of the same kind of gem in a row.", "diamondmine.gif", 550, 400)') or error('Unable to add game Diamond Mines', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Tetrollapse", "tetrollapse", "You should not only escape the over-filling of the board but also sort out the figures which are on the board.<br>If the figure disappears you will pass to the next level where another figure is preparing for you.", "tetrollapse.jpg", 640, 480)') or error('Unable to add game Tetrollapse', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Frogger", "frogger", "The object of this game is to guide a frog to its home.<br>To do so, the player must get frogs to successfully dodge cars and navigate a river full of hazards.", "frogger.jpg", 400, 450)') or error('Unable to add game Frogger', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Space Invaders", "invaders", "Taito had the inspired idea around 1978 that killing aliens was extremely good fun.<br>So they invented a game called Space Invaders.", "invaders.jpg", 520, 440)') or error('Unable to add game Space Invaders', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Reel Gold", "reelgold", "Move your cart around on the rails and fire the rope down to reel in gold but avoid hitting rocks.", "reelgold.jpg", 550, 450)') or error('Unable to add game Reel Gold', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Spank The Monkey", "spankmonkey", "Spank the monkey as hard as you can.", "spankmonkey.jpg", 850, 400)') or error('Unable to add game Spank The Monkey', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Wheelchair Speartoss", "speartoss", "How far can you throw the spear?", "speartoss.gif", 625, 360)') or error('Unable to add game Wheelchair Speartoss', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Speartoss 5 Shots", "speartoss5shots", "How far can you throw the spear?", "speartoss5shots.jpg", 625, 360)') or error('Unable to add game Speartoss 5 Shots', __FILE__, __LINE__, $db->error());


}


// This following function will be called when the user presses the "Restore" button (only if $mod_uninstall is true (see above))
function restore()
{
    global $db, $db_type, $pun_config;
    switch ($db_type)
    {
        default:
    $db->query('DROP TABLE '.$db->prefix.'arcade_ranking') or error('Unable to drop table "arcade_ranking"', __FILE__, __LINE__, $db->error());
    $db->query('DROP TABLE '.$db->prefix.'arcade_games') or error('Unable to drop table "arcade_games"', __FILE__, __LINE__, $db->error());
    
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_sort"') or error('Unable to delete arcade_sort" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_showtop"') or error('Unable to delete "arcade_showtop" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_numgames"') or error('Unable to delete arcade_numgames" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_numchamps"') or error('Unable to delete "arcade_numchamps" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_live"') or error('Unable to delete arcade_live" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_new_games"') or error('Unable to delete arcade_new_games" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_most_played"') or error('Unable to delete arcade_most_played" from config table', __FILE__, __LINE__, $db->error());
            break;
    }

}

/***********************************************************************/

// DO NOT EDIT ANYTHING BELOW THIS LINE!


// Circumvent maintenance mode
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

// We want the complete error message if the script fails
if (!defined('PUN_DEBUG'))
    define('PUN_DEBUG', 1);

// Make sure we are running a PunBB version that this mod works with
$version_warning = false;
if(!in_array($pun_config['o_cur_version'], $punbb_versions))
{
    foreach ($punbb_versions as $temp)
    {
        if (substr($temp, 0, 3) == substr($pun_config['o_cur_version'], 0, 3))
        {
            $version_warning = true;
            break;
        }
    }

    if (!$version_warning)
        exit('You are running a version of PunBB ('.$pun_config['o_cur_version'].') that this mod does not support. This mod supports PunBB versions: '.implode(', ', $punbb_versions));
}


$style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style'];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $mod_title ?> installation</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_config['o_default_style'].'.css' ?>" />
</head>
<body>

<div id="punwrap">
<div id="puninstall" class="pun" style="margin: 10% 20% auto 20%">

<?php

if (isset($_POST['form_sent']))
{
    if (isset($_POST['install']))
    {
        // Run the install function (defined above)
        install();

?>
<div class="block">
    <h2><span>Installation successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully prepared for <?php echo pun_htmlspecialchars($mod_title) ?>. See readme.txt for further instructions.</p>
        </div>
    </div>
</div>
<?php

    }
    else
    {
        // Run the restore function (defined above)
        restore();

?>
<div class="block">
    <h2><span>Restore successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully restored.</p>
        </div>
    </div>
</div>
<?php

    }
}
else
{

?>
<div class="blockform">
    <h2><span>Mod installation</span></h2>
    <div class="box">
        <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?foo=bar">
            <div><input type="hidden" name="form_sent" value="1" /></div>
            <div class="inform">
                <p>This script will update your database to work with the following modification:</p>
                <p><strong>Mod title:</strong> <?php echo pun_htmlspecialchars($mod_title).' '.$mod_version ?></p>
                <p><strong>Author:</strong> <?php echo pun_htmlspecialchars($author) ?> (<a href="mailto:<?php echo pun_htmlspecialchars($author_email) ?>"><?php echo pun_htmlspecialchars($author_email) ?></a>)</p>
                <p><strong>Disclaimer:</strong> Mods are not officially supported by PunBB. Mods generally can't be uninstalled without running SQL queries manually against the database. Make backups of all data you deem necessary before installing.</p>
<?php if ($mod_restore): ?>                <p>If you've previously installed this mod and would like to uninstall it, you can click the restore button below to restore the database.</p>
<?php endif; ?><?php if ($version_warning): ?>                <p style="color: #a00"><strong>Warning:</strong> The mod you are about to install was not made specifically to support your current version of PunBB (<?php echo $pun_config['o_cur_version']; ?>). However, in most cases this is not a problem and the mod will most likely work with your version as well. If you are uncertain about installning the mod due to this potential version conflict, contact the mod author.</p>
<?php endif; ?>            </div>
            <p><input type="submit" name="install" value="Install" /><?php if ($mod_restore): ?><input type="submit" name="restore" value="Restore" /><?php endif; ?></p>
        </form>
    </div>
</div>
<?php

}

?>

</div>
</div>

</body>
</html>

<div id="punwrap">
<div id="puninstall" class="pun" style="margin: 10% 20% auto 20%">

<?php

if (isset($_POST['form_sent']))
{
    if (isset($_POST['install']))
    {
        // Run the install function (defined above)
        install();

?>
<div class="block">
    <h2><span>Installation successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully prepared for <?php echo pun_htmlspecialchars($mod_title) ?>. See readme.txt for further instructions.</p>
        </div>
    </div>
</div>
<?php

    }
    else
    {
        // Run the restore function (defined above)
        restore();

?>
<div class="block">
    <h2><span>Restore successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully restored.</p>
        </div>
    </div>
</div>
<?php

    }
}
else
{

?>
<div class="blockform">
    <h2><span>Mod installation</span></h2>
    <div class="box">
        <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?foo=bar">
            <div><input type="hidden" name="form_sent" value="1" /></div>
            <div class="inform">
                <p>This script will update your database to work with the following modification:</p>
                <p><strong>Mod title:</strong> <?php echo pun_htmlspecialchars($mod_title).' '.$mod_version ?></p>
                <p><strong>Author:</strong> <?php echo pun_htmlspecialchars($author) ?> (<a href="mailto:<?php echo pun_htmlspecialchars($author_email) ?>"><?php echo pun_htmlspecialchars($author_email) ?></a>)</p>
                <p><strong>Disclaimer:</strong> Mods are not officially supported by PunBB. Mods generally can't be uninstalled without running SQL queries manually against the database. Make backups of all data you deem necessary before installing.</p>
<?php if ($mod_restore): ?>                <p>If you've previously installed this mod and would like to uninstall it, you can click the restore button below to restore the database.</p>
<?php endif; ?><?php if ($version_warning): ?>                <p style="color: #a00"><strong>Warning:</strong> The mod you are about to install was not made specifically to support your current version of PunBB (<?php echo $pun_config['o_cur_version']; ?>). However, in most cases this is not a problem and the mod will most likely work with your version as well. If you are uncertain about installning the mod due to this potential version conflict, contact the mod author.</p>
<?php endif; ?>            </div>
            <p><input type="submit" name="install" value="Install" /><?php if ($mod_restore): ?><input type="submit" name="restore" value="Restore" /><?php endif; ?></p>
        </form>
    </div>
</div>
<?php

}

?>

</div>
</div>

</body>
</html>
ango wrote:
dharmil wrote:

this thing is not working for me for some reson

How many times played: 0 it always says 0

If there is no highscore for a game you can´t see how many times a game was played. I´ll try to fix this ...

thanks and i haaded some block you added on your arcade mod on my web site http://forum.dharmil.info/arcade.php

try to replace your install file with this

install_mod.php

<?php
/***********************************************************************/

// Some info about your mod.
$mod_title      = 'Punbb_Arcade_Games';
$mod_version    = '1.0';
$release_date   = '2006-04-20';
$author         = 'ANGO, Dharmil, Pandark';
$author_email   = ' ';

// Versions of PunBB this mod was created for. Minor variations (i.e. 1.2.4 vs 1.2.5) will be allowed, but a warning will be displayed.
$punbb_versions    = array('1.2.10', '1.2.11');

// Set this to false if you haven't implemented the restore function (see below)
$mod_restore    = true;


// This following function will be called when the user presses the "Install" button
function install()
{
    global $db, $db_type, $pun_config;

            $db->query("CREATE TABLE ".$db->prefix."arcade_ranking (
            `rank_id` SMALLINT(5) NOT NULL auto_increment,
            `rank_game` varchar(50) NOT NULL default '0',
            `rank_player` SMALLINT(5) NOT NULL default '0',
            `rank_score` double NOT NULL default '0',
            `rank_topscore` TINYINT(1) NOT NULL default '0',
            `rank_date` INTEGER UNSIGNED default NULL,
            PRIMARY KEY  (`rank_id`)
            ) ENGINE=MyISAM ") or error('Unable to add Table "arcade_ranking" ', __FILE__, __LINE__, $db->error());
                    
            $db->query("CREATE TABLE ".$db->prefix."arcade_games (
              `game_id` SMALLINT(5) NOT NULL auto_increment,
              `game_name` varchar(50) NOT NULL default '',
              `game_filename` varchar(30) NOT NULL default '',
              `game_desc` text NOT NULL,
              `game_image` varchar(200) NOT NULL default '',
              `game_width` smallint(3) NOT NULL default '550',
              `game_height` smallint(3) NOT NULL default '400',
              `game_cat` TINYINT(3) NOT NULL default '0',
              `game_played` smallint(5) NOT NULL default '0',
              PRIMARY KEY  (`game_id`)
            ) ENGINE=MyISAM AUTO_INCREMENT=6") or error('Unable to add Table "arcade_games" ', __FILE__, __LINE__, $db->error());


// Config
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_sort", "DESC")') or error('Unable to add arcade_sort" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_showtop", "1")') or error('Unable to add "arcade_showtop" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_numgames", "10")') or error('Unable to add arcade_numgames" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_numchamps", "5")') or error('Unable to add "arcade_numchamps" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_live", "1")') or error('Unable to add arcade_live" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_new_games", "10")') or error('Unable to add arcade_new_games" in config table', __FILE__, __LINE__, $db->error());
$db->query('INSERT INTO '.$db->prefix.'config VALUES ("arcade_most_played", "10")') or error('Unable to add arcade_most_played" in config table', __FILE__, __LINE__, $db->error());
// Set Configs
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '10' WHERE CONVERT( `conf_name` ) = 'arcade_most_played' LIMIT 1") or error('Unable to update arcade_most_played in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = 'DESC' WHERE CONVERT( `conf_name` ) = 'arcade_sort' LIMIT 1") or error('Unable to update arcade_sort in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '1' WHERE CONVERT( `conf_name` ) = 'arcade_showtop' LIMIT 1") or error('Unable to update arcade_showtop in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '10' WHERE CONVERT( `conf_name` ) = 'arcade_numgames' LIMIT 1") or error('Unable to update arcade_numgames in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '1' WHERE CONVERT( `conf_name` ) = 'arcade_live' LIMIT 1") or error('Unable to update arcade_live in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '10' WHERE CONVERT( `conf_name` ) = 'arcade_new_games' LIMIT 1") or error('Unable to update arcade_new_games in config', __FILE__, __LINE__, $db->error());
        $db->query("UPDATE `".$db->prefix."config` SET `conf_value` = '5' WHERE CONVERT( `conf_name` ) = 'arcade_numchamps' LIMIT 1") or error('Unable to update arcade_numchamps in config', __FILE__, __LINE__, $db->error());



// Add games.
$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Balloon Hunter", "balloonhunter", "Shoot down the balloons before they leave your reach.<br>Accuracy, timing and power are everything in this game.", "balloonhunter.jpg", 550, 400)') or error('Unable to add game Balloon Hunter', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Breakit", "breakit", "Use YOUR MOUSE to move the base, hit the ball against the brick wall to breakthrough and proceed onto the next level.<br>Be sure to collect the points and power ups. Avoid power downs! There are 50 unique stages to play.", "breakit.jpg", 640, 480)') or error('Unable to add game Breakit', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Diamond Mines", "diamondmine", "The screen is full of gems and you must move the checks around to create three of the same kind of gem in a row.", "diamondmine.gif", 550, 400)') or error('Unable to add game Diamond Mines', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Tetrollapse", "tetrollapse", "You should not only escape the over-filling of the board but also sort out the figures which are on the board.<br>If the figure disappears you will pass to the next level where another figure is preparing for you.", "tetrollapse.jpg", 640, 480)') or error('Unable to add game Tetrollapse', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Frogger", "frogger", "The object of this game is to guide a frog to its home.<br>To do so, the player must get frogs to successfully dodge cars and navigate a river full of hazards.", "frogger.jpg", 400, 450)') or error('Unable to add game Frogger', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Space Invaders", "invaders", "Taito had the inspired idea around 1978 that killing aliens was extremely good fun.<br>So they invented a game called Space Invaders.", "invaders.jpg", 520, 440)') or error('Unable to add game Space Invaders', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Reel Gold", "reelgold", "Move your cart around on the rails and fire the rope down to reel in gold but avoid hitting rocks.", "reelgold.jpg", 550, 450)') or error('Unable to add game Reel Gold', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Spank The Monkey", "spankmonkey", "Spank the monkey as hard as you can.", "spankmonkey.jpg", 850, 400)') or error('Unable to add game Spank The Monkey', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Wheelchair Speartoss", "speartoss", "How far can you throw the spear?", "speartoss.gif", 625, 360)') or error('Unable to add game Wheelchair Speartoss', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height) VALUES ("Speartoss 5 Shots", "speartoss5shots", "How far can you throw the spear?", "speartoss5shots.jpg", 625, 360)') or error('Unable to add game Speartoss 5 Shots', __FILE__, __LINE__, $db->error());


}


// This following function will be called when the user presses the "Restore" button (only if $mod_uninstall is true (see above))
function restore()
{
    global $db, $db_type, $pun_config;
    switch ($db_type)
    {
        default:
    $db->query('DROP TABLE '.$db->prefix.'arcade_ranking') or error('Unable to drop table "arcade_ranking"', __FILE__, __LINE__, $db->error());
    $db->query('DROP TABLE '.$db->prefix.'arcade_games') or error('Unable to drop table "arcade_games"', __FILE__, __LINE__, $db->error());
    
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_sort"') or error('Unable to delete arcade_sort" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_showtop"') or error('Unable to delete "arcade_showtop" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_numgames"') or error('Unable to delete arcade_numgames" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_numchamps"') or error('Unable to delete "arcade_numchamps" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_live"') or error('Unable to delete arcade_live" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_new_games"') or error('Unable to delete arcade_new_games" from config table', __FILE__, __LINE__, $db->error());
    $db->query('DELETE FROM '.$db->prefix.'config WHERE conf_name="arcade_most_played"') or error('Unable to delete arcade_most_played" from config table', __FILE__, __LINE__, $db->error());
            break;
    }

}

/***********************************************************************/

// DO NOT EDIT ANYTHING BELOW THIS LINE!


// Circumvent maintenance mode
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

// We want the complete error message if the script fails
if (!defined('PUN_DEBUG'))
    define('PUN_DEBUG', 1);

// Make sure we are running a PunBB version that this mod works with
$version_warning = false;
if(!in_array($pun_config['o_cur_version'], $punbb_versions))
{
    foreach ($punbb_versions as $temp)
    {
        if (substr($temp, 0, 3) == substr($pun_config['o_cur_version'], 0, 3))
        {
            $version_warning = true;
            break;
        }
    }

    if (!$version_warning)
        exit('You are running a version of PunBB ('.$pun_config['o_cur_version'].') that this mod does not support. This mod supports PunBB versions: '.implode(', ', $punbb_versions));
}


$style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style'];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $mod_title ?> installation</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_config['o_default_style'].'.css' ?>" />
</head>
<body>

<div id="punwrap">
<div id="puninstall" class="pun" style="margin: 10% 20% auto 20%">

<?php

if (isset($_POST['form_sent']))
{
    if (isset($_POST['install']))
    {
        // Run the install function (defined above)
        install();

?>
<div class="block">
    <h2><span>Installation successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully prepared for <?php echo pun_htmlspecialchars($mod_title) ?>. See readme.txt for further instructions.</p>
        </div>
    </div>
</div>
<?php

    }
    else
    {
        // Run the restore function (defined above)
        restore();

?>
<div class="block">
    <h2><span>Restore successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully restored.</p>
        </div>
    </div>
</div>
<?php

    }
}
else
{

?>
<div class="blockform">
    <h2><span>Mod installation</span></h2>
    <div class="box">
        <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?foo=bar">
            <div><input type="hidden" name="form_sent" value="1" /></div>
            <div class="inform">
                <p>This script will update your database to work with the following modification:</p>
                <p><strong>Mod title:</strong> <?php echo pun_htmlspecialchars($mod_title).' '.$mod_version ?></p>
                <p><strong>Author:</strong> <?php echo pun_htmlspecialchars($author) ?> (<a href="mailto:<?php echo pun_htmlspecialchars($author_email) ?>"><?php echo pun_htmlspecialchars($author_email) ?></a>)</p>
                <p><strong>Disclaimer:</strong> Mods are not officially supported by PunBB. Mods generally can't be uninstalled without running SQL queries manually against the database. Make backups of all data you deem necessary before installing.</p>
<?php if ($mod_restore): ?>                <p>If you've previously installed this mod and would like to uninstall it, you can click the restore button below to restore the database.</p>
<?php endif; ?><?php if ($version_warning): ?>                <p style="color: #a00"><strong>Warning:</strong> The mod you are about to install was not made specifically to support your current version of PunBB (<?php echo $pun_config['o_cur_version']; ?>). However, in most cases this is not a problem and the mod will most likely work with your version as well. If you are uncertain about installning the mod due to this potential version conflict, contact the mod author.</p>
<?php endif; ?>            </div>
            <p><input type="submit" name="install" value="Install" /><?php if ($mod_restore): ?><input type="submit" name="restore" value="Restore" /><?php endif; ?></p>
        </form>
    </div>
</div>
<?php

}

?>

</div>
</div>

</body>
</html>

this thing is not working for me for some reson

How many times played: 0 it always says 0

most important

style="padding: 0px 0px 0px 0px; margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border:none; "

i know how to do that here it is

<td border="0" cellspacing="0" cellpadding="0" width="100%" bordercolor="#FAFAFA" style="padding: 0px 0px 0px 0px; margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border:none; "></td>
<tr border="0" cellspacing="0" cellpadding="0" width="100%" bordercolor="#FAFAFA" style="padding: 0px 0px 0px 0px; margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border:none; "></tr>
<table border="0" cellspacing="0" cellpadding="0" width="100%" bordercolor="#FAFAFA" style="padding: 0px 0px 0px 0px; margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; border:none; "></table>

ok i had done some mod ifcations here
this is the new page hting this shows all the new messages instell of all the messages
http://forum.dharmil.info/other.JPG

and a thing that tells you hoew many new messages you have
http://forum.dharmil.info/top.JPG

to see it go to http://forum.dharmil.info/

if any one is intrested in this you can tell me and i will show you how to do it

46

(11 replies, posted in PunBB 1.2 show off)

my host was down and my hole site got delted i didnt get to back up data base but i had the files so i got the forums all working again but the user and post were deleted

yes i found a lot fo erros i am working on fixing them i got most of them done most of the erros you where working with data base

48

(11 replies, posted in PunBB 1.2 show off)

ok here is the code i just added a block in footer.php

<div id="brdfooter" class="block">
    <div class="box">
        <div class="inbox">
        <?php 
        if ($pun_user['is_guest'])
    {
        if ($pun_user['g_search'] == '1')
            echo '<center><a href="#"><img src="'.PUN_ROOT.'img/'.$pun_user['style'].'/top.gif"/></a>                  <a href="index.php">Forums :: Dharmil.info</a> | <a href="search.php">'.$lang_common['Search'].'</a> |';

        echo ' <a href="search.php?action=show_24h">'.$lang_common['new'].'</a> | <a href="userlist.php">'.$lang_common['Members'].'</a> | ';
        echo ' <a href="register.php">'.$lang_common['Register'].'</a> |';
        echo ' <a href="login.php">'.$lang_common['Login'].'</a> | <a href="http://dharmil.info/news.php">http://dharmil.info/</a>
                          <a href="#"><img src="'.PUN_ROOT.'img/'.$pun_user['style'].'/top.gif"/></a></center>';

    }
        else
    {
        if ($pun_user['g_id'] > PUN_MOD)
        {
            if ($pun_user['g_search'] == '1')
                echo '<center><a href="#"><img src="'.PUN_ROOT.'img/'.$pun_user['style'].'/top.gif"/></a> <a href="search.php">'.$lang_common['Search'].'</a> |';
            
            
            echo ' <a href="uploads.php">'.$lang_common['upload'].'</a> |';
            echo ' <a href="arcade.php">'.$lang_common['arcade'].'</a> |';
            echo ' <a href="userlist.php">'.$lang_common['Members'].' |</a>';
            echo ' <a href="calendar.php">'.$lang_common['Calendar'].'</a> |';
            echo ' <a href="chatbox.php">'.$lang_common['ShoutBox'].'</a> |';
            echo ' <a href="gallery.php">'.$lang_common['Gallery'].'</a> |';
             echo ' <a href="page.php?id=1">'.$lang_common['Tutorial'].'</a> |';
            echo ' <a href="online.php">'.$lang_common['users'].'</a> |';
            
            echo ' <a href="search.php?action=show_24h">'.$lang_common['newp'].' |</a>';
            echo ' <a href="message_list.php">Messages</a> <a href="#"><img src="'.PUN_ROOT.'img/'.$pun_user['style'].'/top.gif"/></a></center>';
            
            
            
        }
        else
        {
        
            echo '<center><a href="#"><img src="'.PUN_ROOT.'img/'.$pun_user['style'].'/top.gif"/></a> <a href="search.php">'.$lang_common['Search'].'</a> |';
            echo ' <a href="uploads.php">'.$lang_common['upload'].'</a> |';
            echo ' <a href="userlist.php">'.$lang_common['Members'].' |</a>';
            echo ' <a href="arcade.php">'.$lang_common['arcade'].'</a> |';
            echo ' <a href="calendar.php">'.$lang_common['Calendar'].'</a> |';
            echo ' <a href="chatbox.php">'.$lang_common['ShoutBox'].'</a> |';
            echo ' <a href="gallery.php">'.$lang_common['Gallery'].'</a> |';
            echo ' <a href="page.php?id=1">'.$lang_common['Tutorial'].'</a> |';
            echo ' <a href="online.php">'.$lang_common['users'].'</a> |';
            echo ' <a href="search.php?action=show_24h">'.$lang_common['newp'].'</a> |';
            echo ' <a href="message_list.php">PM</a> |';
            echo ' <a href="admin_index.php">'.$lang_common['Admin'].'</a> <a href="#"><img src="'.PUN_ROOT.'img/'.$pun_user['style'].'/top.gif"/></a></center>';

            
            
        }
    }

    
    
    
    
    
    
    
    
    
    ?>
            <div class="clearer">
            </div>
        </div>
    </div>
</div>

49

(11 replies, posted in PunBB 1.2 show off)

ok i made a box with a diffrent type i will give you the code when i get to it cuz i am on my laptop right now and cant do it right now because i dont have files on here so at about 3:40 pm estern us time i can get you the code...

ok i had added new admin fucntions it allows admin to enable or disable the arcade and one where you can select how many games to display on a page in the arcade...

download avalabe
[url]http://forum1.dharmil.info/Punbb_Arcade_Game_Mod 2.3.zip[/url]
http://forum1.dharmil.info/Punbb_Arcade_Game_Mod 2.3.zip


um can you get me the modifcations for the top 3 high scores so i can add it on to the next pack age 2.4