Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Sog-team]xFire Custom Profile Block Details »»
[Sog-team]xFire Custom Profile Block
Version: 1.01, by m002.p m002.p is offline
Developer Last Online: Jun 2022 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.x Rating:
Released: 07-02-2008 Last Update: 10-25-2008 Installs: 28
Uses Plugins Template Edits Auto-Templates
Re-useable Code Additional Files  
No support by the author.

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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-03-2008, 10:15 PM
NGUYENDUCTRUONG NGUYENDUCTRUONG is offline
 
Join Date: May 2008
Location: Deutschland
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the update
Reply With Quote
  #3  
Old 07-03-2008, 11:58 PM
Jeordie015 Jeordie015 is offline
 
Join Date: Nov 2002
Location: Illinois, USA
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-04-2008, 04:05 AM
Q-v-n-s-Q Q-v-n-s-Q is offline
 
Join Date: Mar 2005
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seem like a lots of the similiar mod out there
Reply With Quote
  #5  
Old 07-04-2008, 04:49 AM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Code:
width="230" height="63"
from the miniprofile SRC.

Now go
Code:
ADMIN CP > Plugin Manager > xFire Profile Hack
Ensure the product is "vbulletin" for starters, and secondly in the PHP code find:
Code:
'hook_location' => 'profile_right_mini'
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
Reply With Quote
  #6  
Old 10-11-2008, 06:58 AM
michael5472's Avatar
michael5472 michael5472 is offline
 
Join Date: Mar 2004
Location: South England
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't show for me see attachment
Reply With Quote
  #7  
Old 10-13-2008, 06:05 PM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is your vb version, contents of the relevant template and plugin?
Reply With Quote
  #8  
Old 10-15-2008, 04:14 AM
XxSparks XxSparks is offline
 
Join Date: Sep 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 10-20-2008, 09:57 PM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

plugin code. I need the contents of your current plugin for this hack please.

Thanks
Reply With Quote
  #10  
Old 10-25-2008, 09:17 PM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
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.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05474 seconds
  • Memory Usage 2,316KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete