How to place profile photo on homepage

Hi,

Im new to dolphin i would greatly appreciate any guidance on how to place profile photo on the home page. i have created a php block and copied the code from the profile page but the block does not show.

Quote · 25 Jul 2010

You copied what code from the profile page? Because there really is not any specific piece of code in profile.php that renders just the profile photo.

https://www.deanbassett.com
Quote · 25 Jul 2010

This is as close as i can get. Which is to display the Profile Photo block from the profile page. It will look exactly as it does on the profile page.

Place this code in a php block.

$iPID = (int)$_COOKIE['memberID'];
if ($iPID) {
$aParams = array();
$aParams['PID'] = $iPID;
$aParams['DisplayPagination'] = 1;
$aParams['DisplayLink'] = 1;
return BxDolService::call('photos', 'profile_photo_block', array($aParams), 'Search');
}

https://www.deanbassett.com
Quote · 25 Jul 2010

Thanks Deano92964,

The problem im having now is resizing. I have modified the css code in modules/boonex/photos/templates/base/css/search.css to

.viewSwitchFile {
margin: 10px auto;
text-align: center;
border: 1px solid #CCCCCC;
width:300px;

and modules/boonex/photos/templates/base/swithcher_unit.html to

<div class="mainInfo" style="width:296px;">

with no success. Please advise

Quote · 26 Jul 2010

I came across the need to just put a profile image into a php block.  I found this code worked for me.  I hope it helps.

 

$iPID = $this->oProfileGen->_iProfileID;

$pImage = get_member_icon($iPID, 'left');

echo $pImage;

 

 

Regards,

Bob

Quote · 21 Mar 2012
 
 
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.