vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   IbproArcade - Top 10 Players (https://vborg.vbsupport.ru/showthread.php?t=101870)

am-fs 11-28-2005 10:00 PM

IbproArcade - Top 10 Players
 
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:
Code:

                <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:
Code:

<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:
Code:

<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:
Code:

<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:
Code:

  $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:
Code:

  $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:
Code:

#complete phrasing
Add:
Code:

top10_txt1                => " has ",
top10_txt2                => " Wins!",


Boofo 11-29-2005 02:58 PM

Screenshots and text file please? ;)

am-fs 11-29-2005 02:59 PM

There you Go :).....Note I use Top 20 instead of 10

Boofo 11-29-2005 03:02 PM

Can you add the text to the first post, please? ;)

And looks good. ;)

Koopa 11-29-2005 04:38 PM

Quote:

Originally Posted by Boofo
Can you add the text to the first post, please? ;)

And looks good. ;)

Thanks for this :)

am-fs 11-29-2005 05:25 PM

Up-dated the txt file for easy viewing for editing. ;)

Dadoo 11-29-2005 07:20 PM

there is a BUG in txt file at

Code:

$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'];
}

last "}" is missing..

otherwise, in first file edit (skin_Arcade.php) if you have make choice to have V3arcade skin and not ibProArcade skin, modify skin_v3Arcade.php file and not skin_arcade.php

am-fs 11-29-2005 07:34 PM

Fixed.....Thanks

Dadoo 11-29-2005 07:38 PM

thanks to you, good job i like your hack and use it !!!

G-Force 199 11-29-2005 09:43 PM

TX + Installed
Where did u download ur games :) ?


All times are GMT. The time now is 09:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01029 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete