yupfish
04-15-2005, 10:00 PM
Step 1 - Adding a Profile Field
Go to your admincp > User Profile Fields > Add New User Profile Field.
Profile Field Type: Single-Line Text Box
Now enter your desired Title, Description ect.. and press 'Save'.
Step 2 - adding a Phrase
Go to your admincp > Languages & Phrases > Phrase Manager > Add New Phrase.
Phrase Type: GLOBAL
Varname: view_users_Halo_2_stats
Text: view users Halo 2 stats
Step 3 - modefing you're template
Go to your admincp > Styles & Templates > Style Manager > Edit Templates > Postbit Templates.
in your postbit or postbit_legacy template find:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]
after, add:
<if condition="$post['fieldX']">
<a href="http://www.bungie.net/Stats/PlayerStats.aspx?player=$userinfo[fieldX]" target="_blank"><img src="$stylevar[imgdir_misc]/h2icon.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_users_Halo_2_stats]</phrase>" border="0" /></a>
</if>
Step 4 - adding an image
Upload any image of your choice, name it h2icon.gif and upload it to forum/images/misc/
Thanks,
MichaelJM
Go to your admincp > User Profile Fields > Add New User Profile Field.
Profile Field Type: Single-Line Text Box
Now enter your desired Title, Description ect.. and press 'Save'.
Step 2 - adding a Phrase
Go to your admincp > Languages & Phrases > Phrase Manager > Add New Phrase.
Phrase Type: GLOBAL
Varname: view_users_Halo_2_stats
Text: view users Halo 2 stats
Step 3 - modefing you're template
Go to your admincp > Styles & Templates > Style Manager > Edit Templates > Postbit Templates.
in your postbit or postbit_legacy template find:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]
after, add:
<if condition="$post['fieldX']">
<a href="http://www.bungie.net/Stats/PlayerStats.aspx?player=$userinfo[fieldX]" target="_blank"><img src="$stylevar[imgdir_misc]/h2icon.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_users_Halo_2_stats]</phrase>" border="0" /></a>
</if>
Step 4 - adding an image
Upload any image of your choice, name it h2icon.gif and upload it to forum/images/misc/
Thanks,
MichaelJM