Thread: Mini Mods - IbproArcade 2.5.7- Top 25 player
View Single Post
  #21  
Old 12-17-2006, 10:44 AM
Greek Wizard Greek Wizard is offline
 
Join Date: Jun 2006
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by erjavid View Post
In your
arcade/skin/skin_v3Arcade.php
and
arcade/skin/skin_arcade.php
Find:
Code:
<div class='tborder'>
						<table width='100%' border='0' cellspacing='0' cellpadding='2'>
						<tr>
							<th width='50%' align='center' nowrap='nowrap' class='tcat' colspan='1'><img src="./arcade/images/crown.gif" border="0" alt=""> {$ibforums->lang['grand_champions']} <img src="./arcade/images/crown.gif" border="0" alt=""></th>
							<th width='50%' align='center' nowrap='nowrap' class='tcat' colspan='1'>{$ibforums->lang['leagueleader']}</th>
						</tr>

						<tr>
							<td width='50%' align='center' nowrap='nowrap' class='alt2' valign='middle'>
							{$Champion['ArcadeChampionAvatarCode1']}
							</td>

							<td width='50%' align='center' nowrap='nowrap' class='alt2' valign='middle'>
							{$tourneyinfo['champavatar']}
							</td>
						</tr>

						<tr>
							<td width='50%' align='center' nowrap='nowrap' class='alt2' valign='middle'>
							{$Champion['ArcadeChampion1']}
							</td>

							<td width='50%' align='center' nowrap='nowrap' class='alt2' valign='middle'>
							{$tourneyinfo['champ']}
							</td>
						</tr>

						</table>
					</div>

Add Below:
Code:
			<div class='tborder'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<th width='100%' align='center' nowrap='nowrap' class='tcat'> Top 24 Players:</th>
</tr>
<tr>


<td width='50%' align='center' nowrap='nowrap' class="alt2" valign='top' ><table width='100%' border='0' cellspacing='1' cellpadding='4'><tr>

<td width='33%' align='left' nowrap='nowrap' class='alt2' valign='middle'>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>
<td width='33%' align='left' nowrap='nowrap' class='alt2' valign='middle'>11. {$Champion['ArcadeChampion11']}<br>12. {$Champion['ArcadeChampion12']}<br>13. {$Champion['ArcadeChampion13']}<br>14. {$Champion ['ArcadeChampion14']}<br>15. {$Champion['ArcadeChampion15']}<br>16. {$Champion['ArcadeChampion16']}<br>17. {$Champion['ArcadeChampion17']}</td>
<td width='33%' align='left' nowrap='nowrap' class='alt2' valign='middle'>18. {$Champion['ArcadeChampion18']}<br>19. {$Champion['ArcadeChampion19']}<br>20. {$Champion['ArcadeChampion20']}<br>21. {$Champion['ArcadeChampion21']}<br>22. {$Champion['ArcadeChampion22']}<br>23. {$Champion['ArcadeChampion23']}<br>24 {$Champion ['ArcadeChampion24']}</td></tr></table></td>
</tr>
</table>
</div>

				<fieldset class="fieldset" style="margin: 0px 0px 0px 0px;">
					<legend>{$ibforums->lang['newest_champs']}</legend>
					<div style="padding: 0px;">
						<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
							<tr>
								<td width="100%">
									<table cellpadding="2" cellspacing="1" border="0" width="100%">
										{$newtext}
									</table>
								</td>
							</tr>
						</table>
					</div>
				</fieldset>
I found that if you used the above code, when there were tie scores, you would at times have the same name in 3rd and 4th and have one player missing because it was getting the results from two different queries.

I found if I changed this:

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

Code:
							<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Champion['ArcadeChampion1']}</td>
							<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Champion['ArcadeChampion2']}</td>
							<td width='33%' align='center' nowrap='nowrap' class='alt2' valign='middle'>{$Champion['ArcadeChampion3']}</td>
The repeating of names did not occur since it was all one query.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01236 seconds
  • Memory Usage 1,792KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete