am-fs
11-28-2005, 10:00 PM
This edit will add the Top 10 Players to your IbproArcade System and remove the Arcade Highscore Champions.
Port off of :http://www.ipbarcadegames.com/index.php?showtopic=7022
In your arcade/skin/skin_Arcade.php
Find:
<td class="alt1" align="center" valign="top" style="width: 60%;padding-left:7px;padding-top:5px;padding-bottom:5px;">
<div class='tborder'>
<table width='100%' border='0' cellspacing='0' cellpadding='4'>
<tr>
<th width='100%' align='center' nowrap='nowrap' class='tcat' colspan='3'><img src="./arcade/images/trophy.gif" border="0" alt="">{$ibforums->lang['infobox_top3title']}<img src="./arcade/images/trophy.gif" border="0" alt=""></th>
</tr>
<tr>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'><b>{$Highscorechamp['ArcadeChampionSmily1']}</b></td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'><b>{$Highscorechamp['ArcadeChampionSmily2']}</b></td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'><b>{$Highscorechamp['ArcadeChampionSmily3']}</b></td>
</tr>
<tr>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampionAvatarCode1']}</td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampionAvatarCode2']}</td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampionAvatarCode3']}</td>
</tr>
<tr>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampion1']}</td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampion2']}</td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampion3']}</td>
</tr>
</table>
</div>
Replace With:
<td align="center" class="alt1" style="width: 50%;" valign='top'>
<div class='tborder'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<th width='50%' align='center' nowrap='nowrap' class='tcat'> Top 10 Arcade Players</th>
</tr>
<tr>
<td width='50%' align='center' nowrap='nowrap' class="alt2" valign='top'><table border=0><tr><td align=center class="alt2">01.
{$Champion['ArcadeChampion1']}<br>02. {$Champion['ArcadeChampion2']}<br>03. {$Champion['ArcadeChampion3']}<br>04. {$Champion['ArcadeChampion4']}<br>05. {$Champion['ArcadeChampion5']}<br>06. {$Champion['ArcadeChampion6']}<br>07. {$Champion['ArcadeChampion7']}<br>08. {$Champion['ArcadeChampion8']}<br>09. {$Champion['ArcadeChampion9']}<br>10. {$Champion['ArcadeChampion10']}</td></tr></table></td>
</tr>
</table>
</div>
Find:
<div class="tborder">
<table width='100%' border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center" width="20%" nowrap="nowrap" class="tcat"> </td>
<td align="center" width="60%" nowrap="nowrap" class="tcat">$totalstext</td>
<td align="center" width="20%" nowrap="nowrap" class="tcat"> </td>
Replace With:
<div class="tborder">
<table width='100%' border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center" width="25%" nowrap="nowrap" class="tcat"> </td>
<td align="center" width="50%" nowrap="nowrap" class="tcat">$totalstext</td>
<td align="center" width="25%" nowrap="nowrap" class="tcat"> </td>
In your "forum root" arcade.php
Find:
$Champion['ArcadeChampion1'] = "{$ibforums->lang['top3box_norank']}";
$Champion['ArcadeChampion2'] = "{$ibforums->lang['top3box_norank']}";
$Champion['ArcadeChampion3'] = "{$ibforums->lang['top3box_norank']}";
$Cpt = 0;
$DB->query("select champ_mid, champ_name, count(*) nb, active, champ_gid, gid from ibf_games_champs inner join ibf_games_list on champ_gid=gid where active =1 group by champ_mid, champ_name order by 3 desc, 1 limit 3");
while ($res = $DB->fetch_row())
{
$Cpt++;
$Champion['ArcadeChampion'.$Cpt] = '<span style="font-weight: bold;"><a href="'.$ibforums->base_url.'act=Arcade&module=report&user='.$res['champ_mid'].'">'.$res['champ_name'].'</a></span><br />'.$ibforums->lang[arcadeking_txt1].'<b>'.$res['nb'].'</b>'.$ibforums->lang[arcadeking_txt2];
$Champion['ArcadeChampionMid'.$Cpt] = $res['champ_mid'];
}
Replace With:
$Champion['ArcadeChampion1'] = "{$ibforums->lang['top3box_norank']}";
$Champion['ArcadeChampion2'] = "{$ibforums->lang['top3box_norank']}";
$Champion['ArcadeChampion3'] = "{$ibforums->lang['top3box_norank']}";
$Cpt = 0;
$DB->query("select champ_mid, champ_name, count(*) nb, active, champ_gid, gid from ibf_games_champs inner join ibf_games_list on champ_gid=gid where active =1 group by champ_mid, champ_name order by 3 desc, 1 limit 10");
while ($res = $DB->fetch_row())
{
$Cpt++;
$Champion['ArcadeChampion'.$Cpt] = '<span style="font-weight: bold;"><a href="'.$ibforums->base_url.'act=Arcade&module=report&user='.$res['champ_mid'].'">'.$res['champ_name'].'</a></span><br />'.$ibforums->lang[top10_txt1].'<b>'.$res['nb'].'</b>'.$ibforums->lang[top10_txt2];
$Champion['ArcadeChampionMid'.$Cpt] = $res['champ_mid'];
}
Now in your arcade/lang/lang_Arcade_en.php
Find:
#complete phrasing
Add:
top10_txt1 => " has ",
top10_txt2 => " Wins!",
Port off of :http://www.ipbarcadegames.com/index.php?showtopic=7022
In your arcade/skin/skin_Arcade.php
Find:
<td class="alt1" align="center" valign="top" style="width: 60%;padding-left:7px;padding-top:5px;padding-bottom:5px;">
<div class='tborder'>
<table width='100%' border='0' cellspacing='0' cellpadding='4'>
<tr>
<th width='100%' align='center' nowrap='nowrap' class='tcat' colspan='3'><img src="./arcade/images/trophy.gif" border="0" alt="">{$ibforums->lang['infobox_top3title']}<img src="./arcade/images/trophy.gif" border="0" alt=""></th>
</tr>
<tr>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'><b>{$Highscorechamp['ArcadeChampionSmily1']}</b></td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'><b>{$Highscorechamp['ArcadeChampionSmily2']}</b></td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'><b>{$Highscorechamp['ArcadeChampionSmily3']}</b></td>
</tr>
<tr>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampionAvatarCode1']}</td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampionAvatarCode2']}</td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampionAvatarCode3']}</td>
</tr>
<tr>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampion1']}</td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampion2']}</td>
<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Highscorechamp['ArcadeChampion3']}</td>
</tr>
</table>
</div>
Replace With:
<td align="center" class="alt1" style="width: 50%;" valign='top'>
<div class='tborder'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<th width='50%' align='center' nowrap='nowrap' class='tcat'> Top 10 Arcade Players</th>
</tr>
<tr>
<td width='50%' align='center' nowrap='nowrap' class="alt2" valign='top'><table border=0><tr><td align=center class="alt2">01.
{$Champion['ArcadeChampion1']}<br>02. {$Champion['ArcadeChampion2']}<br>03. {$Champion['ArcadeChampion3']}<br>04. {$Champion['ArcadeChampion4']}<br>05. {$Champion['ArcadeChampion5']}<br>06. {$Champion['ArcadeChampion6']}<br>07. {$Champion['ArcadeChampion7']}<br>08. {$Champion['ArcadeChampion8']}<br>09. {$Champion['ArcadeChampion9']}<br>10. {$Champion['ArcadeChampion10']}</td></tr></table></td>
</tr>
</table>
</div>
Find:
<div class="tborder">
<table width='100%' border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center" width="20%" nowrap="nowrap" class="tcat"> </td>
<td align="center" width="60%" nowrap="nowrap" class="tcat">$totalstext</td>
<td align="center" width="20%" nowrap="nowrap" class="tcat"> </td>
Replace With:
<div class="tborder">
<table width='100%' border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center" width="25%" nowrap="nowrap" class="tcat"> </td>
<td align="center" width="50%" nowrap="nowrap" class="tcat">$totalstext</td>
<td align="center" width="25%" nowrap="nowrap" class="tcat"> </td>
In your "forum root" arcade.php
Find:
$Champion['ArcadeChampion1'] = "{$ibforums->lang['top3box_norank']}";
$Champion['ArcadeChampion2'] = "{$ibforums->lang['top3box_norank']}";
$Champion['ArcadeChampion3'] = "{$ibforums->lang['top3box_norank']}";
$Cpt = 0;
$DB->query("select champ_mid, champ_name, count(*) nb, active, champ_gid, gid from ibf_games_champs inner join ibf_games_list on champ_gid=gid where active =1 group by champ_mid, champ_name order by 3 desc, 1 limit 3");
while ($res = $DB->fetch_row())
{
$Cpt++;
$Champion['ArcadeChampion'.$Cpt] = '<span style="font-weight: bold;"><a href="'.$ibforums->base_url.'act=Arcade&module=report&user='.$res['champ_mid'].'">'.$res['champ_name'].'</a></span><br />'.$ibforums->lang[arcadeking_txt1].'<b>'.$res['nb'].'</b>'.$ibforums->lang[arcadeking_txt2];
$Champion['ArcadeChampionMid'.$Cpt] = $res['champ_mid'];
}
Replace With:
$Champion['ArcadeChampion1'] = "{$ibforums->lang['top3box_norank']}";
$Champion['ArcadeChampion2'] = "{$ibforums->lang['top3box_norank']}";
$Champion['ArcadeChampion3'] = "{$ibforums->lang['top3box_norank']}";
$Cpt = 0;
$DB->query("select champ_mid, champ_name, count(*) nb, active, champ_gid, gid from ibf_games_champs inner join ibf_games_list on champ_gid=gid where active =1 group by champ_mid, champ_name order by 3 desc, 1 limit 10");
while ($res = $DB->fetch_row())
{
$Cpt++;
$Champion['ArcadeChampion'.$Cpt] = '<span style="font-weight: bold;"><a href="'.$ibforums->base_url.'act=Arcade&module=report&user='.$res['champ_mid'].'">'.$res['champ_name'].'</a></span><br />'.$ibforums->lang[top10_txt1].'<b>'.$res['nb'].'</b>'.$ibforums->lang[top10_txt2];
$Champion['ArcadeChampionMid'.$Cpt] = $res['champ_mid'];
}
Now in your arcade/lang/lang_Arcade_en.php
Find:
#complete phrasing
Add:
top10_txt1 => " has ",
top10_txt2 => " Wins!",