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)
-   -   Add XFire URLS to User Profile Info (https://vborg.vbsupport.ru/showthread.php?t=126907)

murdo 09-17-2006 09:00 PM

Add XFire URLS to User Profile Info
 
Only my second released mod, tested and working with vBulletin 3.6.0, 3.6.1. and 3.6.2

Thanks to +buG and Ev!L ErN!E for their input / suggestions.

This template mod will allow you to add your users Xfire ID as a link, on their forum posts. This link, when clicked on, will add that user to his/her Friends list!


http://www.nc-ownage.co.uk/image1.jpg


Admin CP -> User Profile Fields -> Add New User Profile Field

Choose "Single Line Text Box"

Title: XFire Username
Display Order: (you choose!)
Field Required: (you choose!)
Field Editable by User: (you choose!)
Private Field: NO
Field Searchable on Members List: Yes
Show on Members List: (you choose!)
Display Page: Edit Profile

[SAVE]


NOTE:
You must now make a note of the field ID for your Xfire input. You can check what field ID is assigned by going to:

Admin CP -> User Profile Fields -> User Profile Field Manager

and looking at what ID is next to "XFire Username"

For my instructions, i am going to use '99' as my Field ID, and you should change the number to suit what YOUR field ID is!

INSTRUCTIONS FOR ADDING XFIRE ID AS TEXT LINK:

Go to AdminCP
Go to "Style Manager"
Go to "Edit Templates" for your theme.
Scroll down until you get to "Postbit Templates"
Open up either Postbit or Postbit Legacy (depending on what you use!)

Find in this template:

Code:

<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
and below it, add:

Code:

<if condition="$post['field99']"><div>XFire: <a href="xfire:add_friend?user=$post[field99]">$post[field99]</a></div></if>
Save.

REMEMBER!! CHANGE THE ['field99'] AND [field99] to whatever field ID you have, i.e ['field6'] / [field6] or ['field9'] / [field9] !!


INSTRUCTIONS FOR ADDING XFIRE ID LINK AS AN IMAGE:

Go to AdminCP
Go to "Style Manager"
Go to "Edit Templates" for your theme.
Scroll down until you get to "Postbit Templates"
Open up either Postbit or Postbit Legacy (depending on what you use!)

Find in this template:

Code:

<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
and below it, add:

Code:

<if condition="$post['field99']"><div><a href="xfire:add_friend?user=$post[field99]"><img src="putyourimagehere.gif" border="0"></a></div></if>
Save.

REMEMBER!! CHANGE THE ['field99'] AND [field99] to whatever field ID you have, i.e ['field6'] / [field6] or ['field9'] / [field9] !!

Snake 09-18-2006 10:28 AM

Thanks. Works like a charm! ;)

oberheimhaven 09-18-2006 05:12 PM

Great Hack
Thxs
MarkAnthony

murdo 09-18-2006 07:35 PM

Your very welcome guys. Sorry if my instructions were a bit poor, its my first public release.. any tips would be appreciated! :)

Snake.. did you "Install It"? hint hint! lol :)

darkie79 09-20-2006 06:09 AM

Regretably, not working for me :(

murdo 09-20-2006 07:53 AM

darkie79, PM me with ur MSN / xfire ID and I will assist you. :)

+buG 09-20-2006 03:38 PM

Field99 should reflect the actual field# instead of the display order, shouldn't it?

murdo 09-21-2006 07:01 AM

yes. that is correct. I have just noticed my mistake in the instructions, and appologise!!!

Whatever "Display Order" you chose when u add a "User Profile Field", makes NO diference!!

Instructions on install have been amended accordingly.

Thanks you +buG for pointing that out!

murdo 09-21-2006 08:26 AM

Did you get it working bug?

darkie79 09-21-2006 09:13 AM

this worked for me, thanks all :)

dougeetx 09-21-2006 04:51 PM

Maybe a stupid question but what is Xfire???

iran.gs 09-27-2006 07:53 PM

Quote:

Originally Posted by dougeetx
Maybe a stupid question but what is Xfire???


this may help u buddy

Ev!L ErN!E 10-20-2006 10:41 AM

is there a way to include an image for xfire? instead of text?

murdo 10-20-2006 11:31 AM

I have updated the install instructions to accomodate for using an image instead of the persons xfire id.

Please refer to the part:

INSTRUCTIONS FOR ADDING XFIRE ID LINK AS AN IMAGE:

Ev!L ErN!E 10-22-2006 08:12 PM

Quote:

Originally Posted by murdo
I have updated the install instructions to accomodate for using an image instead of the persons xfire id.

Please refer to the part:

INSTRUCTIONS FOR ADDING XFIRE ID LINK AS AN IMAGE:

Works great, I just had to add the border="0" line to the code so the image wouldn't have a border around it:

Code:

<if condition="$post['field99']"><div><a href="xfire:add_friend?user=$post[field99]"><img src="putyourimagehere.gif" border="0"></a></div></if>
Also this would be great if it was placed next to the other messanger icons, or even added as a field for messanger profiles, like Yahoo, MSN and AIM, could you create this as a mod for that as well?

Also I'm using 3.6.2 and its working fine...

murdo 10-23-2006 05:46 AM

Thanks Ev!L ErN!E, updated the instructions.

As for the mod you talk about... you read my mind! I'm already working on it :)

The Itchy One 11-03-2006 07:34 AM

Installed :)

Demo of the mod can be viewed at http://lovepants.co.uk/forum/showthread.php?t=67

Here is my Xfire logo
http://lovepants.co.uk/forum/images/...logo_xfire.gif

murdo 11-06-2006 08:24 AM

Thanks for that! Will shortly be releasing v1.1 of the mod, with instructions on how to add the xfire image / link to the other Messenger icons/links... :)

fruitattack 04-23-2007 05:59 PM

Yup, I'm definitely anticipating that mod...unless I can figure that out myself. Thanks a lot for the tut, going to install it now.

Paul Wall 05-03-2007 08:34 PM

uhm whats the field thing? how do i know what feild i have? sorry im not so good.

byon 05-04-2007 12:28 AM

Quote:

Originally Posted by Paul Wall (Post 1240892)
uhm whats the field thing? how do i know what feild i have? sorry im not so good.

you can find out under AdminCP -> User Profile Fields

Paul Wall 05-04-2007 02:17 AM

for some reason its not showing the xfire usernames, it says exfire but nothing after

http://www.valhallagaming.net/showthread.php?t=1352


All times are GMT. The time now is 10:07 PM.

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.01628 seconds
  • Memory Usage 1,762KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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