vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Xfire in Profile and Posbit/Postbit_Legacy (https://vborg.vbsupport.ru/showthread.php?t=140787)

Twilkey 02-28-2007 10:00 PM

Xfire in Profile and Posbit/Postbit_Legacy
 
First off, you must make a profile field.
Do this by logging into your AdminCP and going to,
User Profile Fields > Add New User Profile Field
Fill out the info as needed. No specifics really.

Next you must edit your postbit or postbit_legacy template.
Again done in the AdminCP.
Styles & Templates > Style Manager > Edit Templates > postbit_legacy(or postbit)

In the template
FIND:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
Right after $post[skypeicon] add a space and add this:
Code:

<if condition="$post[field7]"><A HREF="http://www.xfire.com/"><img src="http://www.domain.com/forum/image_name.png" border="0" alt="Xfire $post[field7]"></if></a>
Change the red to the profile field number.
Change the green to the url of the image you plan to see on your postbit.
Change the blue to whatever you want the image to link to.

Screenshot is in attachments.


prowarfare 03-01-2007 12:38 PM

Didnt work for me. I added new profile field named it 7 then added code into postbit legecy and made it so it was how it was supposed to be but when i go to forums i don't see it. (i already added my xfire name into my profile)

Yvgeniy 03-01-2007 05:11 PM

Thanks a lot for the mod! I was wondering, however, is there any way to place the custom profile field in with the rest of the Messaging applications? I mean, there's even a free space at the bottom right where it would fit in quite nicely. Also, concerning the blue link... Is there a way to have it open up that small window that gives you the information the way it does for AIM and other default applications on vB?

Hollanda 04-03-2007 12:42 PM

Nice hack! Is it possible that the link go directly to the profile field?

silencerdeluxe 05-18-2007 09:57 AM

Nice Hack!

To get the Profile-Site of each User, when clicking on the xfire-icon, change the link to this:

http://www.xfire.com/profile/$[field7]

(sry for my bad english) :o

nickster 05-19-2007 01:23 AM

Wrong. Change the link to this:

http://www.xfire.com/profile/$post[fieldX]"

X = Whatever your profile field number is! :)

davewolf 11-23-2007 11:21 PM

Just

http://www.xfire.com/profile/

works :)


All times are GMT. The time now is 11:21 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.00966 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete