Thread: Add-On Releases - gXboxLive - Xbox Live Leaderboard
View Single Post
  #342  
Old 01-26-2012, 07:10 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

gxbl_headinclude template
replace it with this
Code:
<script type="text/javascript" src="clientscript/overlib/overlib.js"></script>

<script type="text/javascript">
function gXBL_setcursor(type) {
	document.getElementsByTagName('body')[0].style.cursor = typeof type == 'undefined' ? 'default' : type;
	links = document.getElementsByTagName('a');
	for(i = 0; i < links.length; i++) links.item(i).style.cursor = typeof type == 'undefined' ? 'pointer' : type;
}

function gXBL_show( type, gamertag) {

	if(type == 'gamercard')
	{
		gXBL_setcursor('progress');

		var html = '<iframe onload="gXBL_setcursor();" src="http://gamercard.xbox.com/'+gamertag+'.card" scrolling="no" frameBorder="0" height="135" width="200">'+gamertag+'</iframe>';

		return overlib(html, BORDER, 0, FULLHTML, WIDTH, 204, HEIGHT, 140, VAUTO, HAUTO);
	}

	if(type == 'nxeavatar')
	{
		gXBL_setcursor('progress');

		var html = '<iframe onload="gXBL_setcursor();" src="http://avatar.xboxlive.com/avatar/'+gamertag+'/avatar-body.png" scrolling="no" frameBorder="0" height="300" width="150">'+gamertag+'</iframe>';

		return overlib(html, BORDER, 0, FULLHTML, WIDTH, 150, HEIGHT, 300, VAUTO, HAUTO);
	}

}

function gXBL_hide() {
	return nd();
}
</script>
<style type="text/css">
.gxblhighlight td {
	border:1px solid yellow;
}

div.xblrep .Stats
{
    float:left;
}


div.xblrep .Stats .Stat
{
    float:left;
    text-align:left;
}

div.xblrep .Stats  .Star
{
    float:left;
    width:12px;
    height:12px;
}

div.xblrep .Stats .Empty
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -10px no-repeat;
}

div.xblrep .Stats .Quarter
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -30px no-repeat;
}

div.xblrep .Stats .Half
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -50px no-repeat;
}

div.xblrep .Stats .ThreeQuarter
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -70px no-repeat;
}

div.xblrep .Stats .Full
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -90px no-repeat;
}
</style>
and you GXBL
template with
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" <vb:if condition="!is_browser('ie') OR is_browser('ie',8)"> dir="{vb:stylevar textdirection}"</vb:if> lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
{vb:raw gxbl_headinclude}
<title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
	<vb:if condition="$includecss">
		<vb:each from="includecss" value="file">
		<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}{vb:raw file}.css" />
		</vb:each>
	</vb:if>
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}

<vb:if condition="$show['pagenav']">
<div id="pagination_top" style="float:{vb:stylevar right};">
	{vb:raw pagenav}
</div>
</vb:if>

<div class="block">
	<div class="blockhead">
		{vb:rawphrase gxboxlive_title}
		<a class="textcontrol" href="profile.php?do=editprofile#cfield_{vb:raw vboptions.gxbl_user_field}" rel="nofollow" style="margin-top:-3px;">{vb:rawphrase gxbl_addtag}</a>
	</div>
	
	<div class="blockbody formcontrols">
		<table width="100%">
			<tr class="columnsort">
				<th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=s&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_rank}<vb:if condition="$sortfield == 's'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
				<th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=n&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_username}<vb:if condition="$sortfield == 'n'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
				<th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=gt&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_gamertag}<vb:if condition="$sortfield == 'gt'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
				<th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=gt&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_zone}<vb:if condition="$sortfield == 'gt'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
				<th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=s&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_score}<vb:if condition="$sortfield == 's'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
				<th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=r&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase reputation}<vb:if condition="$sortfield == 'r'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>				<th class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_lastgames}</th>
			</tr>
			{vb:raw gxbl_bit}
		</table>
	</div>
</div>

<vb:if condition="$show['pagenav']">
<div id="pagination_bottom" style="float:{vb:stylevar right};">
	{vb:raw pagenav}
</div>
</vb:if>

<vb:if condition="$gxbl_stats">
<br />

{vb:raw gxbl_stats}
</vb:if>

{vb:raw footer}

</body>
</html>
Reply With Quote
Благодарность от:
EasyEazy
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01768 seconds
  • Memory Usage 1,805KB
  • 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
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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