Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Xbox LIVE Gamercard in Postbit Details »»
Xbox LIVE Gamercard in Postbit
Version: 1.00, by GameOverViper GameOverViper is offline
Developer Last Online: May 2014 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.1.10 Rating:
Released: 12-06-2011 Last Update: Never Installs: 19
Template Edits
Re-useable Code Code Changes  
No support by the author.

Want to Add your Xbox LIVE Gamercard to Your Forum Postbit?

With just an addition of a profile field and one template edit, you'll have your Xbox LIVE Gamercard show up in the postbit in no time!

Demo - http://www.xboxoneclans.com/showthread.php?t=5888

If you already have the GamerCards Block in Profile mod, then you can simply use the Xbox Live profile field # that you created for the Xbox Live gamertag instead of creating a new profile field for your postbit.

If you already have the above mod, skip the next step.

Step 1 - Making the Profile Field
  1. Create a new User Profile Field
  2. Select "Single-Line Text Box"
  3. Enter Gamertag as the title
  4. Put, Enter your Xbox Live Gamertag Here, as your description
  5. The rest of the settings are you up to you to decide

Remember to make a note of your Field Number that you have just created.

I put the gamercard under the users Avatar, but your free to place it where you want. Now you need to make one edit to the coding.

Step 2 - Go to postbit_legacy template

Find:

PHP Code:
                                   <vb:if condition="$show['avatar']">
            <
class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                <
img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
            </
a>
            </
vb:if> 
and after that, add:

PHP Code:
                         <vb:if condition="$post['fieldX']">
            <
class="postuseravatar">
                <
iframe src="http://gamercard.xbox.com/{vb:raw post.fieldX}.card" scrolling="no" frameBorder="0" height="140" width="204">{vb:raw post.fieldX}</iframe>
            </
a>
            </
vb:if> 
Now in the code that you have just added, you need to change the 'X' with your Gamertag field number that you created earlier!

Step 3 - Changing the Width of the Postbit

Now the postbit width in default vB4.0 style is smaller than the gamercards actual size. You can edit the width of the post bit area to ensure that the Gamercard fits. To do this:
  1. Go to Styles & Templates and select Style Manager.
  2. Then select StyleVars for the theme your editing.
  3. Find Postbitlegacy-Userinfo-Width.
  4. Change the size to 220 and save.

Your finished.

Screenshots

File Type: jpg gamercardinpostbit.jpg (91.0 KB, 0 views)
File Type: png 15771c4cb6077807391954688ac519b1.png (56.7 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 05-29-2012, 04:21 AM
insidegames insidegames is offline
 
Join Date: Jun 2010
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this Hack!
Reply With Quote
  #13  
Old 07-09-2012, 04:10 PM
FTG LIQUID CL FTG LIQUID CL is offline
 
Join Date: Jan 2012
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey americanbang ,how did you get the different usergroups to show up like that in the screen shot you have
Reply With Quote
  #14  
Old 07-29-2012, 03:05 PM
warrior uw warrior uw is offline
 
Join Date: Sep 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why does this only work for me on my forum? everyone else has their gamertag and that put in correctly, but only my gamercard shows up in the postbit! Any ideas????
Reply With Quote
  #15  
Old 09-18-2012, 11:15 AM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work with 4.2? I've done this on my 4.2 yet nothing is showing.
Reply With Quote
  #16  
Old 09-19-2012, 09:37 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by killerford View Post
Does this work with 4.2? I've done this on my 4.2 yet nothing is showing.
Yes it works on vB4.2
Reply With Quote
  #17  
Old 09-19-2012, 11:49 PM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FTG LIQUID CL View Post
hey americanbang ,how did you get the different usergroups to show up like that in the screen shot you have
I think your referring to the user rank images. However, you can change the color of usernames for each usergroup by changing the Username HTML Markup.

Quote:
Originally Posted by warrior uw View Post
why does this only work for me on my forum? everyone else has their gamertag and that put in correctly, but only my gamercard shows up in the postbit! Any ideas????
If it's showing yours, then it's working as far as I know. Are you sure that the other peoples are valid gamertags? Invalid tags show up silver with no information because the gamertag doesn't exist.

Quote:
Originally Posted by killerford View Post
Does this work with 4.2? I've done this on my 4.2 yet nothing is showing.
Yes it works, however today it's loading a little slow for some reason. They are hosted on xbox.com and they have been working on them a lot lately.
Reply With Quote
  #18  
Old 10-14-2012, 04:16 PM
XGC Paravain's Avatar
XGC Paravain XGC Paravain is offline
 
Join Date: Oct 2012
Location: Millbury,Mass
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im trying to use this with my 4.2 I have done every thing it tells my, what am I doing wrong?
Reply With Quote
  #19  
Old 10-14-2012, 11:08 PM
XGC Paravain's Avatar
XGC Paravain XGC Paravain is offline
 
Join Date: Oct 2012
Location: Millbury,Mass
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I have this working great on profiles its just not working right in the forums
Reply With Quote
  #20  
Old 10-16-2012, 01:50 AM
XGC Paravain's Avatar
XGC Paravain XGC Paravain is offline
 
Join Date: Oct 2012
Location: Millbury,Mass
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the Gamercard showing up in my profile but not my clan forums
Attached Images
File Type: jpg Gamercard.jpg (70.4 KB, 0 views)
File Type: jpg Avatar.jpg (85.5 KB, 0 views)
Reply With Quote
  #21  
Old 10-22-2012, 03:13 PM
Harpo's Avatar
Harpo Harpo is offline
 
Join Date: Dec 2011
Location: Canada
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do I add the code for vertical postbit?
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 04:33 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.05673 seconds
  • Memory Usage 2,341KB
  • Queries Executed 26 (?)
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_php
  • (4)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
  • (2)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
  • (4)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_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_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