[req]

1st new userfiled
Go to AdminCP -> User Profile Fields -> Add New User Profile Field
Profile Field Type: Single-Line Text Box
Title: xFire Game Status - Xfire - Gaming Simplified
Description: Please enter your xFire username here.
Click Save.

Note the field ID, which you will need in the template code.

2nd new userfiled
Go to AdminCP -> User Profile Fields -> Add New User Profile Field
Profile Field Type: Single-Selection Radio Buttons
Title: xFire style
Description: Choose a xFire style: Default (bg), Fantasy (os), Combat (co), Sci-Fi (sf)
Options:




bg
os
co
sf
Set Default: Yes
Field Editable by User: Yes
Allow user to input their own value for this option: No
Click Save.

Note the field ID, which you will need in the template code.

Template Modification:
Go to AdminCP -> Styles & Templates -> Style Manager
Select the Style you wish to edit. In the dropdown menu select Edit Templates
In the template Memberinfo

Find:


PHP Code:
PHP:
$membergroupbits
                </table>
            </div>
        
        </div>
    </div>
    </td>

</tr>
Add this below:


PHP Code:
PHP:
<!-- XFire Hack -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    
    <td class="tcat" width="100%">xFire Profile Info</td>
</tr>
<tr valign="top">


<td class="panelsurround" align="center">
    <div class="panel">
        <div align="$stylevar[align=center]">

<div class="fieldset">
             <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">

                
                    
             <td><strong>$vbphrase[x_xfire_info]</phrase></strong></td>
                    
                
<if condition="$post['field13']">


<a href="http://profile.xfire.com/$post[field13]" rel="nofollow"><img src=http://miniprofile.xfire.com/bg/$post[field17]/type/0/$post[field13].png width=440 height=111 border=0></a>
<br>
<p align="center"><a href="xfire:add_friend?user=$post[field13]" rel="nofollow"><b>Add to xFire Friends List</b></a></p>
</if>
</if>

</table>

</div>
</div>
    </td>

<!-- / End XFire Hack -->

Now, go to your Phrase Manager and add a new Phrase:

Product: Vbulletin
Varname: x_xfire_info
Text: You can get closer information about Xfire <a href="http://www.xfire.com" rel="nofollow">here</a>.

When you create the new field make a note of the field ID you will need to substitute the X1 for the 1st new userfield and X2 for the 2nd new userfield with the xFire username field ID number and xFire style field ID number.

Now edit your profile and enter your xFire username.
 
my memberinfo template doesn't match witch your code!

i don't find $membergroupbits :(

probably my style isn't compatible with this hack :(

EDIT:

the mod seems to be working fine with only vb 3.5 & 3.6...
 
Back
Top