The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[Sog-team]xFire Custom Profile Block Details »» | |||||||||||||||||||||||||
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" Code:
Single line text box Title: Xfire User ID Field Editable by User > Yes 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 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 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' 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) -------------------------------------------------------------------------------------------------------------------- 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 Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
|||
|
|||
Thank you for the update
|
#3
|
|||
|
|||
Shouldn't the style options be a single selection menu?
Also, you might want to resize the image you attached since we have to resize it using code to fit in the block. The image gets distorted when you do that. Edit again: Actually, both images have to be resized via code, distorting them. Edit 3: It still shows the block in the profile if you don't put anything in the profile field. |
#4
|
|||
|
|||
seem like a lots of the similiar mod out there
|
#5
|
||||
|
||||
Quote:
Basically both images have to be resized if used as a module on the right hand side. I will attach a better xfire logo later, but regarding the actual miniprofile, there is little possible to do bar manually adjust its size like ive done in the template SRC. However, you are not restricted to use this mod only in the right hand side. You may use it in various locations, even as a new tab next to "Visitor Messages", "Friends", "About Me" etc should you wish. Simply edit the member_info_xfire template and remove the Code:
width="230" height="63" Now go Code:
ADMIN CP > Plugin Manager > xFire Profile Hack Code:
'hook_location' => 'profile_right_mini' '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) Hope that helps, and sorry about the problems experienced. Ive updated the mod as above. Matt |
#6
|
||||
|
||||
This doesn't show for me see attachment
|
#7
|
||||
|
||||
What is your vb version, contents of the relevant template and plugin?
|
#8
|
|||
|
|||
My version of vBulletin is actually 3.7.3 and im having the same problem as michael. I have a good knowledge base of vBulletin and Skins and I've tried moving a couple things around, yet still. It's not working.
What do you think might be the problem? |
#9
|
||||
|
||||
plugin code. I need the contents of your current plugin for this hack please.
Thanks |
#10
|
||||
|
||||
Mine works, but it realy screws up everything, view screenshot to see.
memberinfo_block_xfire Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <if condition="$userinfo[field6]"> <div class="alt1 block_row"> <ul class="list_no_decoration"> <thead> <table> <td align="center" class="alt2"><font size="1"><img src="images/xfire_logo.jpg" alt="Xfire - Gaming Simplified">xFire User Account: <b>$userinfo[field6]</b></font> </td> </table> <br /> </thead> <center> <a href="http://profile.xfire.com/$userinfo[field6]" target="_blank"><img src="http://miniprofile.xfire.com/bg/$userinfo[field7]/type/1/$userinfo[field6].png" border="0"/></a> </center> <br /> <center><font size="1"><a href="xfire:add_friend?user=$userinfo[field6]" rel="nofollow"><b>Add $userinfo[username] to xFire Contacts List</b></font></center> </ul> </div> </if></html> EDIT1: Ok monkeying around with the template, you need to remove thead, that messes up the placement, now i just need to figure out how to remove the linking of the vbulletin version and everything. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|