Myspace button in Postbit

Daz

New Member
This small modifications will put a button in the postbit to the Myspace page of the user.


1. Make a profile field
Profile field type = Single-line text box
Title: Myspace account
Description: Type your Myspace ID.
You can leave the rest to default.

**Note down the number of the field! Example: field16. You need to replace the X in the next code with the number!**


2. Template changes - In postbit_legacy & Postbit

Find:

PHP:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

After ad:
PHP:
<!-- Myspace start -->
<if condition="$post[fieldX]"><a href="http://www.myspace.com/$post[fieldx]" alt="View my myspace" target="_blank">
<img src="images/misc/myspace.gif" border="0"></a>
</if>
<!-- Myspace end -->
 
Top