vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Xbox Live GamerTag details in Profile (https://vborg.vbsupport.ru/showthread.php?t=103457)

syrus.xl 12-20-2005 10:00 PM

Xbox Live GamerTag details in Profile
 
With the release of the Xbox 360 I thought this would look nice if you run a Xbox related forum. It takes the persons GamerTag card from Xbox.com and feeds the details of games played, icon selected and displays their GamerTag into their posts with links to their stats in games played.

Modifications:
1 extra Field
1 Template modification

Add New Field:
Go to AdminCP -> User Profile Fields -> Add New User Profile Field
Profile Field Type: Single-Line Text Box
Title: Xbox GamerTag
Description: Please enter your GamerTag here.
Field Required: You can select here if you wish to have GamerTags required upon registration or not.
Click Save.

Note the field ID, which you will need in the template code.

Template Modification:
Go to AdminCP -> Styles & Templates -> Style Manager
Select the Style you wish to edit. In the dropdown menu select Edit Templates
Find Postbit Templates - edit either postbit or postbit_legacy

Find:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]
Add this below:
Code:

<!-- / Xbox Card Hack -->
<if condition="$post['field_XX']">
<iframe src="http://gamercard.xbox.com/$post[field_XX].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
</if>
<!-- / End Xbox Card Hack -->

When you create the new field make a note of the field ID you will need to substitute the _XX with the GamerTag field ID number.

Nearly finished... Now just Edit your Profile and enter your GamerTag! :)

Screenshot attached.

Tony G 12-22-2005 09:07 AM

Thanks for sharing your mod. Could you also attach your instructions in a .txt file? Thanks.

ggiersdorf 12-22-2005 12:25 PM

Question is the Gamertag show ALL the time or is the Field Clickable and expands?

syrus.xl 12-22-2005 01:49 PM

Quote:

Originally Posted by ggiersdorf
Question is the Gamertag show ALL the time or is the Field Clickable and expands?

The GamerTag card will show all the time with the settings I have listed. It uses an iframe to display the data which isn't collapsible.

XFSImperial 12-23-2005 07:10 PM

Thanks, this will be quite handy
*Install*

PJSkiboy 12-29-2005 05:44 AM

Awesome. Thanks for the code. I had been trying to do this on my own, but wasn't getting the syntax just right.

Thanks a bunch.

ChaoticMunky 12-29-2005 11:33 PM

Okay, I'm having problems with this hack. With the help of one of my other Administrators, we were able to get the gamercard to display properly. The problem is, now when you go to click a poster's forum name (not their gamertag), it doesn't do the drop down menu anymore so you can view their profile or any of that. I'm using vBulletin 3.56.2.

Anyone know how to solve this? If you want to view what it's doing, I left it up on my forums.

GamerJunk.net 01-01-2006 09:00 PM

I wanna find a way to display online status for xbox live.

Wired1 01-01-2006 09:18 PM

Quote:

Originally Posted by RasMasta
I wanna find a way to display online status for xbox live.

Unless Microsoft releases that info on their site, you can't do it.

syrus.xl 01-01-2006 09:31 PM

That information is only available if you are registered and signed in to Xbox.com - so at the moment 'Wired1' is correct. It would need to be made publically available.


All times are GMT. The time now is 01:54 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.01102 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (2)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