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

Reply
 
Thread Tools
Xbox.com gamercard for all users Details »»
Xbox.com gamercard for all users
Version: 1.00, by stonyarc stonyarc is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-31-2005 Last Update: Never Installs: 42
Template Edits
 
No support by the author.

Function

These modifications on a vbulletin forum allow you to fully integrate the xbox.com gamercard on your forum next to each and every post a user makes.

This will make it look more or less like the integration on our forum.

Important

First always backup the files that you're going to edit so you can revert to the old version if something goes wrong.

We do appreciate if you gave us the due credits for these functions.

Installation

This modification was tested on vbulletin 3.5.0. You might have to put some codes on another location in your files depending on the version of vbulletin your have.



1. Add a gamertag field to your user (editable in profile) =>

vBulletin features a wide array of input options for you to gather information from your members through the creation of custom profile fields. With these fields you can present a list of options for the user to choose from or you can ask the user to give their own input.

Go to the adminCP and add a custom field => User Profile fields => Add New User Profile Field

You need a "Single-Line Text Box"

Title => Gamertag
Description => Xbox Live Gamertag
Default Value => Leave empty
Max length of allowed user input => 30
Display Size => 30
Display Order => put something like 10 or 15
Field Required => No as default but you can change if you want
Field Editable by User => Yes because gamertags do tend to change
Private Field => No the field is public
Field Searchable on Members List => No
Show on Members List => Yes
Regular Expression => leave empty

Save the field

Go to the User Profile Field Manager and look for your custom field you just added and look for the name column there is an ID for the field.
Something like "fieldXX" where XX is a number. Make sure you remember this value.

2. Go to the template you are using (Styles & Templates/Style Manager) and select Edit templates.

Go to "postbit templates" and select the template you are using (probably postbit or postbit_legacy).
and add the following code:

fieldXX is the field value you got from step 1.

You can embed the code in a div or a special table construction but that is up to you.

Code:
<if condition="$post[fieldXX]">
<iframe src="http://gamercard.xbox.com/$post[fieldXX].card" scrolling="no" frameBorder="0" height="140" width="204">$post[fieldXX]</iframe>
</if>
Demonstration

You can see it active on the forum of http://www.xboxusersgroup.com

Support

For support contact us through the feedback forum. ALL MODIFICATIONS ARE DONE AT YOUR OWN RISK. XBOX USERS GROUP IS NOT RESPONSIBLE FOR ANY LOSS OF DATA.

For gamertags with spaces look here for the solution.

Credits

All code is (c)2005 Xboxusersgroup.com and StonyArc.

You are however allowed to change the location / display location of the gamercard however you see fit.

Show Your Support

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

Comments
  #22  
Old 11-11-2005, 04:14 PM
PTO PTO is offline
 
Join Date: Jul 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind...I totally hax0red the crap out of your site and did it myself .
Reply With Quote
  #23  
Old 11-17-2005, 02:02 PM
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Location: Leuven (Belgium)
Posts: 930
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PTO
Never mind...I totally hax0red the crap out of your site and did it myself .
So it's mister xboxliveforums again :ermm:

Well it seems you removed all references and credits from the things you copied.
Reply With Quote
  #24  
Old 11-17-2005, 02:35 PM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PTO
Never mind...I totally hax0red the crap out of your site and did it myself .
It's only makes us feel better and stronger, that sites like yours copy the crap out of sites like XUG, it's that you don't have the template else your site could be seen as a complete mirror, lucky you can't copy our memberbase, Wow 57 Members, good Luck

On a site note, you have violated several laws
Reply With Quote
  #25  
Old 11-27-2005, 10:35 PM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi guys, i've had the extra custom form field in my forums for ages to display peoples gamertags when they post. since upgrading to 3.5.1 i havent edited the templates to get it displaying again.

i know some people will criticise me for wanting to do it the 'teamxbox' way but its really the most elegant way to do it, and not original

but really, it isnt stealing as it utilises code from xbox themselves and then the vb menu system to display it.. nothing proprietry there.

so if someone can help me get my custom field displaying in the posts again, then link to the xbox live gamercard in a vb style menu popup that would rock

actually, after reading threads properly.. sorry

i found this code

<!-- XBOX LIVE TAG Below by: Cyrick -->

<if condition="$post['field6']"><div class="info">
<div id="gamertagmenu_$post[postid]">XBOX Live: <b><u>$post[field6]</u></b>
<script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script> </div> <div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://gamercard.xbox.com/$post[field6].card" scrolling="no" frameBorder="0" height="140" width="204">$post[field6]</iframe> </div> </if>

<!-- XBOX Live TAG ABOVE -->

can someone refresh my memory where that goes in the postbit template?

thanks in advance!
Reply With Quote
  #26  
Old 11-30-2005, 09:19 AM
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Location: Leuven (Belgium)
Posts: 930
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sbryan
hi guys, i've had the extra custom form field in my forums for ages to display peoples gamertags when they post. since upgrading to 3.5.1 i havent edited the templates to get it displaying again.

i know some people will criticise me for wanting to do it the 'teamxbox' way but its really the most elegant way to do it, and not original

but really, it isnt stealing as it utilises code from xbox themselves and then the vb menu system to display it.. nothing proprietry there.

so if someone can help me get my custom field displaying in the posts again, then link to the xbox live gamercard in a vb style menu popup that would rock

actually, after reading threads properly.. sorry

i found this code

<!-- XBOX LIVE TAG Below by: Cyrick -->

<if condition="$post['field6']"><div class="info">
<div id="gamertagmenu_$post[postid]">XBOX Live: <b><u>$post[field6]</u></b>
<script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script> </div> <div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://gamercard.xbox.com/$post[field6].card" scrolling="no" frameBorder="0" height="140" width="204">$post[field6]</iframe> </div> </if>

<!-- XBOX Live TAG ABOVE -->

can someone refresh my memory where that goes in the postbit template?

thanks in advance!
Just look for the place where the avatar is called.

You can put in that region depending on where you want it to display.

If you use the legacy you'll have to edit the legacy postbit.
Reply With Quote
  #27  
Old 04-30-2006, 03:12 PM
TomJames TomJames is offline
 
Join Date: Apr 2006
Location: UK
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks mate its fantastic
Reply With Quote
  #28  
Old 08-02-2006, 01:24 PM
PeeweeJD PeeweeJD is offline
 
Join Date: Jun 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if anyone wants it, I have a pretty cool hack that works like this:

if the user has a gamertag, a small XBL button shows up next to the IM buttons.

when a user clicks that button, the avatar is replaced with their gamercard (from xbox.com).

its works like this:

the avatar (and whatever else you want to replace with the gamercard) is wrapped in a div with a name that contains the post number. The style is set to visible.

the gamercard (iframe code straight from xbox.com) is wrapped in a different div that contains the post number as well. this div's style is set so its invisible.

the XBL gif triggers a very small javascript that toggles the visibility of the 2 divs for that post number.

I hope that makes sense.
Reply With Quote
  #29  
Old 08-24-2006, 08:52 PM
HellBoy HellBoy is offline
 
Join Date: Feb 2004
Location: Norway
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent hack, but I'm using Glop.org's gamercards instead, as they doesn't take up as much space.

Code:
<if condition="$post['fieldXX']">
<a href="http://live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=$post[fieldXX]" target="_blank"><img src="http://www.glop.org/gamercard/card/$post[fieldXX]-forum.png" border="0"></a>
</if>
See www.glop.org/gamercard for more designs.
Reply With Quote
  #30  
Old 10-04-2006, 10:16 PM
The Fathom The Fathom is offline
 
Join Date: Apr 2002
Location: Amsterdam
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one!
Reply With Quote
  #31  
Old 12-02-2006, 12:21 PM
JamieLee2k's Avatar
JamieLee2k JamieLee2k is offline
 
Join Date: Sep 2006
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone tell me how to do it for gamertags with spaces, the link above it's letting me view it
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 12:44 AM.


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.12818 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (3)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_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