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

Reply
 
Thread Tools
XBL Gamerscore in Postbit Details »»
XBL Gamerscore in Postbit
Version: 1.00, by ChU v2 ChU v2 is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.8 Rating:
Released: 09-05-2007 Last Update: Never Installs: 28
Template Edits
Re-useable Code Translations  
No support by the author.

Here is a little add on I did for my forum in the postbit_legacy template. This is the first time I'm posting really anything valuable on vb.org so here.

Step 1: Add Profile Field

Admin CP > User Profile Fields > Add new profile field

Title: XBL Gamertag
Description: Enter your XBL Gamertag.
Max length of allowed user input: 15
Field editable by user: Yes
Private Field: No

Every other option is up to you.

Step 2: Edit postbit/postbit_legacy template

Add this wherever you would like the image to show up in the postbit_legacy.

HTML Code:
<fieldset><legend>XBL Gamertag</legend>
<div>
<center>
<iframe src="http://gamercard.xbox.com/$post[fieldXX].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
</center>
</div>
</fieldset>

Note:
Edit the XX to the field number that you just made.

There you go, looks good on my forum, it's a little big, but I haven't been able to adjust the size because it cuts off the image.

Also, if you don't like the image displayed maybe this mod by EyeCrave will be more to your liking:
https://vborg.vbsupport.ru/showthread.php?t=137850

Show Your Support

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

Comments
  #12  
Old 11-04-2007, 05:22 PM
atlambros83's Avatar
atlambros83 atlambros83 is offline
 
Join Date: Nov 2007
Location: Atlanta, Georgia
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you Lag, one question about your code. do the users have to be signed up with mygamercard.net for their gamercards to show on their profile or will it just display their gamercards no matter what?
Reply With Quote
  #13  
Old 11-04-2007, 05:27 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by atlambros83 View Post
thank you Lag, one question about your code. do the users have to be signed up with mygamercard.net for their gamercards to show on their profile or will it just display their gamercards no matter what?

Try it for yourself,

Use:
http://card.mygamercard.net/mini/GAMERTAG.png

Try a gamertag that isn't in there database. I don't believe you have to be signed up.
Reply With Quote
  #14  
Old 11-04-2007, 07:46 PM
atlambros83's Avatar
atlambros83 atlambros83 is offline
 
Join Date: Nov 2007
Location: Atlanta, Georgia
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind, yeah, you must be signed up with gamercard.net
Reply With Quote
  #15  
Old 11-04-2007, 07:47 PM
atlambros83's Avatar
atlambros83 atlambros83 is offline
 
Join Date: Nov 2007
Location: Atlanta, Georgia
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah you do have to have an account with gamercard.net

thanks chu
Reply With Quote
  #16  
Old 11-04-2007, 09:03 PM
AK47 Nemesis AK47 Nemesis is offline
 
Join Date: Dec 2006
Location: The Netherlands
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's incorrect, you don't need an account for mygamercard.net. Just tried some gamertags, works perfectly. I've got a mouse-over gamercard in my forum, that will make sure it's not too large. It'll pop up when you hover over a tag.
Reply With Quote
  #17  
Old 11-05-2007, 12:08 PM
atlambros83's Avatar
atlambros83 atlambros83 is offline
 
Join Date: Nov 2007
Location: Atlanta, Georgia
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you are right ak, sorry
Reply With Quote
  #18  
Old 11-05-2007, 12:10 PM
atlambros83's Avatar
atlambros83 atlambros83 is offline
 
Join Date: Nov 2007
Location: Atlanta, Georgia
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does anyone know how to make this so that if a user does not post their gamertag in their profile it will not show the box?
Reply With Quote
  #19  
Old 11-11-2007, 11:40 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by atlambros83 View Post
does anyone know how to make this so that if a user does not post their gamertag in their profile it will not show the box?
You would need to add an <if> statement like this:

HTML Code:
<if condition="$post[fieldXX]">
<fieldset><legend>XBL Gamertag</legend>
<div>
<center>
<iframe src="http://gamercard.xbox.com/$post[fieldXX].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
</center>
</div>
</fieldset>
</if>
That should work.
Reply With Quote
  #20  
Old 11-13-2007, 05:33 PM
NoRem0rse NoRem0rse is offline
 
Join Date: Aug 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks CHU works great, just installed it now
Reply With Quote
  #21  
Old 11-13-2007, 11:38 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NoRem0rse View Post
Thanks CHU works great, just installed it now
Your welcome, please mark as installed.
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 11:32 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.09879 seconds
  • Memory Usage 2,308KB
  • 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_html
  • (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
  • (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
  • (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