Thanks. The above code didnt return the url correctly but it set me straight.
In your example, the url is returned with
http://www.myspace.com/0
Which made me realize the value was being overwritten with the plugin.
Adding a new value solved the problem and works.
Code:
if ($profilefield['profilefieldid'] == 5)
{
$myspace_field = $profilefield['value'];
$profilefield['value'] = '<a href="http://www.myspace.com/' . intval($myspace_field) . '">MySpace Page</a>';
}
The reason I added a variable is that I cant remember the vbcode for a members profile field. :erm:
Thanks Calorie
I'm just wondering now if I can do this twice for 2 different profile fields within the same plugin.
I'm guessing that functions will need written as not to confuse $profilefield[value']