• 30-05-2008, 21:35:54
    #1
    SMF E-Arcade Moduna VBulletin'deki bir sürü özellik eklenmiş.
    Örneğin ;
    Turnuva Modu, Oyunlardaki Şampiyonlukları Profilde Gösterme, Oyunları Dereceleme, oynama gibi özellikleriyle listeleme ve daha bir çok özellik bu modla sizlerle..


    Paket olaraka yüklemek isterseniz dosya ekdedir...


    Manuel Anlatım ;
    Ana dizinde İndex.php Açın
    Bul;
    	elseif (empty($_REQUEST['action']))
    Üstüne Ekleyin;
    	// 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';
    	}
    Bul;
    		'announce' => array('Post.php', 'AnnounceTopic'),
    Altına Ekleyin;
            'arcade' => array('Arcade.php','Arcade'),
    		'managegames' => array('ManageGames.php', 'GamesAdmin'),
    		'arcadecategory' => array('ArcadeSettings.php', 'ArcadeCategory'),
    		'arcadesettings' => array('ArcadeSettings.php', 'ArcadeSettings'),
    Source/ManagePermissions.php Açın;
    Bul;
    	$permissionList = array(
    		'membergroup' => array(
    Altına Ekleyin;
                'arcade' => array(
                    'arcade_view' => false,
                    'arcade_play' => false,
                    'arcade_admin' => false, 
                    'arcade_favorite' => false,
                    'arcade_submit' => false, 
                    'arcade_comment' => true, 
                    'arcade_rate' => false,             
                ),
    Bul;
    	$non_guest_permissions = array(
    Altına Ekleyin;
    		'arcade_rate',
    		'arcade_favorite',
    		'arcade_admin',
    Source/Subs.php Açın;
    Bul;
    	// Admin area 'Members'.
    	if (allowedTo(array('moderate_forum', 'manage_membergroups', 'manage_bans', 'manage_permissions', 'admin_forum')))
    Altına Ekleyin;
    	// 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>',
    			)
    		);
    	}
    Source/Who.php Açın;
    Bul;
    		// Probably an error or some goon?
    Üstüne Ekleyin;
    		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'];
    		}
    Bul;
    	// Load member names for the profile.
    Üstüne Ekleyin;
    	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);	
    	}
    Kendi THEME 'nızde index.template.php Açın;
    Bul;
    	if (in_array($context['current_action'], array('admin',
    Altına Ekle;
    'managegames', 'arcadesettings', 'arcadecategory',
    Bul;
    	if (in_array($context['current_action'], array('search',
    Altına Ekleyin;
    'arcade',
    Bul;
    // How about the [search] button?
    Üstüne Ekleyin;
        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>' : '';
    Temanızda - languages/Modifications.turkish.php Açın;
    Bul;
    ?>
    Üstüne Ekleyin;
    $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 Administarator 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';
    $txt['cannot_arcade_play_credit'] = 'You do not have enough credits to play the arcade';
    // 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.';
    Temanızda - Profile.template.php Açın;
    Bul;
    </table>
    				</td>
    			</tr>
    		</table>';
    }
    // Template for changing user account information.
    Değiştirin;
    </table>
    				</td>
    			</tr>';
    	profile_stats();
    echo'
    		</table>';
    }
    // Template for changing user account information.
    Bul;
    <label for="popup_messages"><input type="checkbox" name="default_options[popup_messages]" id="popup_messages" value="1"', !empty($context['member']['options']['popup_messages']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['popup_messages'], '</label><br />
    Altına Ekleyin;
    									<input type="hidden" name="default_options[arcade_messages]" value="0" />
    									<label for="arcade_messages"><input type="checkbox" name="default_options[arcade_messages]" id="arcade_messages" value="1"', !empty($context['member']['options']['arcade_messages']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['arcade_messages'], '</label><br />
    Temanızda - languages/Profile.turkish.php Açın;
    Bul;
    $txt['popup_messages'] = 'Show a popup when you receive new messages?';
    Altına Ekleyin;
    $txt['arcade_messages'] = 'Send a PM when your highscore is beaten?';
    Temanızda - Display.template.php Açın;
    Bul;
    global $context, $settings, $options, $txt, $scripturl, $modSettings;
    Değiştirin;
    	global $context, $settings, $options, $txt, $scripturl, $sourcedir, $modSettings;
    	require_once($sourcedir.'/ArcadeSigsStats_v2.php');
    Bul;
    // Done with the information about the poster... on to the post itself.
    Üzerine Ekleyin;
    //-- start champ in post profile --------------
    		arcade_champs_post_profile($message);
    //--  end champ in post profile ---------------
    Bul;
    	if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
    			echo '
    							<hr width="100%" size="1" class="hrcolor" />
    							<div class="signature">', $message['member']['signature'], '</div>';
    Değiştirin;
    		/* //-- Disabled for Arcade Champs in Sig Mod ----------------------------------------
    		if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
    		echo '
    		<hr width="100%" size="1" class="hrcolor" />
    		<div class="signature">', $message['member']['signature'], '</div>';
    		//-- Disabled for Arcade Champs in Sig Mod ------------------------------------------*/
    		arcade_champs_sig($message);
    Source/Display.php Açın;
    Bul;
    // The central part of the board - topic display.
    Üzerine Ekleyin;
    require_once($sourcedir.'/ArcadeSigsStats_v2.php');
    Bul;
    $attachments = array();
    Altına Ekleyin;
    //---start champs in sig ---
    	build_champ_sigs();
    //----end champs in sig ----
    Source/Profile.php Açın;
    Bul;
    global $txt, $scripturl, $user_info, $context, $ID_MEMBER, $sourcedir, $user_profile, $modSettings;
    Altına Ekleyin;
    require_once($sourcedir.'/ArcadeSigsStats_v2.php');
    Bul;
    ksort($context['posts_by_time']);
    Altına Ekleyin;
    	build_champ_profile($memID);
    Ek Dosyadaki installArcade.php dosyasını Forum Ana Dizinine Atarak bir Kereliğine Çalıştırdığınızda Veritabanınızıda Ayarlamış olursunuz.
    Örn ; siteismi.com

    Diğer Dosyaları Aşağıdaki gibi atacaksınız.
    * Sources/Arcade.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadeInstall.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadeList.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadePlay.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadeStats.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadeSettings.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/Subs-Arcade.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ManageGames.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadeBlocks.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadeSigsStats_v2.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadeTar.php dosyası Sources Klasörüne kopyalanacaktır
    * Sources/ArcadeTour.php dosyası Sources Klasörüne kopyalanacaktır
    Eğer Temanız Farklıysa Kendi Temanızın Klasörüne Atın...
    * Themes/default/arcade.js dosyası Temanızın Klasörüne kopyalanacaktır
    * Themes/default/swfobject.js dosyası Temanızın Klasörüne kopyalanacaktır
    * Themes/default/Arcade.template.php dosyası Temanızın Klasörüne kopyalanacaktır
    * Themes/default/ArcadeAdmin.template.php dosyası Temanızın Klasörüne hedefine kopyalanacaktır
    * Themes/default/ManageGames.template.php dosyası Temanızın Klasörüne hedefine kopyalanacaktır
    Eğer Temanızın Klasöründe Laguages klasörü yoksa Default temasının içindeki klasöre atın
    * Themes/default/languages/Arcade.english.php dosyası Temanızın Laguages klasörüne kopyalanacaktır
    * Themes/default/languages/ArcadeAdmin.english.php dosyası Temanızın Laguages klasörüne kopyalanacaktır
    * ArcadeLicense.txt dosyası Forum ana dizinine kopyalanacaktır
    * installArcade.php dosyası Forum ana dizinine kopyalanacaktır
    * newscore.php dosyası $boarddir hedefine kopyalanacaktır
    * arcade.php dosyası Forum ana dizinine kopyalanacaktır
    Zaten ekteki dosyadada bu dosyalar birbirnden ayrılmış şekildedir.
    Kopyalanacak Klasörler :
    Ekteki Dosyada Görüldüğü gibi
    getid3 klasörü ana dizine
    Themes/default/images/arc_icons içindeki arc_icons dosyasıda Temanızın images klasörüne kopyalanacak..
    Oluşturulan klasörler
    * Games klasörü ana dizine oluşturulacaktır
    * cache klasörü ana dizine oluşturulacaktır
    * tempGames klasörü ana dizine oluşturulacaktır
    * arcade klasörü ana dizine oluşturulacaktır
    * gamedata klasörü anadizin/arcade içinde oluşturulacaktır
    * gamedata klasörü anadizin/tempGames içinde oluşturulacaktır
    Kolay Gelsin....
  • 31-05-2008, 00:53:44
    #2
    Kullanıyorum ilgili arkadaşlara tavsiye ederim..