You will need to edit the file /modules/boonex/profile_customise/classes/BxProfileCustomizeTemplate.php; note: make a backup of the file first in case of an oops.
Around line 600 find the function:
function _customPageBackground($sPage, $sTarget, $aVars)
scroll down until you find the position block arrary:
'position' => array(
'type' => 'select',
'name' => 'position',
'values' => array(
'default' => _t('_bx_profile_customize_default'),
'left top' => _t('_bx_profile_customize_top_left'),
'center top' => _t('_bx_profile_customize_top_center'),
'right top' => _t('_bx_profile_customize_top_right'),
'left center' => _t('_bx_profile_customize_center_left'),
'center center' => _t('_bx_profile_customize_center'),
'right center' => _t('_bx_profile_customize_center_right'),
'left bottom' => _t('_bx_profile_customize_bottom_left'),
'center bottom' => _t('_bx_profile_customize_bottom_center'),
'right bottom' => _t('_bx_profile_customize_bottom_right')
),
'value' => isset($aVars['position']) ? $aVars['position'] : 'default',
'caption' => _t('_bx_profile_customize_position'),
'attrs' => array(
'multiplyable' => false
),
'display' => true,
),
Just after the above, add this block of code:
'size' => array(
'type' => 'select',
'name' => 'size',
'values' => array(
'default' => _t('_bx_profile_customize_default'),
'10%' => '10%',
'20%' => '20%',
'30%' => '30%',
'40%' => '40%',
'50%' => '50%',
'60%' => '60%',
'70%' => '70%',
'80%' => '80%',
'90%' => '90%',
'100%' => "100%"
),
'value' => isset($aVars['size']) ? $aVars['size'] : 'default',
'caption' => _t('_bx_profile_customize_bck_size'),
'attrs' => array(
'multiplyable' => false
),
'display' => true,
),
Note: add the following language key:
_bx_profile_customize_bck_size
You also have to add the bits to the BxProfileCustomizerModule.php file so that it can handle the new case of background size.
in that file find: function _compileBackground($aParam)
Add your new attachment case:
case 'size':
$sParams .= 'background-size: ' . $sValue . ';';
break;