Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-17-2005, 11:04 AM
1shot1kill 1shot1kill is offline
 
Join Date: Sep 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Xfire in profile

I would like the members on the board i run to show their xfire profile picture in their profile on our board, what i would like is a box where they can enter their xfire name and it will automaticly show their xfire profile pic on their profile on our board, is this possible?

Info about the profile picture can be found on xfire, though this explains all of it:


How do I access my Miniprofile?

To embed your miniprofile into any web page, use the following HTML: <a href="http://profile.xfire.com/USERNAME"> <img src="http://miniprofile.xfire.com/USERNAME.png" alt="USERNAME Xfire Miniprofile" border=0> </a>

To embed your miniprofile into a PHPBB signature (ie, in forums), use the following BBcode:

[url=http://profile.xfire.com/USERNAME][img]http://miniprofile.xfire.com/USERNAME.png[ img][ url]

In either case, replace USERNAME with your Xfire username (your original username with all lowercase letters and numbers, not your nickname). These sets of code will display your Xfire miniprofile, as well as link the image back to your Xfire profile so anyone can get your full Xfire information!


Ofcourse i removed the 2 /'s i nthe end tags so it would show the code and not the picture.
Reply With Quote
  #2  
Old 01-17-2005, 12:02 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 1shot1kill
I would like the members on the board i run to show their xfire profile picture in their profile on our board, what i would like is a box where they can enter their xfire name and it will automaticly show their xfire profile pic on their profile on our board, is this possible?

Info about the profile picture can be found on xfire, though this explains all of it:


How do I access my Miniprofile?

To embed your miniprofile into any web page, use the following HTML: <a href="http://profile.xfire.com/USERNAME"> <img src="http://miniprofile.xfire.com/USERNAME.png" alt="USERNAME Xfire Miniprofile" border=0> </a>

To embed your miniprofile into a PHPBB signature (ie, in forums), use the following BBcode:

[url=http://profile.xfire.com/USERNAME][img]http://miniprofile.xfire.com/USERNAME.png[ img][ url]

In either case, replace USERNAME with your Xfire username (your original username with all lowercase letters and numbers, not your nickname). These sets of code will display your Xfire miniprofile, as well as link the image back to your Xfire profile so anyone can get your full Xfire information!


Ofcourse i removed the 2 /'s i nthe end tags so it would show the code and not the picture.
You can do that without modifying the code.

What you'll need to do is add a custom profile field named xfire username, and build that into your templates.
Reply With Quote
  #3  
Old 01-17-2005, 03:23 PM
1shot1kill 1shot1kill is offline
 
Join Date: Sep 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, could you give me a quick explaination on how to do that?
Reply With Quote
  #4  
Old 01-18-2005, 04:08 PM
1shot1kill 1shot1kill is offline
 
Join Date: Sep 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump.

Anybody got any instructions on how to go about doing this?
Reply With Quote
  #5  
Old 01-18-2005, 06:46 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

add a custom profile field.
note the fieldid

add into your postbit templates, wherever you want it to show:

<a href="http://profile.xfire.com/$post[fieldX]"><img src="http://miniprofile.xfire.com/$post[fieldX].png" /></a>
Reply With Quote
  #6  
Old 01-18-2005, 08:01 PM
1shot1kill 1shot1kill is offline
 
Join Date: Sep 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok thanks, i'll try that.

Ok, i got it working, however when people do not enter their xfire name it shows a big red X in the profile page where the xfire picture would be. I know how to install mods and edit templates etc i'm just not very familiar with php, how would i make it so that the picture only shows up profiles of people that have entered their xfire name in the custom profle field i made and just doesn't show at all when people do not have that field entered? The field id for that profile field is 8.

Also is there a way to not show the custom field i made for anybody? I added the custom field and selected the option that will keep it private, but it still shows up for me as i am administrator, instead of the xfire name i would just want the xfire picture to show up.

On the picture you can see where i want it.
Reply With Quote
  #7  
Old 01-21-2005, 02:28 PM
1shot1kill 1shot1kill is offline
 
Join Date: Sep 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this be possible at all?
Reply With Quote
  #8  
Old 02-02-2005, 07:47 PM
1shot1kill 1shot1kill is offline
 
Join Date: Sep 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Last attempt, anybody that could code this? I'm sure there are many more people running game sites that are interested in it.
Reply With Quote
  #9  
Old 02-17-2005, 11:34 PM
syndicate's Avatar
syndicate syndicate is offline
 
Join Date: Feb 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

done

https://vborg.vbsupport.ru/showthread.php?t=76533
Reply With Quote
  #10  
Old 02-21-2005, 02:48 AM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That only puts in postbit, what you need to do to put in the profile is this, remember to replace fieldx with the field number you created for their xFire username:

Code:
In MEMBERINFO template find:
<if condition="$vboptions['usereferrer']">

Add above:
<!-- [Xfire Hack ] -->
<if condition="$userinfo['fieldx']">
<fieldset class="fieldset">
				<legend>xFire Info</legend>
<div class="fieldset">
				<div style="padding:$stylevar[formspacer]px">
<a href="http://profile.xfire.com/$userinfo[fieldx]"><img src="http://miniprofile.xfire.com/$userinfo[fieldx].png" border="0"></a>
					
				</div>
			</div>
</fieldset>
</if>
<!-- [end Xfire Hack ] -->
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 06:31 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.04727 seconds
  • Memory Usage 2,260KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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