[Sog-team]xFire in Postbit Hack [Add On]

Filez

New Member
What is xFire?

xFire has the following highlight features:

* Track & see when your friends / contacts are online & what game they're playing
* See what servers they're playing in, and join them with one simple click
* See what games your friends have
* Join clans with personal xfire pages
* Talk to your mates using a mic and one simple click

More information and the download link for the great free software can be found at the URL below:

Code:
http://www.xfire.com

Installation

Very easy.

1) Login to the admin CP and add two new user profile fields.

1st new field's settings:


Code:
Code:
Go to AdminCP -> User Profile Fields -> Add New User Profile Field
Profile Field Type: Single-Line Text Box
Title: xFire Game Status - www.xfire.com
Description: Please enter your xFire username here.
Click Save.Note the field ID, which you will need to edit the template code.
2nd new field


Code:
Code:
Go to AdminCP -> User Profile Fields -> Add New User Profile Field
Profile Field Type: Single-Selection Radio Buttons
Title: xFire style
Description: Choose your preferred xFire style: Default (bg), Fantasy (os), Combat (co), Sci-Fi (sf), World of Warcraft (wow), Shadow (sh)
Options:


    * bg
    * os
    * co
    * sf
    * wow
    * sh

Set Default: Yes
Field Editable by User: Yes
Allow user to input their own value for this option: No
Click Save.2)
Now upload the attached image to your /forum/images directory.
Find the following code in the "postbit_legacy" template for the styles concerned:

Code:
Code:
<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>Now copy the following code into the template below the above.

Code:
<!-- / START SOGTEAM XFIRE POSTBIT ADDON -->
<br />
<if condition="$post['fieldxx']">
<if condition="$post[field00]">
<a href="xfire:add_friend?user=$post[fieldxx]" rel="nofollow"><img src=http://miniprofile.xfire.com/bg/$post[field00]/type/3/$post[fieldxx].png width=149 height=29 border=0></a>
<else />
<a href="xfire:add_friend?user=$post[fieldxx]" rel="nofollow"><img src=http://miniprofile.xfire.com/bg/sh/type/3/$post[fieldxx].png width=149 height=29 border=0></a>
</if>
<else />
<a href="http://www.xfire.com" target="blank"><img src=/forum/images/getxfire.png border="0"></a>
</if>
<br />
<!-- / END SOGTEAM XFIRE POSTBIT ADDON -->
Note you need to edit xx to the field id of your username entry, and 00 to the field id of your style entry.

"sh" highlighted in red in the above code may be changed dependant on your default preferred xfire style.

Please note that the code above may be positioned virtually anywhere in the template within certain limits. The above method will result in the xfire miniprofile being displayed under the avatar. Experiment as you wish.

Done!

Enjoy!
 

Filez

New Member
branden I posted two of them...take a look at the toehr one if still not working tell me and I will post it to the designer.
 
Top