vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Xfire in profile (https://vborg.vbsupport.ru/showthread.php?t=74508)

1shot1kill 03-07-2005 12:02 PM

Sorry, didn't see this before, thanks, seems to work like a charm. :up:

Chief Corn 03-15-2005 05:13 PM

on my site all i did was rename all phrases for yahoo with xfire, made the links point to http://profile.xfire.com/$userinfo[yahoo], and uploaded an xfire image over the im_yahoo.gif. a bit tedious but xfire users don't use yahoo... :rolleyes:

1shot1kill 03-23-2005 09:11 PM

Eh, xfire did an update and there are 4 different miniprofiles now with 4 sizes each, is there a way to edit this so people can at least choose the style they want?

Creed 03-24-2005 02:59 AM

Gimmie a little bit and sure thing :)

In memberinfo template replace what you already have with this:
**NOTE** replace field14 with whatever field you have for your xFire username, and replace field18 with whatever field you have for your profile type!

Code:

<!-- [Xfire Hack ] -->
<if condition="$userinfo['field14']">
<fieldset class="fieldset">
                                <legend>xFire Info</legend>
<div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
<if condition="$userinfo['field18'] == 'Classic'">
        <a href="http://profile.xfire.com/$userinfo[field14]"><img src=http://miniprofile.xfire.com/bg/bg/type/0/$userinfo[field14].png width=440 height=111 border="0"></a>
</if>
<if condition="$userinfo['field18'] == 'Fantasy'">
        <a href="http://profile.xfire.com/$userinfo[field14]"><img src=http://miniprofile.xfire.com/bg/os/type/0/$userinfo[field14].png width=440 height=111 border="0"></a>
</if>
<if condition="$userinfo['field18'] == 'Combat'">
        <a href="http://profile.xfire.com/$userinfo[field14]"><img src=http://miniprofile.xfire.com/bg/co/type/0/$userinfo[field14].png width=440 height=111 border="0"></a>
</if>
<if condition="$userinfo['field18'] == 'SciFi'">
        <a href="http://profile.xfire.com/$userinfo[field14]"><img src=http://miniprofile.xfire.com/bg/sf/type/0/$userinfo[field14].png width=440 height=111 border="0"></a>
</if>                                       
                                </div>
                        </div>
</fieldset>
</if>
<!-- [end Xfire Hack ] -->

Now create a new profile field:

Type: Single-Selection Menu
Title: xFire Profile Type
Description: Choose the type of profile you would like to display in your profile
Options:
Classic
Fantasy
Combat
SciFi

Set Default: Yes, but No First Blank Option
Field Required: No
Field Editable by User: Yes
Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No

Allow User to input their own value for this option: No


Working fine for me :)

www.hdclan.org/forums/member.php?u=1

1shot1kill 03-27-2005 10:31 AM

Thanks, works great.

Creed 03-27-2005 06:14 PM

Quote:

Originally Posted by 1shot1kill
Thanks, works great.


Glad to hear it!


All times are GMT. The time now is 02:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01508 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete