Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add XFire URLS to User Profile Info Details »»
Add XFire URLS to User Profile Info
Version: 1.03, by murdo murdo is offline
Developer Last Online: Nov 2006 Show Printable Version Email this Page

Version: 3.6.1 Rating:
Released: 09-17-2006 Last Update: Never Installs: 6
Template Edits
 
No support by the author.

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!





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] !!

Show Your Support

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

Comments
  #12  
Old 09-21-2006, 05:51 PM
dougeetx dougeetx is offline
 
Join Date: Aug 2006
Location: Plano, TX
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe a stupid question but what is Xfire???
Reply With Quote
  #13  
Old 09-27-2006, 08:53 PM
iran.gs iran.gs is offline
 
Join Date: Jul 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

this may help u buddy
Reply With Quote
  #14  
Old 10-20-2006, 11:41 AM
Ev!L ErN!E Ev!L ErN!E is offline
 
Join Date: Feb 2006
Location: Michigan
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to include an image for xfire? instead of text?
Reply With Quote
  #15  
Old 10-20-2006, 12:31 PM
murdo murdo is offline
 
Join Date: Jun 2006
Location: Scotland, UK
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #16  
Old 10-22-2006, 09:12 PM
Ev!L ErN!E Ev!L ErN!E is offline
 
Join Date: Feb 2006
Location: Michigan
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #17  
Old 10-23-2006, 06:46 AM
murdo murdo is offline
 
Join Date: Jun 2006
Location: Scotland, UK
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 11-03-2006, 07:34 AM
The Itchy One The Itchy One is offline
 
Join Date: Apr 2006
Location: Dundee, Uknighted Kingdom
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed

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

Here is my Xfire logo
Reply With Quote
  #19  
Old 11-06-2006, 08:24 AM
murdo murdo is offline
 
Join Date: Jun 2006
Location: Scotland, UK
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #20  
Old 04-23-2007, 06:59 PM
fruitattack fruitattack is offline
 
Join Date: Apr 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 05-03-2007, 09:34 PM
Paul Wall Paul Wall is offline
 
Join Date: Feb 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uhm whats the field thing? how do i know what feild i have? sorry im not so good.
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 07:04 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.06692 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (3)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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