Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
[Sog-team]xFire in Postbit Hack [Add On] Details »»
[Sog-team]xFire in Postbit Hack [Add On]
Version: 1.00, by m002.p m002.p is offline
Developer Last Online: Jun 2022 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.x Rating:
Released: 07-05-2008 Last Update: Never Installs: 26
Template Edits
Additional Files  
No support by the author.

What is this?

This template modification is an add-on (Can also be used solo, see below) for the [Sogteam]xFire Profile Module Hack*. 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:


Code:
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

Code:
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:
Code:
<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.
Code:
<!-- / 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

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 07-06-2008, 10:14 PM
Q-v-n-s-Q Q-v-n-s-Q is offline
 
Join Date: Mar 2005
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool mod, thanks
Reply With Quote
  #3  
Old 07-07-2008, 08:34 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and for the new postbit nothing?
Reply With Quote
  #4  
Old 07-07-2008, 04:42 PM
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 KURTZ View Post
and for the new postbit nothing?
Sorry mate, dont understand what you are talking about. Are you posting in the right thread? lmao
Reply With Quote
  #5  
Old 08-09-2008, 09:25 PM
StokoE's Avatar
StokoE StokoE is offline
 
Join Date: Jul 2008
Location: Essex
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where are the images ?
Reply With Quote
  #6  
Old 08-10-2008, 05:51 AM
nirvana43's Avatar
nirvana43 nirvana43 is offline
 
Join Date: Oct 2007
Location: Pune, India
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed
Reply With Quote
  #7  
Old 08-10-2008, 01:34 PM
Robbey Robbey is offline
 
Join Date: Jan 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesn't show the get xfire image only shows an image if they entered an xfire
Reply With Quote
  #8  
Old 08-11-2008, 09:41 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by m002.p View Post
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
Reply With Quote
  #9  
Old 08-14-2008, 10:22 PM
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 StokoE View Post
where are the images ?
Attached if you read the opening paragraph

Quote:
Originally Posted by Robbey
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.

Quote:
Originally Posted by KURTZ
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
Reply With Quote
  #10  
Old 09-18-2008, 06:21 PM
Sycoloco1212 Sycoloco1212 is offline
 
Join Date: Mar 2008
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how would i get the info for XX and 00? lol
Reply With Quote
Reply

Thread Tools

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 08:22 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.04502 seconds
  • Memory Usage 2,298KB
  • 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
  • (4)bbcode_code
  • (5)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
  • (1)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