Перейти к контенту

Ищу хак arcade для 2,0,3


Рекомендуемые сообщения

в админке не появилось ничего

Значит плохо установил, проверь изменения в admin_pages.php ещё раз.

Ссылка на комментарий
Поделиться на других сайтах

Да ну? А какие ты вообще файлы изменял? В инструкции всё написано нормально.

В admin_pages.php 3 правки нужно было сделать...

Ссылка на комментарий
Поделиться на других сайтах

Там инструкция непонятная!

Добавлено в [mergetime]1104003115[/mergetime]

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

<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>ibProArcade v2.5 Fresh Install</title>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

 

<style type='text/css'>

 

html { overflow-x: auto; }

BODY { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #000; margin:0px;padding:0px;background-color:#FFF; text-align:center }

TABLE, TR, TD { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #000; }

 

#ipbwrapper { text-align:left; width:95%; margin-left:auto;margin-right:auto }

 

a:link, a:visited, a:active { text-decoration: underline; color: #000 }

a:hover { color: #465584; text-decoration:underline }

 

.row1 { background-color: #F5F9FD }

.row2 { background-color: #DFE6EF }

 

.maintitle { vertical-align:middle;font-weight:bold; color:#FFF; padding:8px 0px 8px 5px; background-image: url(tile_back.gif) }

 

.tableborder { border:1px solid #345487;background-color:#FFF; padding:0; margin:0 }

 

</style>

 

</head>

<body>

<br /><br />

<div id="ipbwrapper">

<div class="tableborder">

<table cellspacing="0" cellpadding="3" border="0" width="100%">

<tr>

<td class="maintitle">ibProArcade v2.5 Fresh Install</td>

</tr>

<tr>

<td class="row1">

To start off with, here's the download file.

<br /><br />

<a href="http://www.ibproarcade.com/downloads/fresh/ibProArcade2_v25.zip">http://www.ibproarcade.com/downloads/fresh/ibProArcade2_v25.zip</a>

<br /><br />

Start off by uploading all the files needed.

<br /><br />

<ul>

<li>The entire arcade folder to your root directory</li>

<li>the lang_Arcade.php to your "lang/en/" folder</li>

<li>the skin_Arcade.php and skin_v3Arcade.php to your "skin_cache/cacheid_X/" folders (all of them)</li>

<li>Arcade.php to your "sources" folder</li>

<li>ad_arcade.php to your "sources/Admin/" folder</li>

<li>installer.php to your root directory (with conf_global.php)</li>

</ul>

<br />

Next Chmod the /arcade/ directory and all its subfolders to 0777

<br /><br />

Next run the installer.php from the root directory to install all of the required databases. If you upgraded a 1.x board to 2.0 and the 1.x board had the arcade installed then do not run the installer.

<br /><br />

Now it's time to edit some files.

<br /><br />

<span style="font-size: 15pt; color: #0000FF;">Open "index.php"</span>

<br /><br />

Search for:

<br /><br />

<textarea class="row2" rows="2" cols="110">

'findpost' => array( 'findpost' , 'findpost' ),

</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="2" cols="110">'arcade' => array( 'Arcade' , 'Arcade' ),</textarea>

<br /><br />

<span style="color: #FF0000;">Save and upload your index.php back to your server.</span>

<br /><br />

<span style="font-size: 15pt; color: #0000FF;">Open "admin.php"</span>

<br /><br />

Search for:

<br /><br />

<textarea class="row2" rows="2" cols="110">'emailerror'=> array( 'emailerror' , 'emailerror' ),</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="2" cols="110">'arcade' => array( 'arcade' , 'arcade' ),</textarea>

<br /><br />

<span style="color: #FF0000;">Save and upload your admin.php back to your server.</span>

<br /><br />

<span style="font-size: 15pt; color: #0000FF;">Open "sources/classes/class_session.php"</span>

<br /><br />

Search for: ( in function update_member_session() )

<br /><br />

<textarea class="row2" rows="2" cols="110">'in_topic' => intval($ibforums->input['t']),</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="2" cols="110">'in_game' => intval($ibforums->input['gameid'])."|".$ibforums->input['do'],</textarea>

<br /><br />

<span style="color: #FF0000;">Save and upload the class_session.php back to your server.</span>

<br /><br />

<span style="font-size: 15pt; color: #0000FF;">Open "sources/online.php"</span>

<br /><br />

Search for:

<br /><br />

<textarea class="row2" rows="5" cols="110">

if ($r['in_topic'] != "")

{

$tid_array[ $r['in_topic'] ] = $r['in_topic'];

}</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="7" cols="110">

if($r['in_game'] != 0)

{

$g = explode("|",$r['in_game']);

$games[] = $g[0];

}

unset($g);</textarea>

<br /><br />

Then search for:

<br /><br />

<textarea class="row2" rows="10" cols="110">

if ( count($tid_array) > 0 )

{

$tid_string = implode( ",", $tid_array );

 

$DB->simple_construct( array( 'select' => 'tid, title', 'from' => 'topics', 'where' => "tid IN ($tid_string)" ) );

$DB->simple_exec();

 

while ( $t = $DB->fetch_row() )

{

$topics[ $t['tid'] ] = $t['title'];

}

}</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="10" cols="110">

if(count($games) > 0)

{

$games_list = implode(",", $games);

 

$DB->simple_construct( array( 'select' => 'gid, gwords, gtitle' , 'from' => 'games_list' , 'where' => 'gid IN ('.$games_list.')') );

$DB->simple_exec();

while($g = $DB->fetch_row())

{

$games_names[$g['gid']]["title"] = $g['gtitle'];

$games_names[$g['gid']]["desc"] = $g['gwords'];

}

}</textarea>

<br /><br />

Then search for:

<br /><br />

<textarea class="row2" rows="2" cols="110">$tid = $sess['in_topic'];</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="4" cols="110">

$sess['in_game'] = explode("|",$sess['in_game']);

$gid = $sess['in_game'][0];

$do = $sess['in_game'][1];</textarea>

<br /><br />

Then search for:

<br /><br />

<textarea class="row2" rows="10" cols="110">

if ($fid != "" and ($act == 'sf' or $act == 'st' or $act == 'post'))

{

$deny = 1;

 

$deny = $forums->forums_quick_check_access( $fid );

 

if ($deny != 1)

{

if ( ($tid > 0) and ($act != 'post') )

{

$line .= " <a href='{$this->base_url}showtopic=$tid'>{$topics[$tid]}</a>";

}

else

{

$line .= " <a href='{$this->base_url}showforum=$fid'>{$forums->forum_by_id[ $fid ]['name']}</a>";

}

}

else

{

$line = " {$ibforums->lang['board_index']}";

}

}</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="10" cols="110">

if($act == "arcade")

{

$l = explode("|",$this->where[ $act ]);

if($do == "play")

{

$line = $l[0];

if($ibforums->member["id"])

{

$line .= "<a href='{$this->base_url}act=Arcade&do=play&gameid=$gid' title='{$games_names[$gid]['desc']}'>{$games_names[$gid]['title']}</a>";

}

else

{

$line .= $games_names[$gid]['title'];

}

}

elseif($do == "stats")

{

$line = $l[1];

if($ibforums->member["id"])

{

$line .= "<a href='{$this->base_url}act=Arcade&do=stats&gameid=$gid' title='{$games_names[$gid]['desc']}'>{$games_names[$gid]['title']}</a>";

}

else

{

$line .= $games_names[$gid]['title'];

}

}

else

{

$line = "<a href='{$this->base_url}act=Arcade'>".$ibforums->lang["arcade_home"]."</a>";

}

}</textarea>

<br /><br />

<span style="color: #FF0000;">Save and upload your online.php back to your server.</span>

<br /><br />

<span style="font-size: 15pt; color: #0000FF;">Open "sources/lib/topic_linear.php"</span>

<br /><br />

Search for:

<br /><br />

<textarea class="row2" rows="6" cols="110">

$DB->cache_add_query( $query_type, array( 'pids' => $this->pids, 'scol' => $ibforums->vars['post_order_column'], 'sord' => $ibforums->vars['post_order_sort'] ) );</textarea>

<br /><br />

<b>Above it</b> add:

<br /><br />

<textarea class="row2" rows="10" cols="110">

$champs = array();

$tourneys = array();

$cached_crowns = array();

 

$DB->simple_construct( array( 'select' => 'crown_type AS type, show_crowns, show_t_won' , 'from' => 'games_settings' , 'limit' => array( 0 , 1 ) ) );

$DB->simple_exec();

$crown = $DB->fetch_row();

 

if( $crown['show_crowns'] )

{

$DB->query("SELECT c.*, g.gname, cat.password FROM ibf_games_champs AS c, ibf_games_list AS g, ibf_games_cats AS cat WHERE (c.champ_gid=g.gid) AND (g.gcat=cat.c_id) AND trim(password)=''");

while( $this_champ = $DB->fetch_row() )

{

if( !isset($champs[ $this_champ['champ_mid'] ]) )

{

$champs[ $this_champ['champ_mid'] ] = array();

}

$champs[ $this_champ['champ_mid'] ][] = array( 'gid' => $this_champ['champ_gid'], 'gtitle' => $this_champ['champ_gtitle'], 'gname' => $this_champ['gname'] );

}

}

 

if( $crown['show_t_won'] )

{

$DB->query("SELECT t.champion, m.id FROM ibf_tournaments AS t LEFT JOIN ibf_members AS m ON (t.champion = m.name) WHERE champion<>''");

while( $this_tourney = $DB->fetch_row() )

{

if( !isset($tourneys[ $this_tourney['id'] ]) )

{

$tourneys[ $this_tourney['id'] ] = 0;

}

$tourneys[ $this_tourney['id'] ]++;

}

}</textarea>

<br /><br />

Then search for:

<br /><br />

<textarea class="row2" rows="2" cols="110">$this->output .= $this->lib->html->RenderRow( $row, $poster );</textarea>

<br /><br />

<b>Replace</b> that with:

<br /><br />

<textarea class="row2" rows="10" cols="110">

//Start ibProArcade Crowns

$crowns = "";

if( $crown['show_crowns'] )

{

if( !isset($cached_crowns[ $poster['id'] ]) )

{

$crowns = "";

if( isset($champs[ $poster['id'] ]) )

{

if( count($champs[ $poster['id'] ]) > 1 )

{

switch($crown['type'])

{

case 0:

$crowns = "";

break;

case 1:

$crowns = "<marquee width='100%' scrollamount='3'>";

break;

case 2:

$crowns = "<marquee width='100%' name='crownscroll' scrollamount='1' direction='up' height='20'>";

break;

}

$crown_end = ($crown['type'] == 1) ? " " : "<br />";

foreach( $champs[ $poster['id'] ] as $this_game )

{

$crowns .= "<img src='arcade/images/".$this_game['gname']."2.gif' border='0' alt='' /> <a href='".$ibforums->base_url."act=Arcade&do=stats&gameid=".$this_game['gid']."'>".$this_game['gtitle']." Champion!</a>".$crown_end;

}

if($crown['type'] != 0)

{

$crowns .= "</marquee>";

}

}

else

{

foreach( $champs[ $poster['id'] ] as $this_game )

{

$crowns = "<img src='arcade/images/".$this_game['gname']."2.gif' border='0' alt='' /> <a href='".$ibforums->base_url."act=Arcade&do=stats&gameid=".$this_game['gid']."'>".$this_game['gtitle']." Champion!</a><br />";

}

}

}

 

$cached_crowns[ $poster['id'] ] = $crowns;

}

else

{

$crowns = $cached_crowns[ $poster['id'] ];

}

}

 

$champtext = "";

if( $crown['show_t_won'] )

{

if( isset($tourneys[ $poster['id'] ]) )

{

$champtext = "Tournaments Won: ".$tourneys[ $poster['id'] ]."<br /><br />";

}

}

//End ibProArcade Crowns

$this->output .= $this->lib->html->RenderRow( $row, $poster, $crowns, $champtext );</textarea>

<br /><br />

<span style="color: #FF0000;">Save and upload the topic_linear.php back to your server</span>

<br /><br />

<span style="font-size: 15pt; color: #0000FF;">Open "sources/Admin/admin_pages.php"</span>

<br /><br />

Search for:

<br /><br />

<textarea class="row2" rows="8" cols="110">

1700 => array(

1 => array( 'View Moderator Logs' , 'act=modlog' ),

2 => array( 'View Admin Logs' , 'act=adminlog' ),

3 => array( 'View Email Logs' , 'act=emaillog' ),

4 => array( 'View Email Error Logs', 'act=emailerror' ),

5 => array( 'View Bot Logs' , 'act=spiderlog' ),

6 => array( 'View Warn Logs' , 'act=warnlog' ),

),</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="10" cols="110">

2500 => array (

1 => array( 'Arcade Main Settings', 'act=arcade&code=settings' ),

2 => array( 'Games List' , 'act=arcade' ),

3 => array( 'Categories' , 'act=arcade&code=cat' ),

4 => array( 'Add Game' , 'act=arcade&code=add_game' ),

5 => array( 'Tournaments' , 'act=arcade&code=tourney' ),

6 => array( 'Group Permissions' , 'act=arcade&code=groups' ),

7 => array( 'Member Manage' , 'act=arcade&code=user_search' ),

8 => array( 'IP Banning' , 'act=arcade&code=ip_ban' ),

9 => array( 'Score Tools' , 'act=arcade&code=score_tools' ),

10 => array( 'Custom Game Sorting' , 'act=arcade&code=custom' ),

),</textarea>

<br /><br />

Then search for:

<br /><br />

<textarea class="row2" rows="2" cols="110">1700 => array( 'Board Logs' , '#f5cdcd' ),</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="2" cols="110">2500 => array( 'Arcade' , '#b66b6b;margin-top:12px;' ),</textarea>

<br /><br />

Then search for:

<br /><br />

<textarea class="row2" rows="2" cols="110">1700 => "View admin, moderator and email logs (Root admin only)",</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="2" cols="110">2500 => 'Manage your forum arcade.',</textarea>

<br /><br />

<span style="color: #FF0000;">Save and upload the admin_pages.php back to your server.</span>

<br /><br />

<span style="font-size: 15pt; color: #0000FF;">Open "lang/en/lang_online.php"</span>

<br /><br />

Search for:

<br /><br />

<textarea class="row2" rows="2" cols="110">WHERE_sf => "Viewing Forum:",</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="2" cols="110">WHERE_arcade => "Playing Game: |Viewing Leaders: ",</textarea>

<br /><br />

Then search for:

<br /><br />

<textarea class="row2" rows="2" cols="110">guest => "Guest",</textarea>

<br /><br />

<b>Below</b> that add:

<br /><br />

<textarea class="row2" rows="2" cols="110">arcade_home => "Viewing Arcade Main Page",</textarea>

<br /><br />

<span style="color: #FF0000;">Save and upload the lang_online.php to your server.</span>

<br /><br />

<span style="font-size: 15pt; color: #0000FF;">Open "lang/en/lang_error.php"</span>

<br /><br />

Search for:

<br /><br />

<textarea class="row2" rows="3" cols="110">);

?></textarea>

<br /><br />

<b>Above</b> that add:

<br /><br />

<textarea class="row2" rows="10" cols="110">//Arcade Errors

arcade_off => "The administrator currently has the arcade disabled.",

group_no_view => "The administrator has disabled viewing of the arcade for your member group. If you feel this is a mistake please PM an administrator and let them know.",

ban_name => "The administrator has banned this username from the arcade. If you feel this is a mistake please PM an administrator and let them know.",

ban_ip => "The administrator has banned this IP address from the arcade. If you feel this is a mistake please PM an administrator and let them know.",

cheater => "This score was not submitted from the game. Your score will not be saved.",

passed_times_played => "You've already played 3 times for this round. Please wait till your opponent playes to see if you advance to the next round.",</textarea>

<br /><br />

<span style="color: #FF0000;">Save and upload the lang_error.php to your server.</span>

<br /><br />

Now you're all done with the edits.

<br /><br />

Open your Admin CP and:

<ul>

<li>Open Skins & Templates</li>

<li>Click Skin Manager</li>

<li>Click IPB Default Skin</li>

<li>Click Edit Root Skin Template HTML</li>

<li>Click Topic View</li>

<li>Look for RenderRow</li>

<li>Click "Show Data Variables.."</li>

<li>After "$post, $author" add ",$crowns, $champtext" without the quotes</li>

<li>Click save and close</li>

</ul>

Still in that HTML Template look for:

<br /><br />

<textarea class="row2" rows="2" cols="110">{$author['avatar']}</textarea>

<br /><br />

<b>Before</b> that add: (in the same line)

<br /><br />

<textarea class="row2" rows="3" cols="110">{$crowns}</textarea>

<br /><br />

Then look for:

<br /><br />

<textarea class="row2" rows="2" cols="110">{$author['member_joined']}<br /></textarea>

<br /><br />

<b>After</b> that add:

<br /><br />

<textarea class="row2" rows="3" cols="110">{$champtext}</textarea>

<br /><br />

Click the "Save Template(s)" button. Repeat for all skins.

<br /><br />

<ul>

<li>Open Skins & Templates</li>

<li>Click Skin Manager</li>

<li>Click IPB Default Skin</li>

<li>Click Edit Root Skin Template HTML</li>

<li>Click All Global HTML</li>

<li>Look for global_board_header</li>

</ul>

<br />

In that HTML Template look for:

<br /><br />

<textarea class="row2" rows="2" cols="110"><a href='{ipb.script_url}act=Help'>{ipb.lang['tb_help']}</a></textarea>

<br /><br />

<b>Before</b> that add: (in the same line)

<br /><br />

<textarea class="row2" rows="3" cols="110"><a href='{ipb.script_url}act=Arcade'>Arcade</a></textarea>

<br /><br />

Click the "Save Template(s)" button. Repeat for all skins.

<br /><br />

Then:

<ul>

<li>Open the Arcade Menu</li>

<li>Click Group Permissions</li>

<li>Set the permissions as you see fit for each group</li>

</ul>Go over all the options in the Main Arcade Settings and make sure they're the way you want them.</li>

</ul>

<br /><br />

Finally go into your admin panel, select categories than click Edit Categories. No changes are no needed just click the button.

<br /><br />

Your arcade should now be ready to use!!! Enjoy.

 

</td>

</tr>

</table>

</div>

 

</div>

<br /><br />

</body>

</html>

 

 

 

 

Попробуй пойми!!!

Ссылка на комментарий
Поделиться на других сайтах

Это в общем-то хтмл чистый... а ты его чего прям так и видишь? Какое расширение у файла? Ты его чем открываешь? :D
Ссылка на комментарий
Поделиться на других сайтах

Блокнотом!

Мои поздравления.

HTML файлы браузером открываются. Ослом, оперой - что у тебя там... НО НИКАК НЕ БЛОКНОТОМ.

 

Боже мой... :D

Ссылка на комментарий
Поделиться на других сайтах

test3

Ходячий анекдот :D

А не укого нету уже установленных файлов?

Моди сейчас через админку нужно ставить. Весь скин в базе храньтся ;)

Ссылка на комментарий
Поделиться на других сайтах

не, я конечно все понимаю.. но это вообще наверное проявляение не уважения к людям, говорить:

 

1. Что мол не знаю где скачать, когда дана ссылка на официальный сайт

2. Открываю instructions.html блокнотом... и не знаю че делать

 

с ума сойти

Ссылка на комментарий
Поделиться на других сайтах

Присоединиться к обсуждению

Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.

Гость
Ответить в этой теме...

×   Вы вставили отформатированный текст.   Удалить форматирование

  Допустимо не более 75 смайлов.

×   Ваша ссылка была автоматически заменена на медиа-контент.   Отображать как ссылку

×   Ваши публикации восстановлены.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

Зарузка...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.