Ok, i do it to my self for the featured members and to upgrade the woman member in one shot .
Here what i do :
first add 3 new language key :
_adm_btn_mp_featured - description i use : Make featured
_adm_btn_mp_defeatured - description i use : Delete featured
adm-mp-wgold - description i use : Woman Gold ( the name of yours membership level for the woman)
after that open the file : administration>profiles.php, inside the function PageCodeMembers($sDefaultCtl = BX_DOL_ADM_MP_CTL, $sDefaultView = BX_DOL_ADM_MP_VIEW) {
after the line : 'adm-mp-delete' => _t('_adm_btn_mp_delete'), add this :
'adm-mp-featured' => _t('_adm_btn_mp_featured'),
'adm-mp-defeatured' => _t('_adm_btn_mp_defeatured'),
'adm-mp-wgold' => _t('_adm_btn_mp_wgold'),
(This create the button on the page adminstration>members.)
Inside the //--- Process Actions ---//
after the line :
} else if(isset($_POST['adm-mp-delete']) && (bool)$_POST['members']) {
foreach($_POST['members'] as $iId)
$bResult = profile_delete((int)$iId);
add :
} else if(isset($_POST['adm-mp-featured']) && (bool)$_POST['members']) {
foreach($_POST['members'] as $iId)
$GLOBALS['MySQL']->query("UPDATE `Profiles` SET `Featured`='1' WHERE `ID` IN ('" . implode("','", $_POST['members']) . "')");
} else if(isset($_POST['adm-mp-defeatured']) && (bool)$_POST['members']) {
foreach($_POST['members'] as $iId)
$GLOBALS['MySQL']->query("UPDATE `Profiles` SET `Featured`='0' WHERE `ID` IN ('" . implode("','", $_POST['members']) . "')");
} else if(isset($_POST['adm-mp-wgold']) && (bool)$_POST['members']) {
foreach($_POST['members'] as $iId)
db_res("INSERT INTO `sys_acl_levels_members` ( `IDMember` , `IDLevel` , `DateStarts` , `DateExpires` , `TransactionID` )
VALUES ('$iId', '4', '$date_today', NULL , '')");
You must to change the number 4 with the number of your "Woman Gold" membership level (you can found it from the DB table sys_acl_levels)
I test it and work, i hope work also for others...
...