Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
IbproArcade - Top 10 Players Details »»
IbproArcade - Top 10 Players
Version: 1.00, by am-fs am-fs is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 11-28-2005 Last Update: Never Installs: 14
 
No support by the author.

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!",

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-26-2006, 06:26 PM
NDRPrelude NDRPrelude is offline
 
Join Date: Aug 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks you so much!!! I am finally showing King of the Arcade! Now if I could just get the tournaments to work.
Reply With Quote
  #23  
Old 04-26-2006, 06:44 PM
NDRPrelude NDRPrelude is offline
 
Join Date: Aug 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Holy shit, the tournaments are working too!
Reply With Quote
  #24  
Old 04-27-2006, 05:51 AM
Neo_obs Neo_obs is offline
 
Join Date: Mar 2006
Location: Disneyland, CA
Posts: 363
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found out why my number 10 doesnt show. Because there are not enough users. so when you add all the numbers up if less than 10 people are champions then it wont display those fields. I did fix this in mine by adding this line 10 times and replacing 1 with each number 1-10

Code:
  $Champion['ArcadeChampion1'] = "{$ibforums->lang['top3box_norank']}";
Reply With Quote
  #25  
Old 11-07-2007, 01:28 PM
edytwinky edytwinky is offline
 
Join Date: Aug 2007
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gemma View Post
This should run okey,it's based on a modification I did for vb 3.0.x and arcade 2.5.1 - I'm still running it now on vb 3.5.4 and arcade 2.5.5+ and haven't had any problems
How did you get it to split with the three main trophy winners and then the best of the rest?

And is this mod for total trophy count or best scores of all time?
Reply With Quote
  #26  
Old 05-14-2008, 10:27 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be used on the latest ibProArcade version?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10661 seconds
  • Memory Usage 2,264KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete