Re: Profile Field adds Award
Glad it works!
Well, checkboxes will be a little trickier because of the possibility of multiple selections. You could try something like:
<?php if ( bp_get_the_profile_field_name() == 'color' ) {
global $field;
$value = bp_unserialize_profile_field( $field->data->value );
$value = explode( ", ", $value);
if ( in_array( 'red', $value ) )
echo '<img src="red.jpg" alt="red" title="red" />';
if ( in_array( 'green', $value ) )
echo '<img src="green.jpg" alt="green" title="green" />';
}
?>