22 พฤษภาคม 2555, 16:01:32
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. +668-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 2 Next
icon message ผู้เขียน หัวข้อ: SMF Arcade ระบบห้องเกมส์สำหรับ SMF  (อ่าน 7158 ครั้ง)
0 สมาชิก และ 3 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general เมื่อ: 20 มิถุนายน 2553, 12:52:01
  • ชื่อ: SMF Arcade
  • ผู้เขียน: Niko
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: New Feature
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 12 ธันวาคม 2552
  • ต้นฉบับ: SMF Arcade

รายละเอียด
      เพิ่มส่วนเล่นเกมส์ภายในบอร์ด SMF
  • รองรับระบบเกมส์จากภายนอก
  • ใช้เป็นสนามประลองกับผู้อื่น
  • กำหนดจำนวนกระทู้ที่จะให้สมาชิกเล่นได้
  • ระบบบันทึกแต้ม
  • จัดลำดับความนิยม
  • ส่งข้อความส่วนตัวอัตโนมัตเมื่อแต้มถูกหักล้าง
  • บันทึกเกมส์โปรด
  • ค้นหาเกมส์เร่งด่วน

ตัวอย่าง


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
elseif (empty($_REQUEST['action']))

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Check for arcade actions
// IBPArcade v2.x.x Games support
elseif (isset($_REQUEST['act']) && strtolower($_REQUEST['act']) == 'arcade')
{
$_REQUEST['action'] = 'arcade';
$_REQUEST['ibpa'] = 2;

if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'newscore')
$_REQUEST['sa'] = 'ibpsubmit';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
// IBPArcade v3.x.x Games support
elseif (isset($_REQUEST['autocom']) && $_REQUEST['autocom'] == 'arcade')
{
$_REQUEST['action'] = 'arcade';
$_REQUEST['ibpa'] = 3;

if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'savescore')
$_REQUEST['sa'] = 'ibpsubmit';

elseif (isset($_REQUEST['do']) && $_REQUEST['do'] = 'verifyscore')
$_REQUEST['sa'] = 'ibpverify';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['play']))
{
$_REQUEST['game'] = $_REQUEST['play'];
unset($_REQUEST['play']);
$_REQUEST['sa'] = 'play';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['highscore']))
{
$_REQUEST['game'] = $_REQUEST['highscore'];
unset($_REQUEST['highscore']);
$_REQUEST['sa'] = 'highscore';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['game']) && !isset($_REQUEST['action']))
{
require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}

ค้นหา -->>
โค๊ด: [Select]
'announce' => array('Post.php', 'AnnounceTopic'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
       'arcade' => array('Arcade.php','Arcade'),
'managegames' => array('ManageGames.php', 'GamesAdmin'),
'arcadecategory' => array('ArcadeSettings.php', 'ArcadeCategory'),
'arcadesettings' => array('ArcadeSettings.php', 'ArcadeSettings'),

file $sourcedir/ManagePermissions.php

ค้นหา -->>
โค๊ด: [Select]
$permissionList = array(
'membergroup' => array(

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
           'arcade' => array(
                'arcade_view' => false,
                'arcade_play' => false,
                'arcade_admin' => false,
                'arcade_favorite' => false,
                'arcade_submit' => false,
                'arcade_comment' => true,
                'arcade_rate' => false,
            ),

ค้นหา -->>
โค๊ด: [Select]
$non_guest_permissions = array(

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'arcade_rate',
'arcade_favorite',
'arcade_admin',

file $sourcedir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
// Admin area 'Members'.
if (allowedTo(array('moderate_forum', 'manage_membergroups', 'manage_bans', 'manage_permissions', 'admin_forum')))

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Admin area 'Arcade'
if (allowedTo(array('arcade_admin')))
{
$context['admin_areas']['admin'] = array(
'title' => $txt['arcade_admin'],
'areas' => array(
'manage_games' => '<a href="' . $scripturl . '?action=managegames">' . $txt['arcade_manage_games'] . '</a>',
'manage_category' => '<a href="' . $scripturl . '?action=arcadecategory">' . $txt['arcade_manage_category'] . '</a>',
'arcade_settings' => '<a href="' . $scripturl . '?action=arcadesettings">' . $txt['arcade_settings'] . '</a>',
)
);

}

file $sourcedir/Who.php

ค้นหา -->>
โค๊ด: [Select]
// Probably an error or some goon?

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
elseif ($actions['action'] == 'arcade')
{

if (!isset($actions['sa']) || $actions['sa'] == 'list')
// Viewing index
$data[$k] = $txt['who_arcade'];
elseif ($actions['sa'] == 'play' && isset($actions['game']))
// Playing game
$game_ids[(int) $actions['game']][$k] = $txt['who_arcade_play'];
elseif ($actions['sa'] == 'highscore' && isset($actions['game']))
// Viewing highscores of game
$game_ids[(int) $actions['game']][$k] = $txt['who_arcade_highscore'];
else
// Something else, let's say it's index
$data[$k] = $txt['who_arcade'];

}

ค้นหา -->>
โค๊ด: [Select]
// Load member names for the profile.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
if (!empty($game_ids) && allowedTo('view_arcade'))
{
$result = db_query("
SELECT ID_GAME, gameName
FROM {$db_prefix}arcade_games
WHERE ID_GAME IN (". implode(', ', array_keys($game_ids)) . ")
LIMIT ". count($game_ids), __FILE__, __LINE__);

while ($row = mysql_fetch_assoc($result))
foreach ($game_ids[$row['ID_GAME']] as $k => $session_text)
$data[$k] = sprintf($session_text, $row['ID_GAME'], $row['gameName']);

 mysql_free_result($result);
}

file $themes_dir/default/index.template.php

ค้นหา -->>
โค๊ด: [Select]
if (in_array($context['current_action'], array('admin',

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'managegames', 'arcadesettings', 'arcadecategory',

ค้นหา -->>
โค๊ด: [Select]
if (in_array($context['current_action'], array('search',

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'arcade',

ค้นหา -->>
โค๊ด: [Select]
// How about the [search] button?

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
   echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a>
</td>' , $current_action == 'arcade' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

file languagesdir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['arcade'] = 'Arcade';
$txt['arcade_admin'] = 'Arcade Admin';
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_category'] = 'Categories';
$txt['arcade_settings'] = 'Settings';

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play on arcade, in games which he/she has rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administrator can Install/Edit/Delete game, Delete scores and edit settings for arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_favorite'] = 'Use Favorites feature';
$txt['permissionhelp_arcade_favorite'] = 'Allows member to favorite and unfavorite games';
$txt['permissionname_arcade_submit'] = 'Save scores';
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_rate'] = 'Rate games';
$txt['permissionhelp_arcade_rate'] = 'Allows users to rate games.';
$txt['permissionname_arcade_comment'] = 'Allow to comment/edit comment';
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, own or any';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_comment_own'] = 'Own';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_favorite'] = 'You are not allowed to favorite games';
$txt['cannot_arcade_rate'] = 'You are not allowed to rate games';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';

ดาวน์โหลด: Arcade.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

แตกไฟล์แล้วอัพโหลดไปไว้ที่
file ArcadeLicense.txt -->> $boarddir
file installArcade.php -->> $boarddir
file newscore.php -->> $boarddir
folder getid3 -->> $boarddir
folder Games -->> $boarddir
folder Sources -->> $boarddir
folder Themes -->> $boarddir

สร้างไฟล์: package_install.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/package_install.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/*******************************************************************************
* SMF Arcade 2.0.12 (http://www.smfarcade.net)                                  *
* Copyright (C) 2004-2006  Niko Pahajoki (http://www.madjoki.com)              *
* This program is free software; you can redistribute it and/or modify         *
* it under the terms of the GNU General Public License as published by         *
* the Free Software Foundation; either version 2 of the License, or            *
* (at your option) any later version.                                          *
*                                                                              *
* This program is distributed in the hope that it will be useful,              *
* but WITHOUT ANY WARRANTY; without even the implied warranty of               *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                *
* GNU General Public License for more details.                                 *
*                                                                              *
* You should have received a copy of the GNU General Public License            *
* along with this program; if not, write to the Free Software                  *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
********************************************************************************
* package_install.php                                                          *
********************************************************************************/

global $boardurl$sourcedir$modSettings;
global 
$Tables$ArcadeSettings$Permissions;

require_once(
$sourcedir '/ArcadeInstall.php');


echo 
'
<div class="tborder" style="margin: 25px;">
<div class="titlebg" style="padding: 1ex;">
<b>SMF Arcade 2.0.0 Installer</b>
</div>
<div class="windowbg">'
;

if (!empty(
$modSettings['arcadeDatabaseVersion']))
{

 echo '
 <h2>Updating</h2>'
;
 
 $errors ResetSettings($ArcadeSettingstrue);
 
 if (count($errors) > 0)
echo '
<h4 style="color: red;">Error report! (This means somehing went wrong)</h4>
<div>'
implode('<br />'$errors), '</div>';
else
echo '
<div>Success with no errors!</div>'
;
 
 $errors UpdateTables($Tables);
 
 if ($errors === false)
echo '
<div>All Tables were up to date already</div>'
;
 else
 {
echo '
<div>Tables have been updated!</div>'
;

if (is_array($errors) && count($errors) > 0)
echo '
<h3 style="color: red;">Error report! (This means somehing went wrong)</h3>
<div>'
implode('<br />'$errors), '</div>'
 }
}
else 
{
   
echo '
<h3>Creating tables</h3>'
;

// Tables

$errors CreateTables($Tables);

if (count($errors) > 0)
echo '
<h4 style="color: red;">Error report! (This means somehing went wrong)</h4>
<div>'
implode('<br />'$errors), '</div>';
else
echo '
<div>Success with no errors!</div>'
;

echo '
<h3>Inserting default permissions</h3>'
;

   
// Permissions

   
$errors ResetPermissions($Permissions);
   
   if (
count($errors) > 0)
echo '
<h4 style="color: red;">Error report! (This means somehing went wrong)</h4>
<div>'
implode('<br />'$errors), '</div>';
else
echo '
<div>Success with no errors!</div>'
;

// Settings

echo '
<h3>Inserting default settings</h3>'
;

   
$errors ResetSettings($ArcadeSettings); 
   
   if (
count($errors) > 0)
echo '
<h4 style="color: red;">Error report! (This means somehing went wrong)</h4>
<div>'
implode('<br />'$errors), '</div>';
else
echo '
<div>Success with no errors!</div>'
;

echo '
<h3>Finishing</h3>'
;

$errors PopulateTables();

if (count($errors) > 0)
echo '
<h4 style="color: red;">Error report! (This means somehing went wrong)</h4>
<div>'
implode('<br />'$errors), '</div>';
else
echo '
<div>Success with no errors!</div>'
;


if (!is_dir($ArcadeSettings['gamesDirectory'][0])) 
{
if (mkdir($ArcadeSettings['gamesDirectory'][0], 0755))
echo '<div>Games directory created</div>';
else
echo '<div style="color: red;">Games directory does not exist, and make dir failed, probably because of safemode</div>';
}
}


echo 
'
<div>Package was installed. If you have SMFArcade 1.x installed you can <a href="installArcade.php?step=4">import games and scores now</a></div>
</div>
</div>'
;

?>

การตั้งค่า: ผู้ดูแล -->> Arcade Admin

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 20 มิถุนายน 2553, 14:18:14
สำหรับ SMF 2.0.xx

แก้ไข้ไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
elseif (empty($_REQUEST['action']))

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Check for arcade actions
// IBPArcade v2.x.x Games support
elseif (isset($_REQUEST['act']) && strtolower($_REQUEST['act']) == 'arcade')
{
$_REQUEST['action'] = 'arcade';

if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'newscore')
$_REQUEST['sa'] = 'ibpsubmit2';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
// IBPArcade v3.x.x Games support
elseif (isset($_REQUEST['autocom']) && $_REQUEST['autocom'] == 'arcade')
{
$_REQUEST['action'] = 'arcade';

if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'savescore')
$_REQUEST['sa'] = 'ibpsubmit3';
elseif (isset($_REQUEST['do']) && $_REQUEST['do'] == 'verifyscore')
$_REQUEST['sa'] = 'ibpverify';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['play']) && !isset($_REQUEST['game']))
{
$_REQUEST['game'] = $_REQUEST['play'];
unset($_REQUEST['play']);
$_REQUEST['sa'] = 'play';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['highscore']) && !isset($_REQUEST['game']))
{
$_REQUEST['game'] = $_REQUEST['highscore'];
unset($_REQUEST['highscore']);
$_REQUEST['sa'] = 'highscore';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif ((isset($_REQUEST['game']) || isset($_REQUEST['match'])) && !isset($_REQUEST['action']))
{
require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}

ค้นหา -->>
โค๊ด: [Select]
'announce' => array('Post.php', 'AnnounceTopic'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'arcade' => array('Arcade.php','Arcade'),

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
);

// Are we getting info for the help section.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// arcade = arcade (makes sense, right?)
'arcade' => array(
'url' => 'action=admin;area=arcade',
'settings' => array(
'arcadeEnabled' => 1,
),
),

file $sourcedir/ManagePermissions.php

ค้นหา -->>
โค๊ด: [Select]
'profile_remote_avatar' => array(false, 'profile', 'use_avatar'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'arcade_view' => array(false, 'arcade', 'arcade'),
'arcade_play' => array(false, 'arcade', 'arcade'),
'arcade_submit' => array(false, 'arcade', 'arcade'),
'arcade_comment' => array(true, 'arcade', 'arcade', 'arcade_moderate'),
'arcade_user_stats' => array(true, 'arcade', 'arcade', 'arcade_moderate'),
'arcade_edit_settings' => array(true, 'arcade', 'arcade', 'arcade_moderate'),
'arcade_create_match' => array(false, 'arcade', 'arcade'),
'arcade_join_match' => array(false, 'arcade', 'arcade'),
'arcade_join_invite_match' => array(false, 'arcade', 'arcade'),
'arcade_admin' => array(false, 'arcade', 'administrate'),

ค้นหา -->>
โค๊ด: [Select]
$context['non_guest_permissions'] = array(

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'arcade_admin',
'arcade_create_match',
'arcade_join_match',
'arcade_join_invite_match',
'arcade_comment',
'arcade_edit_settings',
'arcade_user_stats',

file $sourcedir/Profile.php

ค้นหา -->>
โค๊ด: [Select]
'issuewarning' => array(

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'arcadeChallenge' => array(
'label' => $txt['sendArcadeChallenge'],
'file' => 'Profile-Arcade.php',
'function' => 'arcadeChallenge',
'enabled' => !empty($modSettings['arcadeArenaEnabled']) && !empty($modSettings['arcadeEnabled']),
'permission' => array(
'own' => array(),
'any' => array('arcade_create_match'),
),
),

ค้นหา -->>
โค๊ด: [Select]
'showposts' => array(

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'arcadeStats' => array(
'label' => $txt['arcadeStats'],
'file' => 'Profile-Arcade.php',
'function' => 'arcadeStats',
'enabled' => !empty($modSettings['arcadeEnabled']),
'permission' => array(
'own' => array('arcade_user_stats_any', 'arcade_user_stats_own'),
'any' => array('arcade_user_stats_any'),
),
),

ค้นหา -->>
โค๊ด: [Select]
'forumprofile' => array(

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'arcadeSettings' => array(
'label' => $txt['arcadeSettings'],
'file' => 'Profile-Arcade.php',
'function' => 'arcadeSettings',
'enabled' => !empty($modSettings['arcadeEnabled']),
'permission' => array(
'own' => array('arcade_edit_settings_any', 'arcade_edit_settings_own'),
'any' => array('arcade_edit_settings_any'),
),
),

file $sourcedir/Subs-Db-mysql.php

ค้นหา -->>
โค๊ด: [Select]
if (!isset($matches[2]))

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
if ($matches[1] === 'query_see_game')
return $user_info['query_see_game'];
elseif ($matches[1] === 'query_see_match')
return $user_info['query_see_match'];
elseif ($matches[1] === 'query_arena_game')
return $user_info['query_arena_game'];

file $sourcedir/Subs-Db-sqlite.php

ค้นหา -->>
โค๊ด: [Select]
if (!isset($matches[2]))

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
if ($matches[1] === 'query_see_game')
return $user_info['query_see_game'];
elseif ($matches[1] === 'query_see_match')
return $user_info['query_see_match'];
elseif ($matches[1] === 'query_arena_game')
return $user_info['query_arena_game'];

file $sourcedir/Subs-Db-postgresql.php

ค้นหา -->>
โค๊ด: [Select]
if (!isset($matches[2]))

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
if ($matches[1] === 'query_see_game')
return $user_info['query_see_game'];
elseif ($matches[1] === 'query_see_match')
return $user_info['query_see_match'];
elseif ($matches[1] === 'query_arena_game')
return $user_info['query_arena_game'];

file $sourcedir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
$context['allow_arcade'] = allowedTo('arcade_view') && !empty($modSettings['arcadeEnabled']);

ค้นหา -->>
โค๊ด: [Select]
'search' => array(

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'arcade' => array(
'title' => $txt['arcade'],
'href' => $scripturl . '?action=arcade',
'show' => $context['allow_arcade'],
'sub_buttons' => array(
),
),

file $sourcedir/Admin.php

ค้นหา -->>
โค๊ด: [Select]
'members' => array(

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'arcade' => array(
'title' => $txt['arcade_admin'],
'permission' => array('arcade_admin'),
'areas' => array(
'arcade' => array(
'label' => $txt['arcade_general'],
'file' => 'ArcadeAdmin.php',
'function' => 'ArcadeAdmin',
'enabled' => !empty($modSettings['arcadeEnabled']),
'permission' => array('arcade_admin'),
'subsections' => array(
'main' => array($txt['arcade_general_information']),
'settings' => array($txt['arcade_general_settings']),
'permission' => array($txt['arcade_general_permissions']),
),
),
'managegames' => array(
'label' => $txt['arcade_manage_games'],
'file' => 'ManageGames.php',
'function' => 'ManageGames',
'enabled' => !empty($modSettings['arcadeEnabled']),
'permission' => array('arcade_admin'),
'subsections' => array(
'main' => array($txt['arcade_manage_games_edit_games']),
'install' => array($txt['arcade_manage_games_install']),
'upload' => array($txt['arcade_manage_games_upload']),
),
),
'arcadecategory' => array(
'label' => $txt['arcade_manage_category'],
'file' => 'ArcadeAdmin.php',
'function' => 'ArcadeAdminCategory',
'enabled' => !empty($modSettings['arcadeEnabled']),
'permission' => array('arcade_admin'),
'subsections' => array(
'list' => array($txt['arcade_manage_category_list']),
'new' => array($txt['arcade_manage_category_new']),
),
),
'arcademaintenance' => array(
'label' => $txt['arcade_maintenance'],
'file' => 'ArcadeMaintenance.php',
'function' => 'ArcadeMaintenance',
'enabled' => !empty($modSettings['arcadeEnabled']),
'permission' => array('arcade_admin'),
'subsections' => array(
'main' => array($txt['arcade_maintenance_main']),
'highscore' => array($txt['arcade_maintenance_highscore']),
),
),
),
),

ค้นหา -->>
โค๊ด: [Select]
$language_files = array(

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'ArcadeAdmin',

ค้นหา -->>
โค๊ด: [Select]
$include_files = array(

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'ArcadeAdmin',

ค้นหา -->>
โค๊ด: [Select]
array('ModifyCacheSettings', 'area=serversettings;sa=cache'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
[ array('ArcadeAdminSettings', 'area=arcade;sa=settings'),
array('ArcadeAdminPemission', 'area=arcade;sa=permission'),

file $sourcedir/Who.php

ค้นหา -->>
โค๊ด: [Select]
// Probably an error or some goon?

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
elseif ($actions['action'] == 'arcade')
{

if (!isset($actions['sa']) || $actions['sa'] == 'list')
// Viewing index
$data[$k] = $txt['who_arcade'];
elseif ($actions['sa'] == 'play' && isset($actions['game']))
// Playing game
$game_ids[(int) $actions['game']][$k] = $txt['who_arcade_play'];
elseif ($actions['sa'] == 'highscore' && isset($actions['game']))
// Viewing highscores of game
$game_ids[(int) $actions['game']][$k] = $txt['who_arcade_highscore'];
else
// Something else, let's say it's index
$data[$k] = $txt['who_arcade'];

}

ค้นหา -->>
โค๊ด: [Select]
// Load member names for the profile.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
if (!empty($game_ids) && allowedTo('view_arcade'))
{
$result = $smcFunc['db_query']('', '
SELECT id_game, game_name
FROM {db_prefix}arcade_games
WHERE id_game IN ({array_int:games})
LIMIT {int:limit}',
array(
'games' => array_keys($game_ids),
'limit' => count($game_ids)
));

while ($row = $smcFunc['db_fetch_assoc']($result))
foreach ($game_ids[$row['id_game']] as $k => $session_text)
$data[$k] = sprintf($session_text, $row['id_game'], $row['game_name']);
 $smcFunc['db_free_result']($result);
}

file $sourcedir/Modlog.php

ค้นหา -->>
โค๊ด: [Select]
$messages = array();

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
$games = array();

ค้นหา -->>
โค๊ด: [Select]
// A message?

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// A game?
if (isset($row['extra']['game']))
$games[(int) $row['extra']['game']][] = $row['id_action'];

ค้นหา -->>
โค๊ด: [Select]
if (!empty($messages))

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
if (!empty($games))
{
$result = $smcFunc['db_query']('', '
SELECT id_game, game_name
FROM {db_prefix}arcade_games
WHERE id_game IN ({array_int:games})
LIMIT ' . count(array_keys($games)),
array(
'games' => array_keys($games),
)
);

while ($row = $smcFunc['db_fetch_assoc']($result))
{
foreach ($games[$row['id_game']] as $action)
{
$this_action = &$entries[$action];
$this_action['extra']['game'] = '<a href="' . $scripturl . '?action=arcade;game=' . $row['id_game'] . '">' . $row['game_name'] . '</a>';
}
}
 $smcFunc['db_free_result']($result);
}

ค้นหา -->>
โค๊ด: [Select]
'new_topic') as $type)

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'game',

$languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// Arcade start
global $scripturl;

// Arcade
$txt['arcade'] = 'Arcade';

// Core Features
$txt['core_settings_item_arcade'] = 'Arcade';
$txt['core_settings_item_arcade_desc'] = 'Enable Arcade section which allows users to play games and store their records for others to see.';

// Admin
$txt['arcade_admin'] = 'Arcade';
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_games_edit_games'] = 'Edit Games';
$txt['arcade_manage_games_install'] = 'Install Games';
$txt['arcade_manage_games_upload'] = 'Upload';
$txt['arcade_manage_category'] = 'Categories';
$txt['arcade_manage_category_list'] = 'List';
$txt['arcade_manage_category_new'] = 'New';
$txt['arcade_general'] = 'General';
$txt['arcade_general_information'] = 'Information';
$txt['arcade_general_settings'] = 'Settings';
$txt['arcade_general_permissions'] = 'Permissions';
$txt['arcade_maintenance'] = 'Maintenance';
$txt['arcade_maintenance_main'] = 'Main';
$txt['arcade_maintenance_highscore'] = 'Highscore';

// Moderation Log
$txt['modlog_ac_arcade_install_game'] = 'Installed Game &quot;{game}&quot;';
$txt['modlog_ac_arcade_update_game'] = 'Updated Game &quot;{game}&quot;';
$txt['modlog_ac_arcade_delete_game'] = 'Deleted Game &quot;{game}&quot;';
$txt['modlog_ac_arcade_remove_scores'] = 'Removed {scores} scores from Game &quot;{game}&quot;';

// Profile
$txt['arcadeStats'] = 'Arcade Statistics';
$txt['arcadeChallenge'] = 'Arcade Arena';
$txt['sendArcadeChallenge'] = 'Send Challenge';
$txt['arcadeSettings'] = 'Arcade Settings';

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play, on Arcade, games which they have rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administrator can Install/Edit/Delete game, Delete scores and edit settings for Arcade';
$txt['permissionname_arcade_submit'] = 'Save scores';
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_comment'] = 'Edit Comments';
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, ';
$txt['permissionname_arcade_comment_own'] = 'Own';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_user_stats'] = 'View User Statistics';
$txt['permissionname_arcade_user_stats_own'] = 'Own';
$txt['permissionname_arcade_user_stats_any'] = 'Any';
$txt['permissionname_arcade_view_arena'] = 'View Arena';
$txt['permissionname_arcade_create_match'] = 'Create a new match on Arena';
$txt['permissionname_arcade_join_match'] = 'Join match on Arena';
$txt['permissionname_arcade_join_invite_match'] = 'Join match on Arena when invited';
$txt['permissionname_arcade_edit_settings'] = 'Edit Arcade Settings';
$txt['permissionname_arcade_edit_settings_own'] = 'Own';
$txt['permissionname_arcade_edit_settings_any'] = 'Any';

// Simple permission gropus
$txt['permissiongroup_simple_arcade'] = 'Use Arcade';
$txt['permissiongroup_simple_arcade_moderate'] = 'Moderate Arcade';

// Simple permission names
$txt['permissionname_simple_arcade_comment_own'] = 'Edit their own comments';
$txt['permissionname_simple_arcade_comment_any'] = 'Edit any comment';
$txt['permissionname_simple_arcade_user_stats_own'] = 'View their own statistics';
$txt['permissionname_simple_arcade_user_stats_any'] = 'View other people\'s statistics';
$txt['permissionname_simple_arcade_edit_settings_own'] = 'Edit their own Arcade Settings';
$txt['permissionname_simple_arcade_edit_settings_any'] = 'Edit other people\'s Arcade Settings';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';
$txt['cannot_arcade_user_stats_any'] = 'You are not allowed to view statistics of any user';
$txt['cannot_arcade_user_stats_own'] = 'You are not allowed to view your statistics';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';
// Arcade end

ดาวน์โหลด: Arcade2.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

แตกไฟล์แล้วอัพโหลดไปไว้ที่
folder Sources -->> $boarddir
folder Themes -->> $boarddir
folder Games -->> $boarddir
file arcade.php -->> $boarddir
file newscore.php -->> $boarddir

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Thx by Yud
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 2 เมื่อ: 20 มิถุนายน 2553, 14:18:52
สร้างไฟล์: Database.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/Database.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/**********************************************************************************
* Database.php                                                                    *
***********************************************************************************
* SMF Arcade                                                                      *
* =============================================================================== *
* Software Version:           SMF Arcade 2.5 RC1                                  *
* Software by:                Niko Pahajoki (http://www.madjoki.com)              *
* Copyright 2004-2009 by:     Niko Pahajoki (http://www.madjoki.com)              *
* Support, News, Updates at:  http://www.smfarcade.info                           *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/

if (!defined('SMF'))
die('Hacking attempt...');

/* Contains information about database tables

void doTables()
- ???

void doSettings()
- ???

void doPermission()
- ???

void installDefaultData()
- ???
*/

global $addSettings$tables$permissions$columnRename$boarddir$boardurl$smcFunc;

$arcade_version '2.5 RC1';
$arcade_lang_version '2.5 RC1';
$arcade_server 'http://service.smfarcade.info/arcade';

// Settings array
$addSettings = array(
'gamesPerPage' => array(25false),
'matchesPerPage' => array(25false),
'scoresPerPage' => array(50false),
'gamesDirectory' => array(str_replace('\\''/'$boarddir '/Games'), false),
    
'arcadeDBUpdate' => array(0true),
'gamesUrl' => array($boardurl '/Games'false),
'arcadeEnabled' => array(truefalse),
'arcadeArenaEnabled' => array(falsefalse),
'arcadeCheckLevel' => array(1false),
'arcadeGamecacheUpdate' => array(1false),
'arcadeMaxScores' => array(0false),
'arcadePermissionMode' => array(1false),
'arcadePostPermission' => array(0false),
'arcadePostsPlay' => array(0false),
'arcadePostsPlayPerDay' => array(0false),
'arcadePostsPlayAverage' => array(0false),
'arcadeEnableFavorites' => array(1false),
'arcadeEnableRatings' => array(1false),
'arcadeShowInfoCenter' => array(1false),
'arcadeCommentLen' => array(75false),
);

// Permissions array
$permissions = array(
'arcade_view' => array(-102), // Everyone
'arcade_play' => array(-102), // Everyone
'arcade_submit' => array(02), // Regular members
'arcade_admin' => array(), // Only admins will get this
'arcade_comment_own' => array(02), // Regular members
'arcade_comment_any' => array(), // Only admins
'arcade_user_stats_own' => array(02),
'arcade_user_stats_any' => array(02),
'arcade_view_arena' => array(-102),
'arcade_create_match' => array(02),
'arcade_join_match' => array(02),
'arcade_join_invite_match' => array(02),
'arcade_edit_settings_own' => array(02),
'arcade_edit_settings_any' => array(),
);

// SMF 2.0 Uses lowercase names because of other database systems,
// so we change them
$columnRename = array(
'ID_GAME' => 'id_game',
'internalName' => 'internal_name',
'gameName' => 'game_name',
'thumbnailSmall' => 'thumbnail_small',
'ID_CAT' => 'id_cat',
'gameWidth' => 'game_width',
'gameHeight' => 'game_height',
'gameFile' => 'game_file',
'gameDirectory' => 'game_directory',
'gameType' => 'submit_system',
'game_type' => 'submit_system',
'scoreType' => 'score_type',
'memberGroups' => 'member_groups',
'gameBackgroundColor' => 'background_color',
    
'game_backgroundcolor' => 'background_color',
'gameRating' => 'game_rating',
'ID_MEMBER_CHAMPION' => 'id_champion',
'ID_CHAMPION_SCORE' => 'id_champion_score',
'gameExtraData' => 'extra_data',
    
'game_extra_data' => 'extra_data',
'numPlays' => 'num_plays',
'numRates' => 'num_rates',
'maxScores' => 'max_scores',
'ID_SCORE' => 'id_score',
'ID_MEMBER'  => 'id_member',
'endTime'  => 'end_time',
'duration'  => 'duration',
'championFrom'  => 'champion_from',
'championTo'  => 'champion_to',
'personalBest'  => 'personal_best',
'memberIp'  => 'member_ip',
'playerName' => 'player_name',
'scoreStatus'  => 'score_status',
'catName' => 'cat_name',
'numGames' => 'num_games',
'catOrder' => 'cat_order',
'ID_FAVORITE' => 'id_favorite',
'rateTime' => 'rate_time',
'ID_RATE' => 'id_rate'
);

// Games table
$tables = array(
'arcade_games' => array(
'name' => 'arcade_games',
'columns' => array(
array(
'name' => 'id_game',
'type' => 'int',
'unsigned' => true,
'auto' => true
),
array(
'name' => 'internal_name',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'game_name',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'game_file',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'game_directory',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'description',
'type' => 'text',
),
array(
'name' => 'help',
'type' => 'text',
),
array(
'name' => 'thumbnail',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'thumbnail_small',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'submit_system',
'type' => 'varchar',
'default' => '',
'size' => 15,
),
array(
'name' => 'id_cat',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'enabled',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'local_permissions',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'score_type',
'type' => 'tinyint',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'member_groups',
'type' => 'varchar',
'default' => '-2,-1,0,2',
'size' => 255,
),
array(
'name' => 'game_rating',
'type' => 'float',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'id_champion',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'id_champion_score',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'extra_data',
'type' => 'text',
),
array(
'name' => 'num_plays',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'num_rates',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'num_favorites',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_game')
),
array(
'name' => 'internal_name',
'type' => 'unique',
'columns' => array('internal_name')
),
),
// Data for upgrade to drop extra columns/indexes
'upgrade' => array(
'indexes' => array(
/*array(
'name' => 'internal_name',
'type' => 'unique',
'columns' => array('internal_name'),
),*/
array(
'name' => 'game_file',
'type' => 'unique',
'columns' => array('game_directory''game_file')
),
array(
'name' => 'game_file',
'type' => 'unique',
'columns' => array('game_file')
),
),
),
),
'arcade_scores' => array(
'name' => 'arcade_scores',
'columns' => array(
array(
'name' => 'id_score',
'type' => 'int',
'unsigned' => true,
'auto' => true
),
array(
'name' => 'id_game',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'id_member',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'score',
'type' => 'float',
),
array(
'name' => 'duration',
'type' => 'float',
'unsigned' => true,
),
array(
'name' => 'end_time',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'champion_from',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'champion_to',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'position',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'personal_best',
'type' => 'tinyint',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'score_status',
'type' => 'varchar',
'default' => '',
'size' => 30,
),
array(
'name' => 'member_ip',
'type' => 'varchar',
'default' => '',
'size' => 15,
),
array(
'name' => 'player_name',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'comment',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'validate_hash',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_score')
),
array(
'name' => 'id_game',
'type' => 'index',
'columns' => array('id_game')
),
array(
'name' => 'personal_best',
'type' => 'index',
'columns' => array('id_member''personal_best')
),
)
),
// Categories
'arcade_categories' => array(
'name' => 'arcade_categories',
'columns' => array(
array(
'name' => 'id_cat',
'type' => 'int',
'unsigned' => true,
'auto' => true
),
array(
'name' => 'cat_name',
'type' => 'varchar',
'default' => '',
'size' => 20,
),
array(
'name' => 'num_games',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'cat_order',
'type' => 'int',
'default' => 1,
'unsigned' => true,
),
array(
'name' => 'special',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'member_groups',
'type' => 'varchar',
'default' => '-2,-1,0,2',
'size' => 255,
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_cat')
)
)
),
// Favorites
'arcade_favorite' => array(
'name' => 'arcade_favorite',
'columns' => array(
array(
'name' => 'id_favorite',
'type' => 'int',
'unsigned' => true,
'auto' => true
),
array(
'name' => 'id_member',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'id_game',
'type' => 'int',
'unsigned' => true,
)
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_favorite')
),
array(
'name' => 'id_game',
'type' => 'index',
'columns' => array('id_game''id_member')
)
)
),
// Matchers
'arcade_matches' => array(
'name' => 'arcade_matches',
'columns' => array(
array(
'name' => 'id_match',
'type' => 'int',
'unsigned' => true,
'auto' => true
),
array(
'name' => 'name',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'id_member',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'private_game',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'status',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'created',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'updated',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'num_players',
'type' => 'int',
'default' => 2,
'unsigned' => true,
),
array(
'name' => 'current_players',
'type' => 'int',
'default' => 1,
'unsigned' => true,
),
array(
'name' => 'num_rounds',
'type' => 'int',
'default' => 1,
'unsigned' => true,
),
array(
'name' => 'current_round',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'match_data',
'type' => 'text',
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_match')
),
)
),
// Match players
'arcade_matches_players' => array(
'name' => 'arcade_matches_players',
'columns' => array(
array(
'name' => 'id_match',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'id_member',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'status',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'score',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'player_data',
'type' => 'text',
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_match''id_member')
),
)
),
// Match Rounds
'arcade_matches_rounds' => array(
'name' => 'arcade_matches_rounds',
'columns' => array(
array(
'name' => 'id_match',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'round',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'id_game',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'status',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_match''round')
),
)
),
// Match results
'arcade_matches_results' => array(
'name' => 'arcade_matches_results',
'columns' => array(
array(
'name' => 'id_match',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'id_member',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'round',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'score',
'type' => 'float',
'default' => 0,
),
array(
'name' => 'duration',
'type' => 'float',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'end_time',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'score_status',
'type' => 'varchar',
'default' => '',
'size' => 30,
),
array(
'name' => 'validate_hash',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_match''id_member''round')
),
)
),
// Rates
'arcade_rates' => array(
'name' => 'arcade_rates',
'columns' => array(
array(
'name' => 'id_member',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'id_game',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'rating',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'rate_time',
'type' => 'int',
'default' => 0,
'unsigned' => true,
)
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_game''id_member')
),
array(
'name' => 'id_game',
'type' => 'index',
'columns' => array('id_game')
)
)
),
// Settings
'arcade_settings' => array(
'name' => 'arcade_settings',
'columns' => array(
array(
'name' => 'id_member',
'type' => 'int',
),
array(
'name' => 'variable',
'type' => 'varchar',
'size' => 30,
),
array(
'name' => 'value',
'type' => 'text',
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_member''variable')
),
array(
'name' => 'id_member',
'type' => 'index',
'columns' => array('id_member')
),
)
),
// Game info database
'arcade_game_info' => array(
'name' => 'arcade_game_info',
'columns' => array(
array(
'name' => 'internal_name',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'game_name',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'description',
'type' => 'text',
),
array(
'name' => 'info_url',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'download_url',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('internal_name')
)
),
'upgrade' => array(
'columns' => array(
'submit_system' => 'drop',
),
)
),
// File cache
'arcade_files' => array(
'name' => 'arcade_files',
'columns' => array(
array(
'name' => 'id_file',
'type' => 'int',
'auto' => true,
'unsigned' => true,
),
array(
'name' => 'id_game',
'type' => 'int',
'unsigned' => true,
),
array(
'name' => 'file_type',
'type' => 'varchar',
'default' => 'game',
'size' => 30,
),
array(
'name' => 'game_name',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'status',
'type' => 'int',
'default' => 0,
'unsigned' => true,
),
array(
'name' => 'game_file',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
array(
'name' => 'game_directory',
'type' => 'varchar',
'default' => '',
'size' => 255,
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array('id_file')
),
),
'upgrade' => array(
'columns' => array(
'internal_name' => 'drop',
),
),
)
);

?>

สร้างไฟล์: install_main.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/install_main.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/**********************************************************************************
* install_main.php                                                                *
***********************************************************************************
* SMF Arcade                                                                      *
* =============================================================================== *
* Software Version:           SMF Arcade 2.5 RC1                                  *
* Software by:                Niko Pahajoki (http://www.madjoki.com)              *
* Copyright 2004-2009 by:     Niko Pahajoki (http://www.madjoki.com)              *
* Support, News, Updates at:  http://www.smfarcade.info                           *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/

global $txt$smcFunc$db_prefix$modSettings;
global 
$project_version$addSettings$permissions$tables$sourcedir;

if (!
defined('SMF'))
die('<b>Error:</b> Cannot install - please run arcadeinstall/index.php instead');

$forced false;

// Step 1: Rename E-Arcade tables if needed
doRenameTables();

// Step 2: Create and/or Upgrade tables
doTables($tables$columnRenametrue);

// Step 3: Add Settings to database
doSettings($addSettings);

// Step 4: Update "Admin Features"
updateAdminFeatures('arcade', !empty($modSettings['arcadeEnabled']));

// Step 5: Add Permissions to database
doPermission($permissions);

// Step 6: Insert SMF Arcade Package Server to list
$request $smcFunc['db_query']('''
SELECT COUNT(*)
FROM {db_prefix}package_servers
WHERE name = {string:name}'
,
array(
'name' => 'SMF Arcade Package Server',
)
);

list (
$count) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

if (
$count == || $forced)
{
$smcFunc['db_insert']('insert',
'{db_prefix}package_servers',
array(
'name' => 'string',
'url' => 'string',
),
array(
'SMF Arcade Package Server',
'http://download.smfarcade.info',
),
array()
);
}

// Step 7: Insert Default Category
$request $smcFunc['db_query']('''
SELECT COUNT(*)
FROM {db_prefix}arcade_categories'
);

list (
$count) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

if (
$count == || $forced)
{
$smcFunc['db_insert']('insert',
'{db_prefix}arcade_categories',
array('cat_name' => 'string''member_groups' => 'string''cat_order' => 'int',),
array('Default''-2,-1,0,1,2'1),
array('id_cat')
);
}

// Step 8: Update Arcade Version in Database
updateSettings(array('arcadeVersion' => $arcade_version));

function 
doRenameTables()
{
global $smcFunc$db_prefix$db_type;

if ($db_type != 'mysql')
return;

$tables $smcFunc['db_list_tables']();

// Detect eeks mod from unique table name
if (in_array($db_prefix 'arcade_shouts'$tables))
{
$tables = array(
'arcade_games' => 'earcade_games',
'arcade_personalbest' => 'earcade_personalbest',
'arcade_scores' => 'earcade_scores',
'arcade_categories' => 'earcade_categories',
'arcade_favorite' => 'earcade_favorite',
'arcade_rates' => 'earcade_rates',
'arcade_settings' => 'earcade_settings',
'arcade_v3temp' => 'earcade_v3temp',
'arcade_shouts' => 'earcade_shouts',
'arcade_tournament_rounds' => 'earcade_tournament_rounds',
'arcade_tournament_players' => 'earcade_tournament_players',
'arcade_tournament_scores' => 'earcade_tournament_scores',
'arcade_tournament' => 'earcade_tournament',
);

foreach ($tables as $old => $new)
{
$smcFunc['db_query']('''
RENAME TABLE {db_prefix}{raw:old} TO {db_prefix}{raw:new}'
,
array(
'old' => $old,
'new' => $new,
)
);
}
}
}

?>

สร้างไฟล์: Subs-Install.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/Subs-Install.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/**********************************************************************************
* Subs-Install.php                                                                *
***********************************************************************************
* SMF Arcade                                                                      *
* =============================================================================== *
* Software Version:           SMF Arcade 2.5 RC1                                  *
* Software by:                Niko Pahajoki (http://www.madjoki.com)              *
* Copyright 2004-2009 by:     Niko Pahajoki (http://www.madjoki.com)              *
* Support, News, Updates at:  http://www.smfarcade.info                           *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/

if (!defined('SMF'))
die('Hacking attempt...');

function 
doTables($tables$columnRename = array())
{
global $smcFunc$db_prefix$db_type$db_show_debug;

$log = array();
$existingTables $smcFunc['db_list_tables']();

foreach ($tables as $table)
{
$table_name $table['name'];

$tableExists in_array($db_prefix $table_name$existingTables);

// Create table
if (!$tableExists && empty($table['smf']))
$smcFunc['db_create_table']('{db_prefix}' $table_name$table['columns'], $table['indexes']);
// Update table
else
{
$currentTable $smcFunc['db_table_structure']('{db_prefix}' $table_name);

// Renames in this table?
if (!empty($table['rename']))
{
foreach ($currentTable['columns'] as $column)
{
if (isset($table['rename'][$column['name']]))
{
$old_name $column['name'];
$column['name'] = $table['rename'][$column['name']];

$smcFunc['db_change_column']('{db_prefix}' $table_name$old_name$column);
}
}
}

// Global renames? (should be avoided)
if (!empty($columnRename))
{
foreach ($currentTable['columns'] as $column)
{
if (isset($columnRename[$column['name']]))
{
$old_name $column['name'];
$column['name'] = $columnRename[$column['name']];
$smcFunc['db_change_column']('{db_prefix}' $table_name$old_name$column);
}
}
}

// Check that all columns are in
foreach ($table['columns'] as $id => $col)
{
$exists false;

// TODO: Check that definition is correct
foreach ($currentTable['columns'] as $col2)
{
if ($col['name'] === $col2['name'])
{
$exists true;
break;
}
}

// Add missing columns
if (!$exists)
$smcFunc['db_add_column']('{db_prefix}' $table_name$col);
}

// Remove any unnecassary columns
foreach ($currentTable['columns'] as $col)
{
$exists false;

foreach ($table['columns'] as $col2)
{
if ($col['name'] === $col2['name'])
{
$exists true;
break;
}
}

if (!$exists && isset($table['upgrade']['columns'][$col['name']]))
{
if ($table['upgrade']['columns'][$col['name']] == 'drop')
$smcFunc['db_remove_column']('{db_prefix}' $table_name$col['name']);
}
elseif (!$exists && !empty($db_show_debug) && empty($table['smf']))
$log[] = sprintf('Table %s has non-required column %s'$table_name$col['name']);
}

// Check that all indexes are in and correct
foreach ($table['indexes'] as $id => $index)
{
$exists false;

foreach ($currentTable['indexes'] as $index2)
{
// Primary is special case
if ($index['type'] == 'primary' && $index2['type'] == 'primary')
{
$exists true;

if ($index['columns'] !== $index2['columns'])
{
$smcFunc['db_remove_index']('{db_prefix}' $table_name'primary');
$smcFunc['db_add_index']('{db_prefix}' $table_name$index);
}

break;
}
// Make sure index is correct
elseif (isset($index['name']) && isset($index2['name']) && $index['name'] == $index2['name'])
{
$exists true;

// Need to be changed?
if ($index['type'] != $index2['type'] || $index['columns'] !== $index2['columns'])
{
$smcFunc['db_remove_index']('{db_prefix}' $table_name$index['name']);
$smcFunc['db_add_index']('{db_prefix}' $table_name$index);
}

break;
}
}

if (!$exists)
$smcFunc['db_add_index']('{db_prefix}' $table_name$index);
}

// Remove unnecassary indexes
foreach ($currentTable['indexes'] as $index)
{
$exists false;

foreach ($table['indexes'] as $index2)
{
// Primary is special case
if ($index['type'] == 'primary' && $index2['type'] == 'primary')
$exists true;
// Make sure index is correct
elseif (isset($index['name']) && isset($index2['name']) && $index['name'] == $index2['name'])
$exists true;
}

if (!$exists)
{
if (isset($table['upgrade']['indexes']))
{
foreach ($table['upgrade']['indexes'] as $index2)
{
if ($index['type'] == 'primary' && $index2['type'] == 'primary' && $index['columns'] === $index2['columns'])
$smcFunc['db_remove_index']('{db_prefix}' $table_name'primary');
elseif (isset($index['name']) && isset($index2['name']) && $index['name'] == $index2['name'] && $index['type'] == $index2['type'] && $index['columns'] === $index2['columns'])
$smcFunc['db_remove_index']('{db_prefix}' $table_name$index['name']);
elseif (!empty($db_show_debug))
$log[] = $table_name ' has Unneeded index ' var_dump($index);
}
}
elseif (!empty($db_show_debug))
$log[] = $table_name ' has Unneeded index ' var_dump($index);
}
}
}
}

if (!empty($log))
log_error(implode('<br />'$log));

return $log;
}

function 
doSettings($addSettings)
{
global $smcFunc$modSettings;

$update = array();

foreach ($addSettings as $variable => $value)
{
list ($value$overwrite) = $value;

if ($overwrite || !isset($modSettings[$variable]))
$update[$variable] = $value;
}

if (!empty($update))
updateSettings($update);
}

function 
doPermission($permissions)
{
global $smcFunc;

$perm = array();

foreach ($permissions as $permission => $default)
{
$result $smcFunc['db_query']('''
SELECT COUNT(*)
FROM {db_prefix}permissions
WHERE permission = {string:permission}'
,
array(
'permission' => $permission
)
);

list ($num) = $smcFunc['db_fetch_row']($result);

if ($num == 0)
{
foreach ($default as $grp)
$perm[] = array($grp$permission);
}
}

if (empty($perm))
return;

$smcFunc['db_insert']('insert',
'{db_prefix}permissions',
array(
'id_group' => 'int',
'permission' => 'string'
),
$perm,
array()
);
}

function 
updateAdminFeatures($item$enabled false)
{
global $modSettings;

$admin_features = isset($modSettings['admin_features']) ? explode(','$modSettings['admin_features']) : array('cd,cp,k,w,rg,ml,pm');

if (!is_array($item))
$item = array($item);

if ($enabled)
$admin_features array_merge($admin_features$item);
else
$admin_features array_diff($admin_features$item);

updateSettings(array('admin_features' => implode(','$admin_features)));

return true;
}

?>

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 3 เมื่อ: 10 กรกฎาคม 2553, 21:51:31
รบกวนถามนิดนึงครับ ติดตังแล้วไม่มีเกมครับ



มันไม่มีเกมเหมือนในรูปอ่ะครับ  หรือว่าต้องไปโหลดมาติดตั้งอีกทีครับ พอจะแนะนำได้มั้ยครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.5.10   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 4 เมื่อ: 10 กรกฎาคม 2553, 22:10:59
ต้องไปโหลดมาจากเว็บต้นฉบับครับ..

โหลดมาแล้วก็อัพขึ้นโฟลเดอร์ Games แล้วเข้าไปติดตั้งผู้ดูแล -->> ติดตั้งเกมส์ -->> ติดตั้ง -->> เลือกเกมส์ -->> ติดตั้งเกมส์ที่เลือก

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.6.6   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 5 เมื่อ: 10 กรกฎาคม 2553, 22:22:13
ขอบคุณ ครับลุงหนุ่ย แนะนำผมสักเกมเถอะครับ ผมไม่รู้จะหาที่ใหน ขอแพคเมนสักเกมก็ได้ครับ จะได้รู้แนวทางครับ

ขอบคุณล่วงหน้าครับลุงหนุ่ย

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.5.10   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 6 เมื่อ: 10 กรกฎาคม 2553, 23:11:03
ไปที่เว็บนี้ครับ http://download.smfarcade.info/ ดูที่เมนูด้านบนจะมีคำว่า Games

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.6.6   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 7 เมื่อ: 11 กรกฎาคม 2553, 03:09:58
ขอบคุณครับ ลุงหนุ่ย เล่นได้แล้วครับ แจ๋วมากมาย



ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.5.10   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
SWOY

icon message
general ความคิดเห็นที่ 8 เมื่อ: 27 กรกฎาคม 2553, 02:40:25
สมาชิกกลุ่มพิเศษที่สร้างใหม่เข้าเล่นไม่ได้ครับ ทั้งที่ตั้งการอนุญาตแล้ว(เข้าได้แต่มองไม่เห็นเกม)

แก้ยังไงครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Chrome 5.0.375.99   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 9 เมื่อ: 27 กรกฎาคม 2553, 11:13:43
ต้องต้องค่าการอนุญาตที่ตัวเกมส์ครับ อนุญาตกลุ่มสมาชิกอย่างเดียวไม่ได้

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.6.8   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 10 เมื่อ: 5 มีนาคม 2554, 11:07:04
พี่หนุ่ยผมมีเรื่องรบกวนหน่อยครับ คือผมจนปัญญาจริง ๆ ผม สร้าง package_install.php เพื่อสร้างฐานข้อมูล และกด Enter ปรากฎว่า ขึ้นข้อควา่มว่า

อ้างถึง
Warning: require_once(/ArcadeInstall.php) [function.require-once]: failed to open stream: No such file or directory in /home/kamphaeng/domains/kamphaengphetfc.com/public_html/webboard/package_install.php on line 25

Fatal error: require_once() [function.require]: Failed opening required '/ArcadeInstall.php' (include_path='.:/usr/local/lib/php') in /home/kamphaeng/domains/kamphaengphetfc.com/public_html/webboard/package_install.php on line 25

ผมใช้ SMF 1.1.13


ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows NT 6.1    Firefox 3.6.14   see ip บันทึกการเข้า
ดูรายการสิ่งของน้องหมี..เอาไว้กอดนอนแทนกิ๊ก  
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 11 เมื่อ: 5 มีนาคม 2554, 13:24:28
มันไม่พบไฟล์ ArcadeInstall.php ครับดูให้ดีว่าไฟล์นี้อยู่ที่เดียวกับ SSI.php

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.5.17   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 12 เมื่อ: 5 มีนาคม 2554, 15:03:52
ผมดูแล้วครับปรากฏว่ามี ArcadeInstall.php อยู่ครับ อยู่ที่เดียวกับ SSI.php เลยครับ
แต่ยังไม่ได้ครับ


ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows NT 6.1    Firefox 3.6.14   see ip บันทึกการเข้า
ดูรายการสิ่งของน้องหมี..เอาไว้กอดนอนแทนกิ๊ก  
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 13 เมื่อ: 5 มีนาคม 2554, 15:12:09
ถ้างั้นเป็นที่โฮสต์แล้วครับ ถ้าเดาไม่ผิดก็คือ ไม่สามารถติดตั้ง mod อะไรได้อีกถ้าหากมีการแก้ไขฐานข้อมูล มันบอกว่าไม่สามารถเปิด stream (สะพาน) เชื่อต่อระหว่างสองไฟล์นี้ได้ (ArcadeInstall.php+package_install.php) ลองรัน ArcadeInstall.php โดยตรงดูครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.5.17   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 14 เมื่อ: 5 มีนาคม 2554, 15:42:45
ดูใหม่อีกทีนะครับผมดูผิดไปสับสนระหว่าง ArcadeInstall กับ installArcade

installArcade -->> $boarddir

ArcadeInstall -->> $sourcesdir

ถ้าไม่ได้จริงๆ ลองติดตั้งใน localhost แล้วค่อยนำเข้าฐานข้อมูลครับ ลองทำด้วยตัวเองก่อน ติดขัดก็ถามได้ในกระทู้นี้ ถ้าไม่ได้จริงๆ เดียวผมจัดการให้ครับ แต่อยากให้ลองทำด้วยตัวเองให้สุดวิสัยก่อน ต้องการให้มีประสบการณ์จะได้ช่วยเหลือตัวเองได้ในระยะยาว

ลิงค์หัวข้อ: http://dexmore.com/topic/2035
Windows XP    Firefox 3.5.17   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
ส่งหัวข้อนี้พิมพ์ หน้า: 1 2 Next
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 17 พฤษภาคม 2555, 20:18:52

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla