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
  #22  
Old 12-13-2007, 07:55 AM
Jerlene's Avatar
Jerlene Jerlene is offline
 
Join Date: Aug 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make this show up only in certain forums within my site?
Reply With Quote
  #23  
Old 12-15-2007, 06:04 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jerlene View Post
Is there a way to make this show up only in certain forums within my site?
Try:
Code:
<if condition="$bbuserinfo['forumid'] == XX">
XBL GAMERSCORE CODE
</if>
That might work, for multiple forums I think you would have to use an array. Which I'm not exactly sure how to code.
Reply With Quote
  #24  
Old 01-06-2008, 01:58 AM
gdavis480's Avatar
gdavis480 gdavis480 is offline
 
Join Date: Oct 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi I added this mod to my site but only admins can display there gamertag in the forum. How do I get it to where all members can display there's?
Reply With Quote
  #25  
Old 01-10-2008, 07:03 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gdavis480 View Post
Hi I added this mod to my site but only admins can display there gamertag in the forum. How do I get it to where all members can display there's?
All users should be able to add there gamertag via there profile. If you've followed the directions in setting up the profile field correctly you should have no problems.
Reply With Quote
  #26  
Old 01-31-2008, 06:37 AM
playworks playworks is offline
 
Join Date: Jan 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great code CHU, it works fine at my forum. if you ever find a way to resize the box or display this box in the member's profile page, please let me know. thanks heaps!
Reply With Quote
  #27  
Old 02-01-2008, 06:26 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by playworks View Post
great code CHU, it works fine at my forum. if you ever find a way to resize the box or display this box in the member's profile page, please let me know. thanks heaps!
If your wanting to resize, I would use Lag's suggestion early in this thread. As for the member profile page, what vB version are you using and where do you want it to be displayed?
Reply With Quote
  #28  
Old 06-14-2008, 01:16 AM
fattony69 fattony69 is offline
 
Join Date: Jun 2007
Location: Philly
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for 3.7.1?
Reply With Quote
  #29  
Old 01-09-2009, 05:52 AM
SSC streezer SSC streezer is offline
 
Join Date: Nov 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where do i have to add the code? can somebody post it here please?
Reply With Quote
  #30  
Old 06-23-2009, 07:24 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone found a way to just isolate the gamerscore? I don't need a gamercard, just the score.

Quote:
Originally Posted by fattony69 View Post
Does this work for 3.7.1?
There's no reason it shouldn't
Reply With Quote
  #31  
Old 06-23-2009, 07:25 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SSC streezer View Post
where do i have to add the code? can somebody post it here please?
ACP -> Styles & Templates -> Postbit or Postbit Legacy(depending on which you use)
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:25 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.04460 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
  • (1)bbcode_code
  • (1)bbcode_html
  • (5)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