// Show profile information if permitted to do so
			if ($wps_user->is_permitted('personal')) { // defaults to activity permission, set to "personal" for personal info

				// Location
				if ($wps_user->get_city()) echo '<span class="my-info-label">Lives in:</span> '.$wps_user->get_city();
				if ($wps_user->get_city() && ($wps_user->get_country())) echo ', ';
				if ($wps_user->get_country()) echo $wps_user->get_country();
				if ($wps_user->get_city() || $wps_user->get_country()) echo '<br />';
				
				// Date of birth
				if ($wps_user->get_dob_day() && $wps_user->get_dob_month() && $wps_user->get_dob_year()) {
					echo '<span class="my-info-label">Born:</span> '.$wps_user->get_dob_day().' '.__wps__get_monthname($wps_user->get_dob_month()).' '.$wps_user->get_dob_year().'<br />';
				}
				
				// Extended fields
				$extended = $wps_user->get_extended();
				foreach ($extended as $row) {
					if ($row['type'] != 'Checkbox') {
						echo '<span class="my-info-label">'.stripslashes($row['name']).':</span> '.stripslashes($row['value']).'<br />';					
					} else {
						echo $row['name'].'<br />';
					}
				}
				
				// List friends
				$friends = $wps_user->get_friends();
				if ($friends) {
					echo '<div id="my-friends-list">';
						echo '<div style="font-weight:bold; margin-bottom:6px;">Friends</div>';
						foreach ($friends AS $friend) {
							if ($friend['id']) {