Back to General Articles

adding xfire
by syndicate 18 Feb 2005

i've seen a number of calls for the addition of xfire to the postbit alongside the other four major IM services, and i wanted it myself.

result: a quick template hack. this will get you a nice little icon on that row in postbit, linking to the user's xfire profile (i couldn't find a send-message protocol).

step 1: go to admin panel, create a new one-line editable profile entry for the xfire username.

step 2: note the name of the field you've created (mine's field5, for example). i'll use fieldX in place of that value, you'll need to replace it with your own (in two places. lines 1 and 2 of my code)

step 3: open postbit (or postbit legacy, woo) template.

find:

HTML Code:
				<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]
after, add:
HTML Code:
<if condition="$post['fieldX']">
<a href="http://www.xfire.com/xf/modules.php?name=XFire&file=profile&uname=$userinfo[fieldX]" target="_blank"><img src="$stylevar[imgdir_misc]/im_xfire.png" alt="<phrase 1="$userinfo[username]">$vbphrase[view_xfire_profile]</phrase>" border="0" /></a>
</if>
important note: make sure you add it before the following </div> tags.

i won't provide you with my image, because i'm hazy on copyright/trademark laws regarding that kind of thing... but you make your own by using the ICO plugin from http://www.telegraphix.com.au and simply pulling the xfire program icon into photoshop.
name it im_xfire.png and upload it to forum/images/misc/

demo: i have this all installed on my own board, of course, at http://comms.planetsidesyndicate.com

comments, suggestions, improvements, optimizations, ... heck, anything you say is welcome. hope this helps somebody.

-martyr

Similar Mods

BB Code Enhancements Xfire BB Code vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024