Hi to all, i make my first modification for have the possibility to select few member from admin. and make them feautured or not (for eexample if you select all the woman profile, you can make or delete the featured in one shot).
Here what i do :
first add 2 new language key :
_adm_btn_mp_featured - description i use : Make featured
_adm_btn_mp_defeatured - description i use : Delete featured
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 two :
'adm-mp-featured' => _t('_adm_btn_mp_featured'),
'adm-mp-defeatured' => _t('_adm_btn_mp_defeatured'),
(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']) . "')");
I test it and work, i hope work also for others...
Now i will do the some for upgrade the membershp... but on the DB at the Profiles table, i don't found the Membershp...
Somebody can tell me where i can found the membership ?