I had a request to turn the email address in the profile view into a clickable mailto link. It proved to be a bit more than my skill level but Deano96924 came to my rescue. The following code is his.
Edit templates/base/scripts/BxBaseProfileView.php
In the function getViewValuesTable at about line 292 look for this line.
if ($sValue1 || $aItem['Type'] == 'bool') { //if empty, do not draw
Insert this above that line.
$bPreserveHtml = false;
if($aItem['Name'] == 'Email') {
$sValue1 = '<a href="mailto:' . $this->_aProfile['Email'] . '">' . $this->_aProfile['Email'] . '</a>';
$sValue2 = '<a href="mailto:' . $this->_aCouple['Email'] . '">' . $this->_aCouple['Email'] . '</a>';
$bPreserveHtml = true;
}
if($bPreserveHtml) {
$sDbValue1 = $sValue1;
$sDbValue2 = $sValue2;
} else {
$sDbValue1 = $this->oPF->getViewableValue($aItem, $sValue1);
$sDbValue2 = $this->oPF->getViewableValue($aItem, $sValue2);
}
Now look for this line.
'value' => $this->oPF->getViewableValue($aItem, $sValue1),
Change to this.
'value' => $sDbValue1,
Look for this line.
'value' => $this->oPF->getViewableValue($aItem, $sValue2),
Change to this.
'value' => $sDbValue2,
Thats it.