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
  #22  
Old 12-28-2012, 07:46 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did something change recently.?
I upgraded to vB 4.2 & it seemed like it was working, but now all i get is an xbox.xom error page.
I see it is still working on your demo, so it must be on my end.
Reply With Quote
  #23  
Old 01-05-2013, 06:47 PM
JamalFree JamalFree is offline
 
Join Date: Dec 2012
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thedarkroom View Post
thank you very much
:up::up::up:
Reply With Quote
  #24  
Old 02-06-2013, 11:08 PM
marccap's Avatar
marccap marccap is offline
 
Join Date: Feb 2012
Location: uk
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works in 4.2 and I've coded a ps3 gamer card for 4.2 also which you can view in my site

Screen Capture
Reply With Quote
  #25  
Old 02-08-2013, 10:16 PM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by XGC Paravain View Post
Ok I have this working great on profiles its just not working right in the forums
Quote:
Originally Posted by XGC Paravain View Post
I got the Gamercard showing up in my profile but not my clan forums
From your screenshot that image not showing up is the missing image files for the gamercard plugin. You need to add the coding that I've listed into your postbit to get it to display the gamercard.

Quote:
Originally Posted by Harpo View Post
Where do I add the code for vertical postbit?
Should be the same place, near the avatar and post count information.

Quote:
Originally Posted by marccap View Post
Works in 4.2 and I've coded a ps3 gamer card for 4.2 also which you can view in my site

Screen Capture
Thanks for sharing! Feel free to share the code you used for the PlayStation card to show up.
Reply With Quote
  #26  
Old 08-29-2013, 02:58 AM
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
That's just the user ranks feature that's built into vbulletin already.
Reply With Quote
  #27  
Old 10-10-2014, 02:36 AM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this died recently.??
All that pops up now is a small view of the xbox website. Slows the site down big time had to disable.

Anyone else.?
Reply With Quote
  #28  
Old 10-11-2014, 01:11 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamelobby View Post
I think this died recently.??
All that pops up now is a small view of the xbox website. Slows the site down big time had to disable.

Anyone else.?
Works fine on my site, the server was down a few days ago for a few hours but it works just fine ....
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:39 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.06603 seconds
  • Memory Usage 2,313KB
  • Queries Executed 23 (?)
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
  • (7)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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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