PDA

View Full Version : Miscellaneous Hacks - XBOX Gamer tag in user profile & postbit_legacy


ArabOZ.com
02-01-2008, 10:00 PM
Function

Now add xBox Gamer tag in your forum from Mygamertag.net
Size 150?100 Not 204?140
https://vborg.vbsupport.ru/external/2008/02/22.png


Important

First always backup the files that you're going to edit so you can revert to the old version if something goes wrong.

We do appreciate if you gave us the due credits for these functions.


Installation

This modification was tested on vbulletin 3.5.x 3.6.x 3.7.0 beta 4.
You might have to put some codes on another location in your files depending on the version of vbulletin your have.

1. Add a gamertag field to your user (editable in profile) =>

vBulletin features a wide array of input options for you to gather information from your members through the creation of custom profile fields. With these fields you can present a list of options for the user to choose from or you can ask the user to give their own input.

Go to the adminCP and add a custom field => User Profile fields => Add New User Profile Field

You need a "Single-Line Text Box"

Title => Gamertag
Description => Xbox Live Gamertag
Default Value => Leave empty
Max length of allowed user input => 30
Display Size => 30
Display Order => put something like 10 or 15
Field Required => No as default but you can change if you want
Field Editable by User => Yes because gamertags do tend to change
Private Field => No the field is public
Field Searchable on Members List => No
Show on Members List => Yes
Regular Expression => leave empty

Save the field

Go to the User Profile Field Manager and look for your custom field you just added and look for the name column there is an ID for the field.
Something like "fieldXX" where XX is a number. Make sure you remember this value.

2. Go to the template you are using (Styles & Templates/Style Manager) and select Edit templates.

Go to "postbit templates" and select the template you are using (probably postbit or postbit_legacy).
and add the following code:

fieldXX is the field value you got from step 1.

You can embed the code in a div or a special table construction but that is up to you.

USE THIS CODE .. change [fieldXX] 3 time


<if condition="$post[fieldXX]">
<iframe src="http://card.mygamercard.net/mini/$post[fieldXX].png" scrolling="no" frameBorder="0" height="101" width="151">$post[fieldXX]</iframe>
</if>



Support

For support contact us through the feedback forum. ALL MODIFICATIONS ARE DONE AT YOUR OWN RISK. ArabOZ.com NOT RESPONSIBLE FOR ANY LOSS OF DATA.


Credits

All code is (c)2008 ArabOZ.com and NG-Game.com.

Thanks for XBOX USERS GROUP

dannykilla
05-02-2008, 10:29 AM
u got a demo ?

Pirat3
05-06-2008, 03:03 AM
Does not work on 3.7.0

figu120
05-07-2008, 02:58 PM
If it(he,she) works for 3.7 loque it is necessary to do is to look for the suitable location, good I seek to put it under the avatar and the code for that you must look in control yourself posbit_legancy it(he,she) is:

fine


<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>

After this to add

<if condition="$post[fieldXX]">
<iframe src="http://card.mygamercard.net/mini/$post[fieldXX].png" scrolling="no" frameBorder="0" height="101" width="151">$post[fieldXX]</iframe>
</if>

I wait serve you

freebase69
05-12-2008, 10:43 AM
Look for:

<div>
$vbphrase[posts]: $post[posts]
</div>


and underneath add:


<!-- / XBLGT Start -->
<if condition="$post[fieldXX]"><a href="http://profile.mygamercard.net/$post[fieldXX]">
<img src="http://card.mygamercard.net/mini/$post[fieldXX].png" width="150" height="100" border="0"></a></if>
<!-- / XBLGT End -->


It will look like below.

If you want it under your avatar add the code under here after the </if>:

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

Qwest
06-30-2008, 05:18 PM
So does this work for 3.7 or not?

dkawika
08-27-2008, 12:12 PM
^^^ wondering the same thing

SnapOff Racing
10-03-2008, 07:46 AM
is there a way to get this to work if you don't have vertical postbit? (default is horizontal and that's what my users are accustomed to)

Slam Da Brakes
12-05-2008, 10:43 AM
Thanks for the mod. Will credit on my forum.

Had alignment trouble but freebase69 made it work!

Uber_Tiny
12-30-2008, 11:36 PM
Does anyone know how to place this in the signature and only in certain forums?

Any help with this is greatly appreciated.