sex icon below album preview

I need to show sex icon of author below his photo album. For photo i did it so:

BxBaseSearchResultSharedMedia:

 

...

$this->aCurrent = array(

   'ownFields' => array('ID', 'Title', 'Uri', 'Date', 'Time', 'Rate', 'RateCount'),

            'searchFields' => array('Title', 'Tags', 'Description', 'Categories'),

            'join' => array(

                'profile' => array(

                    'type' => 'left',

                    'table' => 'Profiles',

                    'mainField' => 'Owner',

                    'onField' => 'ID',

                    'joinFields' => array('NickName', 'Sex')

....

Added this function:

function genSexIcon($aData) {

switch($aData) {

case 'male': 

return getTemplateIcon( 'male.png' );

case 'female':

return getTemplateIcon( 'female.png' );

case 'men': 

return getTemplateIcon( 'male.png' );

case 'malefemale': 

return getTemplateIcon( 'MF.png' );

default :

return getTemplateIcon( 'tux.png' );

}

    }

....
        // from
        $aUnit['fromLink'] = getProfileLink($aData['ownerId']);
        $aUnit['from'] = $aData['ownerName'];
        $aUnit['sexicon'] = $this->genSexIcon($aData['Sex']);
.....
And inserted it to browse_unit. And it's work.
But i don't understand how to do same for AlbumPreview. Help me, please!
Quote · 28 Feb 2012

Up )

Quote · 1 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.