Change the membership level...

Hi to all, it's good that in the administration dashboard you can see how many man and woman members it's, but if i want to change at all the woman the membership level i can not do in one shot?

I have to do one by one ? Or is some function i don't found...

Or it's possible to add one botton with this function ?

Thank you...

...
Quote · 3 Jan 2010

Good Question, would love to hear and answer and would love a option that would do that in batch!

Quote · 3 Jan 2010

No ideas... ?

...
Quote · 5 Jan 2010

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...

...
Quote · 10 Jan 2010

sounds useful, thanks

has anybody else tried it?

Quote · 10 Jan 2010
 
 
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.