ScReaM_
05-16-2007, 22:35
http://www.vbulletin.org/forum/images/cstyle/motm.gif
Yapımcı: John
Site: v3 Arcade Forums - Powered by vBulletin (http://www.v3arcade.com/)
Orj. Link: v3 Arcade - Games Arcade & Challenge System [vB 3.0.3] - vBulletin.org Forum (http://www.vbulletin.org/forum/showthread.php?t=60377)
TR: ScReaM_
---------------------------------------------------------------------------------
AcıkLama: vBulletin 3.0.3 İcin Arcade Oyun Eklentisidir..
---------------------------------------------------------------------------------
"admincp/index.php" Dosyasında Bulun ;
if (can_administer('canadminstyles'))
Üstüne Ekleyin ;
construct_nav_option("General Settings", 'arcadeadmin.php?do=general', '<br />');
construct_nav_option("Game Settings", 'arcadeadmin.php?do=games', '<br />');
construct_nav_option("Score Settings", 'arcadeadmin.php?do=scores', '<br />');
construct_nav_option("Challenges", 'arcadeadmin.php?do=challenges', '<br />');
construct_nav_group("Arcade", '<hr />');
"admincp/usergroup.php" Dosyasında Bulun ;
print_table_header($vbphrase['forum_viewing_permissions']);
Üstüne Ekleyin ;
print_table_header("Arcade Permissions");
print_yes_no_row("Can View the Arcade? <dfn>Allows usergroup to view the arcade, including high scores and leaderboards</dfn>", 'usergroup[canviewarcade]', $ug_bitfield['canviewarcade']);
print_yes_no_row("Can Play Games in the Arcade? <dfn>Allows usergroup to play arcade games</dfn>", 'usergroup[canplayarcade]', $ug_bitfield['canplayarcade']);
print_yes_no_row("Can Post Comments? <dfn>Allows usergroup to post comments when they achieve a high score</dfn>", 'usergroup[canmakecomments]', $ug_bitfield['canmakecomments']);
print_yes_no_row("Can Edit Leaderboard Comments? <dfn>Allows usergroup to edit comments left by other members</dfn>", 'usergroup[caneditscores]', $ug_bitfield['caneditscores']);
print_yes_no_row("Can Delete Leaderboard Scores? <dfn>Allows usergroup to delete scores and comments left by other members</dfn>", 'usergroup[candelscores]', $ug_bitfield['candelscores']);
print_table_break();
"includes/functions.php" Dosyasında Bulun ;
// get CSS width for outerdivwidth from outertablewidth
Üstüne Ekleyin ;
// declares the arcade image directory
$stylevar['imgdir_arcade'] = "images/arcade";
"includes/functions_showthread.php" Dosyasında Bulun (Dosya Baslangıcında İlk Function'dan Sonra);
require_once('./includes/functions_reputation.php');
Altına Ekleyin ;
if ($arcadegeneral['awardson']==1) {
// declares the arcade image directory
$stylevar['imgdir_arcade'] = "images/arcade";
$arcade_result = $DB_site->query("SELECT shortname,title,gamesettings,highscorerid,highscor e,miniimage,gameid FROM " . TABLE_PREFIX . "games ");
while ($arcade = $DB_site->fetch_array($arcade_result)){
if (($arcade[gamesettings] & $_GAMESCHECK['showaward'])){
$awards[$arcade[shortname]]['userid'] = $arcade['highscorerid'];
$awards[$arcade[shortname]]['gametitle'] = $arcade['title'];
$awards[$arcade[shortname]]['icon'] = $arcade['miniimage'];
$awards[$arcade[shortname]]['highscore'] = $arcade['highscore'];
$awards[$arcade[shortname]]['gameid'] = $arcade['gameid'];
}
}
}
Bulun ;
// sorts through all the stuff to return the postbit template
Altına Ekleyin ;
// arcade
global $awards,$arcadegeneral;
Bulun ;
$show['messageicon'] = iif($post['iconpath'], true, false);
Üstüne Ekleyin ;
if ($arcadegeneral['awardson']==1) {
foreach ($awards as $key => $award) {
if ($award['userid']==$post['userid']) {
eval('$post[\'arcadeawards\'] .= "' . fetch_template('arcade_awards_bit') . '";');
}
}
}
"includes/init.php" Dosyasında Bulun ;
'stylecache'
), $specialtemplates);
Deistirin ;
'stylecache',
'arcadesettings'
), $specialtemplates);
Bulun ;
// get $usergroupcache array
Üstüne Ekleyin ;
// get $arcadesettings
case 'arcadesettings':
$arcadesettings = $storeitem['data'];
break;
Bulun ;
// ----------------------------------------------------------
// ### END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
Üstüne Ekleyin ;
$_BITFIELD['usergroup']['arcadepermissions'] = array(
'canviewarcade' => 1,
'canplayarcade' => 2,
'caneditscores' => 4,
'candelscores' => 8,
'canmakecomments' => 16
);
Bulun ;
'warnall' => 131072
);
Altına Ekleyin ;
$_ARCADE = array(
'active' => 1,
'netplay' => 2,
'awardson' => 4,
'quickreg' => 8,
'autoprune' => 16,
'highonly' => 32,
'vbcodeon' => 64,
'imgcodeon' => 128,
'smilieson' => 256,
'allowemail' => 512,
'challengescores' => 1024
);
$_ARCADEUSER = array(
'firstvisit' => 1,
'settingschecked' => 2,
'allowchallenges' => 4,
'allowemails' => 8
);
$_GAMESCHECK = array(
'active' => 1,
'netplay' => 2,
'playpanel' => 4,
'challenabled' => 8,
'showaward' => 16
);
"includes/functions_online.php" Dosyasında BuLun ;
default:
if ($permissions['wolpermissions'] & CANWHOSONLINEBAD)
Üstüne Ekleyin ;
case 'arcade':
$userinfo['action'] = 'In the Arcade';
$userinfo['where'] = "<a href=\"arcade.php?$session[sessionurl]\">$vboptions[bbtitle] Arcade</a>";
break;
Bulun ;
default:
$userinfo['activity'] = 'unknown';
}
Üstüne Ekleyin ;
case 'arcade.php':
$userinfo['activity'] = 'arcade';
break;
"global.php" Dosyasında Bulun ;
echo "End call of global.php: $aftertime\n";
echo "\n<hr />\n\n";
}
Altına Ekleyin ;
// Creates general settings for the Arcade
$arcadegeneral = convert_bits_to_array($arcadesettings,$_ARCADE);
$arcadeuser = convert_bits_to_array($bbuserinfo['arcadesettings'],$_ARCADEUSER);
$arcadepermissions = convert_bits_to_array($permissions['arcadepermissions'],$_BITFIELD['usergroup']['arcadepermissions']);
"profile.php" Dosyasında Bulun ;
'editavatar' => array(
Üstüne Ekleyin ;
'editarcade' => array(
'modifyarcade'
),
BuLun ;
// ################################################## ##########################
// ############################### EDIT OPTIONS ###############################
// ################################################## ##########################
Üstüne Ekleyin ;
// ################################################## ##########################
// ########################### ARCADE USER OPTIONS ############################
// ################################################## ##########################
if ($_REQUEST['do'] == 'editarcade')
{
$checked = array();
// current values as checked
foreach ($arcadeuser as $key => $value) {
if ($value == 1) {
$checked[$key] = HTML_CHECKED;
}
}
construct_usercp_nav();
$templatename = "modifyarcade";
}
BuLun ;
// ############################### start update options ###############################
Üstüne Ekleyin ;
// ############################## start update arcade #################################
if ($_POST['do'] == 'updatearcade')
{
require_once('./includes/functions_misc.php');
// globalize here
$_POST['arcade']['firstvisit'] = 0;
$_POST['arcade']['settingschecked'] = 1;
$userSettings = &$_POST['arcade'];
$userBits = convert_array_to_bits($userSettings,$_ARCADEUSER);
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
arcadesettings = $userBits
WHERE userid = $bbuserinfo[userid]
");
$url = "arcade.php?do=main";
eval(print_standard_redirect('redirect_updatethank s'));
}
"showthread.php" Dosyasında Bulun ;
'pollresult',
Deistirin ;
'pollresult',
'arcade_awards_bit',
"postbit" Templatesinde BuLun ;
<if condition="$show['pmlink']">
Üstüne Ekleyin ;
<if condition="$post['arcadesettings'] & 4 AND $post[userid]!=$bbuserinfo[userid] AND $bbuserinfo[userid]!=0">
<tr><td class="vbmenu_option"><a href="arcade.php?$session[sessionurl]do=newchallenge&userid=$post[userid]" target="_self">Challenge $post[username] in the Arcade</a></td></tr>
</if>
Bulun ;
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
Altına Ekleyin ;
$post[arcadeawards]
"navbar" Templatesinde Bulun ;
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
Altına Ekleyin ;
<td class="vbmenu_control"><a href="arcade.php?$session[sessionurl]">Arcade</a></td>
Bulun ;
</table>
</div>
<!-- / header quick search form -->
Üstüne Ekleyin ;
<tr>
<td class="thead">Arcade Game Search</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="arcade.php" method="post">
<input type="text" class="bginput" name="search" size="20" />$gobutton<br />
</form>
</td>
</tr>
Cümle Yöneticisi [Phrase Manager] -> Diller & Cümleler [Languages & Phrases] -> Yeni Cümle Ekle [Add New Phrase] ;
Cümle Tipi [Phrase Type]: GLOBAL
Varname: arcade_cp_game_active
Yazı [Text]: Is Game Active? <dfn>Allows you to enable or disable the game</dfn>
Phrase Type: GLOBAL
Varname: arcade_cp_game_challenabled
Text: Challenges Enabled? <dfn>Allows challenges to be created for this game</dfn>
Phrase Type: GLOBAL
Varname: arcade_cp_game_netplay
Text: netPlay Enabled: <dfn>Live multiplayer gaming</dfn>
Phrase Type: GLOBAL
Varname: arcade_cp_game_playpanel
Text: Show Play Panel? <dfn>Enables a small navigation panel during play</dfn>
Phrase Type: GLOBAL
Varname: arcade_cp_game_showaward
Text: Show Award? <dfn>(Enable the award for the highest scorer, tournaments excluded)</dfn>
Phrase Type: GLOBAL
Varname: arcade_main_latestscorebit
Text: <b>{1}</b> scored <b>{2}</b> playing "<b>{3}</b>". <a href="arcade.php?do=play&gameid={4}">[Click here to play {3}!]
Phrase Type: Front-End Error Messages
Varname: quickreg_prompt
Text: You need to register in order to play in the Arcade. Click <a href="$vboptions[bburl]/register.php">here</a> to register.
Phrase Type: Control Panel Stop Message
Varname: arcade_cp_settingssaved
Text: <i>Arcade</i> Settings Saved Successfully
Bütün Bunları Yaptıktan Sonra Ekteki Dosyaları Şu Şekilde FTP'nize Atın ;
Files/arcade.php -> forumroot/arcade.php
Files/admincp/install_arcade.php -> forumroot/admincp/install_arcade.php
Files/admincp/arcadeadmin.php -> forumroot/admincp/arcadeadmin.php
Files/includes/functions_arcade.php -> forumroot/includes/functions_arcade.php
Files/includes/cron/arcadeupdate.php -> forumroot/includes/cron/arcadeupdate.php
Files/images/arcade/ -> forumroot/images/arcade/
Files/games/ -> forumroot/games/
Files/admincp/arcadejs/ -> forumroot/admincp/arcadejs/
Browser'ınızda Calıstırın (Kendi Forumunuza Göre Editleyeceksiniz.. Örn: http://www.ultravb.com/forum/admincp/install_arcade.php Gibi..);
forumroot/admincp/install_arcade.php
Kurulum İşlemi Bittikten Sonra Bu Dosyayı Silin (admincp/install_arcade.php)..
Admincp -> Zamanlanmış Görevler -> Yeni Görev Ekle ;
Title: Arcade Tasks
Minute: 23
Filename: ./includes/cron/arcadeupdate.php
Kaydedin & Bitti..
Anlatım Tamamen Bana Aittir Herzamanki Gibi..:whistling1:
Yapımcı: John
Site: v3 Arcade Forums - Powered by vBulletin (http://www.v3arcade.com/)
Orj. Link: v3 Arcade - Games Arcade & Challenge System [vB 3.0.3] - vBulletin.org Forum (http://www.vbulletin.org/forum/showthread.php?t=60377)
TR: ScReaM_
---------------------------------------------------------------------------------
AcıkLama: vBulletin 3.0.3 İcin Arcade Oyun Eklentisidir..
---------------------------------------------------------------------------------
"admincp/index.php" Dosyasında Bulun ;
if (can_administer('canadminstyles'))
Üstüne Ekleyin ;
construct_nav_option("General Settings", 'arcadeadmin.php?do=general', '<br />');
construct_nav_option("Game Settings", 'arcadeadmin.php?do=games', '<br />');
construct_nav_option("Score Settings", 'arcadeadmin.php?do=scores', '<br />');
construct_nav_option("Challenges", 'arcadeadmin.php?do=challenges', '<br />');
construct_nav_group("Arcade", '<hr />');
"admincp/usergroup.php" Dosyasında Bulun ;
print_table_header($vbphrase['forum_viewing_permissions']);
Üstüne Ekleyin ;
print_table_header("Arcade Permissions");
print_yes_no_row("Can View the Arcade? <dfn>Allows usergroup to view the arcade, including high scores and leaderboards</dfn>", 'usergroup[canviewarcade]', $ug_bitfield['canviewarcade']);
print_yes_no_row("Can Play Games in the Arcade? <dfn>Allows usergroup to play arcade games</dfn>", 'usergroup[canplayarcade]', $ug_bitfield['canplayarcade']);
print_yes_no_row("Can Post Comments? <dfn>Allows usergroup to post comments when they achieve a high score</dfn>", 'usergroup[canmakecomments]', $ug_bitfield['canmakecomments']);
print_yes_no_row("Can Edit Leaderboard Comments? <dfn>Allows usergroup to edit comments left by other members</dfn>", 'usergroup[caneditscores]', $ug_bitfield['caneditscores']);
print_yes_no_row("Can Delete Leaderboard Scores? <dfn>Allows usergroup to delete scores and comments left by other members</dfn>", 'usergroup[candelscores]', $ug_bitfield['candelscores']);
print_table_break();
"includes/functions.php" Dosyasında Bulun ;
// get CSS width for outerdivwidth from outertablewidth
Üstüne Ekleyin ;
// declares the arcade image directory
$stylevar['imgdir_arcade'] = "images/arcade";
"includes/functions_showthread.php" Dosyasında Bulun (Dosya Baslangıcında İlk Function'dan Sonra);
require_once('./includes/functions_reputation.php');
Altına Ekleyin ;
if ($arcadegeneral['awardson']==1) {
// declares the arcade image directory
$stylevar['imgdir_arcade'] = "images/arcade";
$arcade_result = $DB_site->query("SELECT shortname,title,gamesettings,highscorerid,highscor e,miniimage,gameid FROM " . TABLE_PREFIX . "games ");
while ($arcade = $DB_site->fetch_array($arcade_result)){
if (($arcade[gamesettings] & $_GAMESCHECK['showaward'])){
$awards[$arcade[shortname]]['userid'] = $arcade['highscorerid'];
$awards[$arcade[shortname]]['gametitle'] = $arcade['title'];
$awards[$arcade[shortname]]['icon'] = $arcade['miniimage'];
$awards[$arcade[shortname]]['highscore'] = $arcade['highscore'];
$awards[$arcade[shortname]]['gameid'] = $arcade['gameid'];
}
}
}
Bulun ;
// sorts through all the stuff to return the postbit template
Altına Ekleyin ;
// arcade
global $awards,$arcadegeneral;
Bulun ;
$show['messageicon'] = iif($post['iconpath'], true, false);
Üstüne Ekleyin ;
if ($arcadegeneral['awardson']==1) {
foreach ($awards as $key => $award) {
if ($award['userid']==$post['userid']) {
eval('$post[\'arcadeawards\'] .= "' . fetch_template('arcade_awards_bit') . '";');
}
}
}
"includes/init.php" Dosyasında Bulun ;
'stylecache'
), $specialtemplates);
Deistirin ;
'stylecache',
'arcadesettings'
), $specialtemplates);
Bulun ;
// get $usergroupcache array
Üstüne Ekleyin ;
// get $arcadesettings
case 'arcadesettings':
$arcadesettings = $storeitem['data'];
break;
Bulun ;
// ----------------------------------------------------------
// ### END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
Üstüne Ekleyin ;
$_BITFIELD['usergroup']['arcadepermissions'] = array(
'canviewarcade' => 1,
'canplayarcade' => 2,
'caneditscores' => 4,
'candelscores' => 8,
'canmakecomments' => 16
);
Bulun ;
'warnall' => 131072
);
Altına Ekleyin ;
$_ARCADE = array(
'active' => 1,
'netplay' => 2,
'awardson' => 4,
'quickreg' => 8,
'autoprune' => 16,
'highonly' => 32,
'vbcodeon' => 64,
'imgcodeon' => 128,
'smilieson' => 256,
'allowemail' => 512,
'challengescores' => 1024
);
$_ARCADEUSER = array(
'firstvisit' => 1,
'settingschecked' => 2,
'allowchallenges' => 4,
'allowemails' => 8
);
$_GAMESCHECK = array(
'active' => 1,
'netplay' => 2,
'playpanel' => 4,
'challenabled' => 8,
'showaward' => 16
);
"includes/functions_online.php" Dosyasında BuLun ;
default:
if ($permissions['wolpermissions'] & CANWHOSONLINEBAD)
Üstüne Ekleyin ;
case 'arcade':
$userinfo['action'] = 'In the Arcade';
$userinfo['where'] = "<a href=\"arcade.php?$session[sessionurl]\">$vboptions[bbtitle] Arcade</a>";
break;
Bulun ;
default:
$userinfo['activity'] = 'unknown';
}
Üstüne Ekleyin ;
case 'arcade.php':
$userinfo['activity'] = 'arcade';
break;
"global.php" Dosyasında Bulun ;
echo "End call of global.php: $aftertime\n";
echo "\n<hr />\n\n";
}
Altına Ekleyin ;
// Creates general settings for the Arcade
$arcadegeneral = convert_bits_to_array($arcadesettings,$_ARCADE);
$arcadeuser = convert_bits_to_array($bbuserinfo['arcadesettings'],$_ARCADEUSER);
$arcadepermissions = convert_bits_to_array($permissions['arcadepermissions'],$_BITFIELD['usergroup']['arcadepermissions']);
"profile.php" Dosyasında Bulun ;
'editavatar' => array(
Üstüne Ekleyin ;
'editarcade' => array(
'modifyarcade'
),
BuLun ;
// ################################################## ##########################
// ############################### EDIT OPTIONS ###############################
// ################################################## ##########################
Üstüne Ekleyin ;
// ################################################## ##########################
// ########################### ARCADE USER OPTIONS ############################
// ################################################## ##########################
if ($_REQUEST['do'] == 'editarcade')
{
$checked = array();
// current values as checked
foreach ($arcadeuser as $key => $value) {
if ($value == 1) {
$checked[$key] = HTML_CHECKED;
}
}
construct_usercp_nav();
$templatename = "modifyarcade";
}
BuLun ;
// ############################### start update options ###############################
Üstüne Ekleyin ;
// ############################## start update arcade #################################
if ($_POST['do'] == 'updatearcade')
{
require_once('./includes/functions_misc.php');
// globalize here
$_POST['arcade']['firstvisit'] = 0;
$_POST['arcade']['settingschecked'] = 1;
$userSettings = &$_POST['arcade'];
$userBits = convert_array_to_bits($userSettings,$_ARCADEUSER);
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
arcadesettings = $userBits
WHERE userid = $bbuserinfo[userid]
");
$url = "arcade.php?do=main";
eval(print_standard_redirect('redirect_updatethank s'));
}
"showthread.php" Dosyasında Bulun ;
'pollresult',
Deistirin ;
'pollresult',
'arcade_awards_bit',
"postbit" Templatesinde BuLun ;
<if condition="$show['pmlink']">
Üstüne Ekleyin ;
<if condition="$post['arcadesettings'] & 4 AND $post[userid]!=$bbuserinfo[userid] AND $bbuserinfo[userid]!=0">
<tr><td class="vbmenu_option"><a href="arcade.php?$session[sessionurl]do=newchallenge&userid=$post[userid]" target="_self">Challenge $post[username] in the Arcade</a></td></tr>
</if>
Bulun ;
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
Altına Ekleyin ;
$post[arcadeawards]
"navbar" Templatesinde Bulun ;
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
Altına Ekleyin ;
<td class="vbmenu_control"><a href="arcade.php?$session[sessionurl]">Arcade</a></td>
Bulun ;
</table>
</div>
<!-- / header quick search form -->
Üstüne Ekleyin ;
<tr>
<td class="thead">Arcade Game Search</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="arcade.php" method="post">
<input type="text" class="bginput" name="search" size="20" />$gobutton<br />
</form>
</td>
</tr>
Cümle Yöneticisi [Phrase Manager] -> Diller & Cümleler [Languages & Phrases] -> Yeni Cümle Ekle [Add New Phrase] ;
Cümle Tipi [Phrase Type]: GLOBAL
Varname: arcade_cp_game_active
Yazı [Text]: Is Game Active? <dfn>Allows you to enable or disable the game</dfn>
Phrase Type: GLOBAL
Varname: arcade_cp_game_challenabled
Text: Challenges Enabled? <dfn>Allows challenges to be created for this game</dfn>
Phrase Type: GLOBAL
Varname: arcade_cp_game_netplay
Text: netPlay Enabled: <dfn>Live multiplayer gaming</dfn>
Phrase Type: GLOBAL
Varname: arcade_cp_game_playpanel
Text: Show Play Panel? <dfn>Enables a small navigation panel during play</dfn>
Phrase Type: GLOBAL
Varname: arcade_cp_game_showaward
Text: Show Award? <dfn>(Enable the award for the highest scorer, tournaments excluded)</dfn>
Phrase Type: GLOBAL
Varname: arcade_main_latestscorebit
Text: <b>{1}</b> scored <b>{2}</b> playing "<b>{3}</b>". <a href="arcade.php?do=play&gameid={4}">[Click here to play {3}!]
Phrase Type: Front-End Error Messages
Varname: quickreg_prompt
Text: You need to register in order to play in the Arcade. Click <a href="$vboptions[bburl]/register.php">here</a> to register.
Phrase Type: Control Panel Stop Message
Varname: arcade_cp_settingssaved
Text: <i>Arcade</i> Settings Saved Successfully
Bütün Bunları Yaptıktan Sonra Ekteki Dosyaları Şu Şekilde FTP'nize Atın ;
Files/arcade.php -> forumroot/arcade.php
Files/admincp/install_arcade.php -> forumroot/admincp/install_arcade.php
Files/admincp/arcadeadmin.php -> forumroot/admincp/arcadeadmin.php
Files/includes/functions_arcade.php -> forumroot/includes/functions_arcade.php
Files/includes/cron/arcadeupdate.php -> forumroot/includes/cron/arcadeupdate.php
Files/images/arcade/ -> forumroot/images/arcade/
Files/games/ -> forumroot/games/
Files/admincp/arcadejs/ -> forumroot/admincp/arcadejs/
Browser'ınızda Calıstırın (Kendi Forumunuza Göre Editleyeceksiniz.. Örn: http://www.ultravb.com/forum/admincp/install_arcade.php Gibi..);
forumroot/admincp/install_arcade.php
Kurulum İşlemi Bittikten Sonra Bu Dosyayı Silin (admincp/install_arcade.php)..
Admincp -> Zamanlanmış Görevler -> Yeni Görev Ekle ;
Title: Arcade Tasks
Minute: 23
Filename: ./includes/cron/arcadeupdate.php
Kaydedin & Bitti..
Anlatım Tamamen Bana Aittir Herzamanki Gibi..:whistling1: