vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - XBL Gamerscore in Postbit (https://vborg.vbsupport.ru/showthread.php?t=157122)

ChU v2 09-05-2007 10:00 PM

XBL Gamerscore in Postbit
 
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

ShOcKz 09-06-2007 09:55 AM

Thanks CHU!!

ninjamaster 09-07-2007 08:20 AM

thanks this a good hack cheers :)

ChU v2 09-07-2007 04:05 PM

Thanks for the feedback!

Lag 09-15-2007 06:16 PM

Nice hack ChU.

dreads 09-17-2007 08:37 PM

Very Nice :D

going to add it to my forum very soon

XFSImperial 10-02-2007 03:20 AM

Very good mod. I'm running it on Halo Nation.

atlambros83 11-03-2007 09:45 PM

this isn't working for me. I believe i've followed the directions correctly but it isn't showing up when I try to view my forums. trying to run it on www.optikal-illuzionz.com/forums

Lag 11-04-2007 05:41 AM

I found that the Xbox.com gamercard is a little large for my forum and used this code instead.

HTML Code:

<!--Start XBL Gamercard-->
<fieldset><legend>XBL Gamercard</legend>
<div>
<center>
<a href="http://live.xbox.com/profile/profile.aspx?GamerTag=$post[fieldXX]" target="_blank">
<img src="http://card.mygamercard.net/mini/$post[fieldXX].png" border=0>
</a>
</center>
</div>
</fieldset>
<!--End XBL Gamercard-->


It uses the gamercard from mygamercard.net and fits much better for me.

-----------------------------------------------------------------

@atlambros83

It's because you are using the regular postbit which is the horizontal one your running. You will need to edit the postbit template not the postbit_legacy like the instructions say.

Wolf_Hook 11-04-2007 02:37 PM

Very good, I like it. Only thing is it leaves an empty space in the postbit for people that don't have a gamertag.


All times are GMT. The time now is 06:57 AM.

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.01053 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete