PDA

View Full Version : Add-On Releases - [Sog-team]xFire in Postbit Hack [Add On]


m002.p
07-05-2008, 10:00 PM
What is this?

This template modification is an add-on (Can also be used solo, see below) for the [Sogteam]xFire Profile Module Hack (https://vborg.vbsupport.ru/showthread.php?t=184325)*. It will display a small "miniprofile" in the postbit_legacy. Users who have forgotten or havent got xfire will have a "Get Xfire" image displayed instead linked to xfire.com. (See attached screenshot). Those who havent specifed their preferred style will have "shadow" used as default.

*This mod may be used without the above mod, but you will have to create two profile fields; one for the username entry, and two for the style options. More details can be found in the original mod.

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:

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:

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

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:

<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.

<!-- / 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!

PLEASE CLICK INSTALL if you use this modification for future updates and easy tracking at vb.org

Q-v-n-s-Q
07-06-2008, 10:14 PM
cool mod, thanks

KURTZ
07-07-2008, 08:34 AM
and for the new postbit nothing? :D

m002.p
07-07-2008, 04:42 PM
and for the new postbit nothing? :D

Sorry mate, dont understand what you are talking about. Are you posting in the right thread? lmao

StokoE
08-09-2008, 09:25 PM
where are the images ?

nirvana43
08-10-2008, 05:51 AM
Installed :)

Robbey
08-10-2008, 01:34 PM
doesn't show the get xfire image only shows an image if they entered an xfire

KURTZ
08-11-2008, 09:41 AM
Sorry mate, dont understand what you are talking about. Are you posting in the right thread? lmao

i mean the horizontal postbit ... not the legacy ;)

m002.p
08-14-2008, 10:22 PM
where are the images ?

Attached if you read the opening paragraph ;)

doesn't show the get xfire image only shows an image if they entered an xfire

Please re-read the instructions above and check you uploaded the image to the correct src.

i mean the horizontal postbit ... not the legacy

It is primarily designed for vertical as in the screenprint attached. However it doesnt require much editing at all or changes to install in order to get it to display in horizontal postbits.

Being as you are marked as a designer, im sure you can figure it out :p

Sycoloco1212
09-18-2008, 06:21 PM
how would i get the info for XX and 00? lol

m002.p
09-20-2008, 03:21 PM
Note you need to edit xx to the field id of your username entry, and 00 to the field id of your style entry.

Please re-read the instructions. They save you and I alot of hassle and time :)

michael5472
10-11-2008, 07:14 AM
installed ok

the .png file for the "Get xfire" refused to show so i just removed it :)

Thanks - I left a message in your other mod for XFIRE because it wont work

m002.p
10-13-2008, 06:07 PM
check you put the image in the right directory. Also ensure you didnt modify the name of the .png when downloading.

Ive responded to the other question in the other mod

brianFL1
10-15-2008, 07:12 AM
Installed Perfectly! I made a minor change though so clicking on a users XFIRE status it will redirect to their XFIRE profile page instead of adding them to your friends list, I'll post the change, If the author doesn't mind (Send me a PM if you want me to remove it). This is a very easy change to make.

So it goes to their profile page instead of adding to friends.

REPLACE: (In postbit legacy, after installing original)
<!-- / 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 -->


WITH THIS:
<!-- / START SOGTEAM XFIRE POSTBIT ADDON -->
<br />
<if condition="$post['fieldxx']">
<if condition="$post[field00]">
<a href="http://www.xfire.com/profile/$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="http://www.xfire.com/profile/$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 -->

m002.p
10-20-2008, 10:00 PM
No dont mind at all.

Thanks for sharing, and yes as you well know, you can make it do anything you like :)

betts02
11-28-2009, 07:16 PM
i know its an old mod but i like this and just installed

betts02
11-28-2009, 07:52 PM
old mod i just installed and working fine, NOW,lol
as a newbie to vbulletin i placed everything word for word, which is wrong really.
i put :

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

when it should be

bg
os
co
sf
wow
sh

the * made it the wrong path.lol

but working great cheers