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
  #2  
Old 12-09-2011, 08:15 AM
thedarkroom's Avatar
thedarkroom thedarkroom is offline
 
Join Date: Oct 2011
Location: mexico
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much
Reply With Quote
  #3  
Old 12-15-2011, 05:03 PM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thedarkroom View Post
thank you very much
Your welcome
Reply With Quote
  #4  
Old 12-16-2011, 10:14 PM
GamersChallenge GamersChallenge is offline
 
Join Date: Aug 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

look, who it is... good work bro, I was looking for this when I first started my site.
Reply With Quote
  #5  
Old 04-11-2012, 04:55 AM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess this might be a question for the original mod, but i seem to be having an issue where it sends members to microsoft to sign in.?
Code:
login.live.com
I had only heard about it from members who were using Firefox, but now i actually saw it happen to me using Chrome.
Reply With Quote
  #6  
Old 04-11-2012, 10:05 PM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamelobby View Post
I guess this might be a question for the original mod, but i seem to be having an issue where it sends members to microsoft to sign in.?
Code:
login.live.com
I had only heard about it from members who were using Firefox, but now i actually saw it happen to me using Chrome.
Can you post a screenshot? If you click the gamercard it will take you to that persons profile on xbox.com because that's how it's setup. However, I'm not sure where you talking about this showing up at.
Reply With Quote
  #7  
Old 04-12-2012, 05:44 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nothing pops up.. It literally takes you to microsoft.com completely changes sites.! (no new window, changes in the current window)
I don't have to click on anything, just load a page that has a gamer card on it & it loads microsoft.com login page.

I removed the cards from postbit because it was causing people a lot of problems, now it only happens on profile pages now. (not everytime, just occasionally)

It only happened to me once, but i have had reports from members that it wont let them go to certain pages without it happening.

Personally i notice it takes me back to the main forum page (forum.php) often when i go to a persons profile. (used to happen when reading new posts, before i removed them from postbit)

Not sure if it is an xbox.com issue, or a vB update issue, or a mod issue.. its just weird.
Reply With Quote
  #8  
Old 04-15-2012, 11:40 AM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's got to be an issue on your part, make sure you followed the instructions correctly. I'm currently using this on my xbox360clans.net website and it works perfectly fine on 4.1.12.

I know a couple other forums that also use it. So, that's why I believe it's something on your part.
Reply With Quote
  #9  
Old 04-20-2012, 07:40 AM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea i have used this for a long time, but something recently must have triggered it.
Reply With Quote
  #10  
Old 05-13-2012, 04:27 PM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamelobby View Post
Yea i have used this for a long time, but something recently must have triggered it.
Can I see an example? Screenshot or link.
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 07:09 PM.


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.04834 seconds
  • Memory Usage 2,326KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_php
  • (3)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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