SLY LS1
10-13-2007, 10:00 PM
1. Make a profile field
In Admin CP go to - User Profile Fields - Add New User Profile Field
Profile field type = Single-line text box
Title: YouTube Profile
Description: Type your YouTube ID
You can leave the rest to default
**Note down the number of the field! Example: field16. You need to replace the fieldX in the next code with the number!**
2. Template changes - In postbit_lecacy & Postbit
Find:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After add:
<!-- YouTube display start -->
<if condition="$post[fieldX]"><a href="http://www.youtube.com/profile?user=$post[fieldX]" alt="View my YouTube" target="_blank">
<img src="images/misc/im_youtube.gif" border="0"></a>
</if><!-- YouTube display end -->
3. Button Upload
Upload the attached image to your: /images/misc folder!
4. Add link in members profile "Contact Info: section
Edit template - "memberinfo"
Find:
<if condition="$show['homepage']">
<tr>
<td>
$vbphrase[home_page]:<br />
<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
</td>
</tr>
</if>
Above add:
<if condition="$userinfo[fieldX]">
<tr>
<td>
YouTube Profile:<br />
<a href="http://www.youtube.com/profile?user=$userinfo[fieldX]" target="_blank">Check out my YouTube page</a>
</td>
</tr>
</if>
Dont forget to change the X to your field number.
In Admin CP go to - User Profile Fields - Add New User Profile Field
Profile field type = Single-line text box
Title: YouTube Profile
Description: Type your YouTube ID
You can leave the rest to default
**Note down the number of the field! Example: field16. You need to replace the fieldX in the next code with the number!**
2. Template changes - In postbit_lecacy & Postbit
Find:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After add:
<!-- YouTube display start -->
<if condition="$post[fieldX]"><a href="http://www.youtube.com/profile?user=$post[fieldX]" alt="View my YouTube" target="_blank">
<img src="images/misc/im_youtube.gif" border="0"></a>
</if><!-- YouTube display end -->
3. Button Upload
Upload the attached image to your: /images/misc folder!
4. Add link in members profile "Contact Info: section
Edit template - "memberinfo"
Find:
<if condition="$show['homepage']">
<tr>
<td>
$vbphrase[home_page]:<br />
<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
</td>
</tr>
</if>
Above add:
<if condition="$userinfo[fieldX]">
<tr>
<td>
YouTube Profile:<br />
<a href="http://www.youtube.com/profile?user=$userinfo[fieldX]" target="_blank">Check out my YouTube page</a>
</td>
</tr>
</if>
Dont forget to change the X to your field number.