murdo
09-17-2006, 10:00 PM
Only my second released mod, tested and working with vBulletin 3.6.0, 3.6.1. and 3.6.2
Thanks to +buG (https://vborg.vbsupport.ru/member.php?u=14810) and Ev!L ErN!E (https://vborg.vbsupport.ru/member.php?u=130960) 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:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
and below it, add:
<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:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
and below it, add:
<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] !!
Thanks to +buG (https://vborg.vbsupport.ru/member.php?u=14810) and Ev!L ErN!E (https://vborg.vbsupport.ru/member.php?u=130960) 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:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
and below it, add:
<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:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
and below it, add:
<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] !!