Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
gXboxLive - Xbox Live Leaderboard Details »»
gXboxLive - Xbox Live Leaderboard
Version: 2.3.2, by Gryphon Gryphon is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.x.x Rating:
Released: 05-27-2010 Last Update: 04-28-2011 Installs: 243
DB Changes Uses Plugins Template Edits Auto-Templates
Re-useable Code Additional Files Is in Beta Stage  
No support by the author.

What is it?
gXboxLive is a modification for vBulletin which allows you to display a Xbox Live Leaderboard for your users.

If you use this mod, please Mark as Installed, and if you really enjoy this mod, please Nominate for MOTM, and if you really really enjoy this mod, feel free to Support Developer! Thank you!

This version is for vBulletin 4, installation and stability has not been verified by the author. Visit this thread for vBulletin 3 compatible version.

[hr]-[/hr]
Support
[hr]-[/hr]I use my released mods daily, if I find an issue with them or add features for myself I will release updates. If there are significant bugs or simple feature requests I will do my best to release fixes. Some of my mods rely on fetching data from 3rd party websites, due to the unreliable results, my mods will require users to troubleshoot for themselves if they find the addon is not working for them specifically. I am offering my personal mods that work ok for me for you to use, I am sorry I do not have time to troubleshoot many user specific issues. Thank you for your understanding.

Features
[hr]-[/hr]
  • Lists all ranked Gamertags, each updated once per day
  • Optionally show unranked Gamertags (Original Xbox Users).
  • Optionally allow Xbox Live message sending.
  • Optionally allow Xbox Live friend requests.
  • Optionally to choose how many User Names Per Page to display.
  • Optionally require a minimum post count.
  • Optionally to add a navbar link.*
  • Optionally to add a miscellaneous quick link.*
  • Choose how recently users must be active to be displayed.
  • Optionally display leaderboard statistics
  • Limit usergroups to display.
  • Limit access by usergroup.
  • Optionally display Forumhome stats
  • Optionally display Memberinfo gamercard
  • Optionally display Postbit leaderboard rank
  • Monitors invalid gamertags, 5 attempts to verify the gamertag and then the users gamertag profile field is blanked to prevent further checks.
  • Can link directly to a gamertag position in the leaderboard with gxboxlive.php?gt=Gamertag

*Depends on your vBulletin version and template configuration.

Installation
[hr]-[/hr]
  1. Download the latest version and upload all files. Images go in the folders specific to your style.
  2. Install the product.
  3. Create a Single-Line Text Box User Profile Field for members to enter their Gamertag into.
    • Go to yourdomain.com/forumdir/admincp/?loc=profilefield.php%3Fdo%3Dadd
    • Single-Line Text Box
    • Continue
    • Title: Xbox Live Gamertag
    • Description: Enter your Xbox Live Gamertag
      [S]
    • Regular Expression: ^([A-Za-z0-9 ]+)?$[/S] (regex not required)
    • The rest of the settings is your prefrence.
    • Save
    • Look and see what the field id number is for Xbox Live Gamertag, example field25.
  4. Fill in the gXboxLive configuration options, make sure to enter the field id for the newly created Xbox profile field above.
    • Go to yourdomain.com/forumdir/admincp/?loc=options.php%3Fdo%3Doptions%26dogroup%3Dgxbl_g roup
  5. Send people to their user cp to enter their gamertags.
  6. Wait up a few minutes for the gamertags to appear on the leaderboard.

Examples
[hr]-[/hr]AuthorsOthersGoogle
Changes
[hr]-[/hr]
vB4d - import product with Overwrite enabled, upload functions_gxboxlive.php and miner.gxboxlive.php
  • Updates for April 18 gamercard changes.
  • Uses DOMDocument PHP class now for parsing.

vB4c - import product with Overwrite enabled, upload gxboxlive.php, functions_gxboxlive.php and miner.gxboxlive.php
  • Updates for January 20th gamercard changes. Thanks Travis641.

vB4b - import product with Overwrite enabled.
  • Quick xbox.com url changes, there is no longer any way to directly link to add a friend.

vB4a - upload gxboxlive.php, miner.gxboxlive.php
  • Quick fixes for errors mentioned, no other updates.

Copyright
[hr]-[/hr]gXboxLive, Copyright ? Ghryphen (https://github.com/ghryphen)
Please maintain copyrights in derivative works, thank you.

overLIB javascript library Copyright Erik Bosrup.

Thank you to msnhockey for helping with the vB4 version.

Download Now

File Type: zip gXboxLive-vB4d.zip (116.5 KB, 927 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
XGC Paravain

Comments
  #342  
Old 01-26-2012, 06:52 PM
Cledus James Cledus James is offline
 
Join Date: Oct 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having a issue with how the Reputation tab is being displayed on my gxboxlive.php page. Go here to see what I'm talking about:

http://www.suicide-kings.net/forums/gxboxlive.php

Anyone know how I cant ix this? Thanks for any input.
Reply With Quote
  #343  
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
  #344  
Old 01-26-2012, 08:05 PM
Cledus James Cledus James is offline
 
Join Date: Oct 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your help Hippy. It worked.
Reply With Quote
  #345  
Old 01-26-2012, 11:12 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

welcome
Reply With Quote
  #346  
Old 01-27-2012, 12:15 AM
twigman1200 twigman1200 is offline
 
Join Date: Jan 2012
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cledus, how did you get yours to look so nice?

My alignment seems off for everything.
http://www.halo4news.net/forum/gxboxlive.php

And how do you get it to say Xbox Live instead of gXboxLive?
Reply With Quote
  #347  
Old 01-27-2012, 12:26 AM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

admincp > language and phrase >
Search in Phrases >check > Phrase Text and Phrase Variable Name

search phrase for gXboxLive
choose "gxboxlive_vbnav" then click edit
and edit it to what ever you like
in your case you may want to change them all
Reply With Quote
  #348  
Old 01-27-2012, 09:50 AM
Cyborg_delta1 Cyborg_delta1 is offline
 
Join Date: Jan 2012
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hippy View Post
travis641 thats default

it needs to be changed to this

Code:
 <a href="{vb:raw game.link}" target="_blank"><img border="0" width="32" height="32" src="{vb:raw game.image}" alt="{vb:raw game.title}: {vb:rawphrase gxbl_by_x_players, {vb:raw game.count}}" /></a>
enjoy
The code posted by Hippy is to fix gbxl_top_games template but you need to put

Code:
 <a href="{vb:raw game.link}" target="_blank"><img class="inlineimg" border="0" width="20" height="20" src="{vb:raw game.image}" alt="{vb:raw game.title}" /></a>
into gxbl_bit_game if you use the _top_games code the icons come out to big. This code keeps the Icons there original size

Thanks to Hippy for all the help with out you dude I would of just uninstalled this and forgot about it

Gryphon thanks for the mod but please implement the fix's other wise you will get a VB noob trying to get this to work and fail
Reply With Quote
Благодарность от:
Hippy
  #349  
Old 01-27-2012, 11:03 AM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for pointing this out Cyborg_delta1 Cyborg_delta1

yes I forgot about that template

see I edited the xml file so my template are not red (showing edits) since I add the fixes right to the xml file and re-install so it's hard to remember what I edited
Reply With Quote
  #350  
Old 01-28-2012, 10:55 AM
GamerPerfection's Avatar
GamerPerfection GamerPerfection is offline
 
Join Date: Feb 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by twigman1200 View Post
Cledus, how did you get yours to look so nice?

My alignment seems off for everything.
http://www.halo4news.net/forum/gxboxlive.php

And how do you get it to say Xbox Live instead of gXboxLive?
I don't think Cledus did anything to his alignment in the columns, as the main difference between your site and Cledus's site is that Cledus has a fixed width site whereas yours is fluid. This means yours stretches across the page so the columns will spread but on Cledus's it is more squashed up and therefore the alignment looks as if it's more lined up when in reality it's not.

I noticed on some others that some last played games icons disappear, like mine for example: http://www.gamerperfection.com/gxboxlive.php they come and go randomly. Why is this? Does the Mod need a fix to stop this?
Reply With Quote
  #351  
Old 01-28-2012, 11:35 AM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats all linked to xbox .. so I guess if they are not played in a certain amount of days they come off there list
Reply With Quote
Reply

Thread Tools

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 11:26 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.05873 seconds
  • Memory Usage 2,372KB
  • Queries Executed 28 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete