Iwant to change the url for the image icon and name of member on the browse.php page.
I have managed to change the url for the username link within the extended view, but cant get neither of the urls to change in the extended or simple view for the profile image/avatar, nor can i get the link to change in the simple view for the username. Any help would be greatly appreciated.
Info:
Using 7.1.1 beta 1
tried changing to this in BxbaseBrowse.php around line 111:
function genClientsLink( $sName, $sValue, $sLink, $sIcon, $bImgDetect = true )
{
// try to find link's icon
if ( $bImgDetect )
$sIcon = getTemplateIcon($sIcon);
$sValue = ( $sValue ) ? '<span>(' . $sValue . ')</span>' : null;
return '
<div class="linkSection">
<table>
<tr>
<td>
<img src="' . $sIcon . '" alt="' . $sName . '" />
</td>
<td>
<a href="page/client-chart">' . $sName . '</a>
' . $sValue . '
</td>
</tr>
</table>
</div>
';
}
also changed this around line 442:
function genLinkLocation( $sType, $sTypeValue )
{
$sLocation = null;
foreach( $this -> aParameters AS $sKey => $sValue ) {
if ( $this -> bPermalinkMode ) {
if ( $sType == $sKey )
$sLocation .= '/page/client-chart/' . $sTypeValue;
else
$sLocation .= ( $sValue ) ? '/page/client-chart/' . $sValue : '/all';
} else {
if ( $sType == $sKey )
$sLocation .= '&' . $sKey . '=' . $sTypeValue;
else
$sLocation .= ( $sValue ) ? '&' . $sKey . '=' . $sValue : '&' . $sKey . '=all';
}
}
and made changes here to BxBaseSearchProfiles.php around line 93 - these changes changed the link of the username in the extended view:
$sProfileNickname = '<a href="page/client-chart?ID=' . $sClientId . '">' . getNickName($aProfileInfo['ID']) . '</a>';
and around line 102:
$sProfile2Nick = '<a href="page/client-chart?ID=' . $sClientId2 . '">' . getNickName($aCoupleInfo['ID']) . '</a>';