PHP call to get members Avatar

The program ask for

$upic = '';                 // Current user profile picture URL (leave blank for none)

we were using

$upic = get_member_pic($iID);      ... after adding

function get_member_pic( $ID ) {

    return $GLOBALS['oFunctions']->getMemberAvatar( $iId, $sType = 'small' );

}

to the design.inc.php file

 

is there another way to tell it to grab the users avatar?

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 7 Nov 2014

It's correct. But you can do it in one line without creating a separate function. Like so.

// This one gets the 32x32 small avatar.
$upic = $GLOBALS['oFunctions']->getMemberAvatar( $iId, $sType = 'small' );

// This one gets the 64x64 standard size avatar.
$upic = $GLOBALS['oFunctions']->getMemberAvatar( $iId, $sType = 'medium' );

https://www.deanbassett.com
Quote · 8 Nov 2014
 
 
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.