Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[Sog-team]xFire Custom Profile Block Details »
[Sog-team]xFire Custom Profile Block
Mod Version: 1.01, by m002.p (Member) m002.p is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (1 vote - 5.00 average) Installs: 27
Released: 03 Jul 2008 Last Update: 26 Oct 2008 Downloads: 118
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.
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Use the following options:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2)
Edit the plugin, ensure it is set as a product for "vbulletin", then edit the PHP code to find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3)
Now change "profile_right_mini" with any of the following explained options:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 Now

Only licensed members can download files, Click Here for more information.

Addons

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	xfire_logo.jpg
Views:	226
Size:	3.8 KB
ID:	83475  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases [Sog-team]xFire in Postbit Hack [Add On] m002.p vBulletin 3.7 Add-ons 16 28 Nov 2009 20:52

Comments
  #2  
Old 03 Jul 2008, 23:15
NGUYENDUCTRUONG's Avatar
NGUYENDUCTRUONG NGUYENDUCTRUONG is offline
 
Join Date: May 2008
Thank you for the update
Reply With Quote
  #3  
Old 04 Jul 2008, 00:58
Jeordie015 Jeordie015 is offline
 
Join Date: Nov 2002
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.

Last edited by Jeordie015; 04 Jul 2008 at 01:42.
Reply With Quote
  #4  
Old 04 Jul 2008, 05:05
Q-v-n-s-Q Q-v-n-s-Q is offline
 
Join Date: Mar 2005
seem like a lots of the similiar mod out there
__________________
PossibleAndroid
Reply With Quote
  #5  
Old 04 Jul 2008, 05:49
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Real name: Matt
Originally Posted by Jeordie015 View Post
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.
Correct. Sorry last night I was tired and probably should have released this mod today.

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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

from the miniprofile SRC.

Now go
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Ensure the product is "vbulletin" for starters, and secondly in the PHP code find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You may adjust the "profile_right_mini" to any of the following parameters:

'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
__________________
www.sog-team.co.uk

Last edited by m002.p; 04 Jul 2008 at 06:02.
Reply With Quote
  #6  
Old 11 Oct 2008, 07:58
michael5472's Avatar
michael5472 michael5472 is offline
 
Join Date: Mar 2004
Real name: Michael
This doesn't show for me see attachment
Attached Images
File Type: gif xfire.gif (22.5 KB, 48 views)
Reply With Quote
  #7  
Old 13 Oct 2008, 19:05
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Real name: Matt
What is your vb version, contents of the relevant template and plugin?
__________________
www.sog-team.co.uk
Reply With Quote
  #8  
Old 15 Oct 2008, 05:14
XxSparks XxSparks is offline
 
Join Date: Sep 2008
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?
Reply With Quote
  #9  
Old 20 Oct 2008, 22:57
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Real name: Matt
plugin code. I need the contents of your current plugin for this hack please.

Thanks
__________________
www.sog-team.co.uk
Reply With Quote
  #10  
Old 25 Oct 2008, 22:17
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Mine works, but it realy screws up everything, view screenshot to see.

memberinfo_block_xfire

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Another thing, you need to remove the <img src="/forum/images/xfire_logo.jpg" and rename it to <img src="images/xfire_logo.jpg" instead >8P Something is definantly wrong though, and i am assuming it's because i do not allow html, and it has html tags there. Anyway you can make this mod work without the use of 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.
Attached Images
File Type: jpg messedup.jpg (31.5 KB, 33 views)

Last edited by Replicators; 25 Oct 2008 at 22:24.
Reply With Quote
  #11  
Old 25 Oct 2008, 23:02
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Alternative Method

Ok, i kinda ripped up your code to suit my needs, and all is working fine now, but something in the plugin is making the vbulletin legal info as a link which bothers me.

memberinfo_block_xfire

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I suggest all who is having problems with this displaying correctly to replace the old template code with this one i just posted. Just upload my attached image to the images folder. Only drawback atleast for me is the vbulletin legal info gets hyperlinked, and i think it's due to the plugin code itself but can't say for sure. To the dev, i am sorry for altering your code, but alot of people are having problems with this, and i feel this would be a good alternative method of your hack. If you could show us how to mend the plugin code to the way i have it set up, all will be good with those that have a skin that won't display your mod as it should.
Attached Images
File Type: png xfire_addme.png (6.3 KB, 564 views)

Last edited by Replicators; 26 Oct 2008 at 20:10.
Reply With Quote
  #12  
Old 26 Oct 2008, 18:58
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Real name: Matt
No, that code doesnt work above, the code ive provided is there for a reason and certainly isnt hassle and certainly works . Its nothing to do with the plugin, that is just PHP functions which wont mess up the display.

I dont know where you got that template code from :s That HTML is to do with the product xml only and is the reason your display is messed up.

This is the only code you need to use in the template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That, will fix your display

Of course I dont mind people using the code or modifying it, providing it works lol
__________________
www.sog-team.co.uk
Reply With Quote
  #13  
Old 26 Oct 2008, 19:14
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Originally Posted by m002.p View Post
No, that code doesnt work above, the code ive provided is there for a reason and certainly isnt hassle and certainly works . Its nothing to do with the plugin, that is just PHP functions which wont mess up the display.

I dont know where you got that template code from :s That HTML is to do with the product xml only and is the reason your display is messed up.

This is the only code you need to use in the template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That, will fix your display

Of course I dont mind people using the code or modifying it, providing it works lol
I will try your method, i meant no offense to you btw. The way i had it does work as i said, the only thing that is wrong is it hyperlinking the vbulletin legal info stuff due to plugin code.
Reply With Quote
  #14  
Old 26 Oct 2008, 19:22
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Real name: Matt
Yes sorry, im not implying by the fact it is wrong it doesnt display the module, im more saying the fact the code you cut out was in fact needed in order to display correctly (ie fix the link you report). The code you cut out was required in order to actually correctly fix the display positions.

Lastly, you didnt cause any offence, I actually appreciate your effort, however posting code that could mess up users displays further then stating "it is less hassle and works" doesnt exactly state the truth

It isnt the plugin code 100%, I promise you. If you look and have knowledge of PHP, you will notice the functions do not affect the display to that extent. It is if you cut out the code I provided, and use the plugin, then it will cause those issues.

To cut a long story short anyhow, you identified for me that the reason why some displays arent working for users is in fact an error in the product xml.

Ive updated to v1.01 which should provide fixes for those experiencing difficulties. Please upgrade and overwrite the product.

Thanks

Matt
__________________
www.sog-team.co.uk
Reply With Quote
  #15  
Old 26 Oct 2008, 19:32
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Ok, i tried it your way, still utterly breaks everything to look ugly. You do not need to input /forums/ as when your img sourcing it goes by the root of the forum, not the site.

Your Way


My Way


Now from my point of view, my html code works, not saying yours doesn't, but then look up to the first image and see for yourself. I didn't change any plugincode, and the html i used was what you posted, just changed the xx's to the id and oo to style. My problem could be due to the style i a using though, but all in all, this shouldn't happen regardless, especially for a mod like this.

Last edited by Replicators; 26 Oct 2008 at 19:37.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:32.

Layout Options | Width: Wide Color: