Back to vBulletin 4.x Template Modifications

Xbox LIVE Gamercard in Postbit
Mod Version: 1.00, by GameOverViper

vB Version: 4.1.10 Rating: (3 votes - 5.00 average) Installs: 19
Released: 07 Dec 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes Re-usable Code External Content  

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/index.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.

Download

No files for download.

Screenshots

Click image for larger version
Name:	gamercardinpostbit.jpg
Views:	498
Size:	91.0 KB
ID:	138886   Click image for larger version
Name:	15771c4cb6077807391954688ac519b1.png
Views:	81
Size:	56.7 KB
ID:	146223  

Similar Mods

Profile Enhancements Xbox Live Gamercard Block in Profile vBulletin 3.7 Add-ons
Show Thread Enhancements XBOX gamercard and NXE avatar in postbit vBulletin 3.7 Template Modifications
Mini Mods Xbox Live Gamercard in Header vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024