Back to vBulletin 3.7 Add-ons

[Sog-team]xFire Custom Profile Block
Mod Version: 1.01, by m002.p

This modification is in the archives.
vB Version: 3.7.x Rating: (1 vote - 5.00 average) Installs: 28
Released: 04 Jul 2008 Last Update: 26 Oct 2008 Downloads: 124
Not Supported Uses Plugins Template Edits Auto-Template Additional Files Re-usable Code  

What is it?

This mod will allow you to have an extra "module" on user profile pages which will display a xfire status block with a miniprofile link and option to add the user to your contacts list.

Demo?


http://www.sog-team.co.uk/forum/member.php?u=539

See right hand side of profile page.

Installation Instructions:

1)
First add a new profile field if not already present, where the user can add their xfire user id.
Code:
"Admin CP > User Profile Fields > Add new user profile field"
Use the following options:

Code:
Single line text box
Title: Xfire User ID
Field Editable by User > Yes
Save

2)
Now add another profile field again if not already done so previously. This will be the style options.

Code:
Single Line Selection Menu
Title: xFire Profile Style
Options: sh, co, sf, os, wow, bg (Separate by carriage return)
Field Editable by User > Yes
Save

3)
Upload the attached image to forum/images

4)
Upload the attached product xml

5)
Now edit template "memberinfo_block_xfire" for the relevant styles

For all instances of $userinfo[fieldxx], replace "xx" with the number of the field ID for your xfire user ID entry field created.

For the one instance of $userinfo[field00], replace "00" with the field ID of your xfire style selection profile field (the second one we created in this tutorial)

Save the template.

6) COMPLETE

-------------------------------------------------------------------------------------------------------------------

Display Options

Now although it seems as if this mod may only be displayed on the right hand side as shown in the demo, you may actually change its order or have it displayed in a new tab on the left if required (as there can be some problems with the image sizing when as a block on the right)

All you have to do is this.

1)
Go
Code:
Admin CP > Products & Plugins > Plugin Manager > Xfire Profile Hack
2)
Edit the plugin, ensure it is set as a product for "vbulletin", then edit the PHP code to find:
Code:
'hook_location' => 'profile_right_mini'
3)
Now change "profile_right_mini" with any of the following explained options:

Code:
'profile_left_first' (Will be displayed first in front of "Visitor Messages")
'profile_left_last' (Will be located last in the tabs after "Contact Info")
'profile_right_first' (Will be located first / top on the right)
'profile_right_mini' (Will be located after the mini stats block)
'profile_right_album' (Will be located after the albums block)
'profile_right_last' (Last block on right hand side)
4) Done

--------------------------------------------------------------------------------------------------------------------
UPGRADE:

Please just import the new product XML, and ensure you click "overwrite" to YES!

-------------------------------------------------------------------------------------------------------------------
Please INSTALL this modification should you use it for notification of the future releases!

Planned Future Updates:

Alternate TAB template for users wanting to display as a tab
Intergrated vbulletin admincp options
BB Code addition for users to distribute their sig

Version Tracker:

Version 1.0: Initial Release
Version 1.1: Fixed Product XML

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-xfirehack.xml (2.1 KB, 79 downloads)

Addons

Supporters / CoAuthors

  • m002.p

Screenshots

Click image for larger version
Name:	xfire_logo.jpg
Views:	232
Size:	3.8 KB
ID:	83475  

Similar Mods

Add-On Releases [Sog-team]xFire in Postbit Hack [Add On] vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024