Helpful Information
 
 
Category: vBulletin 4.x Template Modifications
New Posting Features - Myspace Button in postbit

This will add a Myspace button to the postbit of any member who has a myspace page (assuming they filled out the profile field).

Go to Admin Cp and click Add New User Profile Field

Profile Field Type: Single Line Text Box
Title: Myspace Page
Description: Enter your Myspace username here. ex: usmchangout or if you have not chosen a myspace username enter your friend ID. You can find this by viewing your profile and locating the numbers within that profile. They will be followed by friendID=
Field Editable by user: Yes
Display Page: Edit Profile

Click Save and remember your field # (ex field22)

Upload the attached pic to images/misc

In your postbit template find:


{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}


Add below (remember to replace the XX with your own field number that you just created):

<!-- Myspace start -->
<vb:if condition="$post['fieldXX']"><a href="http://www.myspace.com/{vb:raw post.fieldXX}" target="_blank">
<img src="images/misc/myspace.gif" alt="Go to {vb:raw post.username}'s Myspace page" border="0"></a>
</vb:if>
<!-- Myspace end -->

Click save

Exactly what I was looking for, thank you sweetie. ;)

I tried to do the same thing here with Facebook. Can't get it to work for some reason. Here is my code if anyone can help me figure it out. I've put it in the exact place that txs told us to put it.

<!-- Facebook start -->
<vb:if condition="$post['field6']"><a href="{vb:raw post.field6}" target="_blank">
<img src="images/misc/facebook.gif" alt="Go to {vb:raw post.username}'s Facebook page" border="0"></a>
</vb:if>
<!-- Facebook end -->

screnshop










privacy (GDPR)