Halo 3 Stats Displayed
What is this?
This hack will display an image of your Halo 3 stats and update them as the player progresses.
Credit:
The credit for the stats system goes to Halobit.com. I just wrote the code for it to display on vB.
Instructions:
Step 1: Create a 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: Template Edits
This is for the postbit/postbit legacy templates.
FIND:
PHP:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
ADD AFTER:
PHP:
<!-- ChU's Halo 3 Stats -->
<div>
<if condition="$post['fieldXX]">
<a href="http://www.halobit.com"><img src="http://halobit.com/sig/1_$post[fieldXX].png" border ="0" height="130" width="250"></a>
</if>
</div>
<!-- End ChU's Halo 3 Stats -->
Replace all the XX's with the profile field number that you created. For example: "5"
You will have to adjust the height and width to fit your forum.
To display in the MEMBERINFO template, also known as the user's profile.
FIND:
PHP:
<if condition="$show['usernoteview']">
<br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
</if>
</div>
</div>
</if>
ADD AFTER:
PHP:
<!-- ChU's Halo 3 Stats -->
<div>
<center>
<fieldset><legend>Halo 3 Stats</legend>
<if condition="$post['fieldXX']">
<a href="http://www.halobit.com"><img src="http://halobit.com/sig/1_$post[fieldXX].png" border="0" height="125" width="350"></a>
</if>
</div>
</center>
</fieldset>
<!-- End ChU's Halo 3 Stats -->
Replace all the XX's with the profile field number that you created. For example: "5"