profile page

in the view my profile you can see a picture of the user and it is clickable. When click it lead you to the upload photo. How can i remove the link so that the picture will not be clickable? PLease Help Cry

Quote · 5 Jun 2009

To disable the photo link on the profile page edit profilePhotos.php.


At about line 412 you will find the following block of code.


$ret .= '<div class="photoBlock" id="photoKeeper">';
$style =
'width:'  . $this -> aMediaConfig['size']['photoWidth'] . 'px;'.
'height:' . $this -> aMediaConfig['size']['photoHeight'] . 'px;' .
'background-image:url(' . $sPhotoUrl . ');';

$ret .= '<a href="' . $site['url'] . 'photos_gallery.php?ID=' .  $this -> iProfileID . '" id="temThumbLink">';
$ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $style . '" class="photo" alt="" id="temThumbID" />';
//$ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $style . '" class="photo" alt="" onload="return setThumb();" id="temThumbID" />';
$ret .= '</a>';

$ret .= '</div>';


You need to comment out two lines. The start of the link and the end, so change it to look like this.


$ret .= '<div class="photoBlock" id="photoKeeper">';
$style =
'width:'  . $this -> aMediaConfig['size']['photoWidth'] . 'px;'.
'height:' . $this -> aMediaConfig['size']['photoHeight'] . 'px;' .
'background-image:url(' . $sPhotoUrl . ');';

//$ret .= '<a href="' . $site['url'] . 'photos_gallery.php?ID=' .  $this -> iProfileID . '" id="temThumbLink">';
$ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $style . '" class="photo" alt="" id="temThumbID" />';
//$ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $style . '" class="photo" alt="" onload="return setThumb();" id="temThumbID" />';
//$ret .= '</a>';

$ret .= '</div>';


I have marked the lines that need to be commented out in red.

https://www.deanbassett.com
Quote · 5 Jun 2009

Hey thanks deano that was quick and it now works. Great help. Thank you very much Smile

Quote · 5 Jun 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.