Not standart membership for one of sexes upon registration.

Hi, the aim is to give to one of sexes (female in my case) not standart (call it VIP) membership upon registration.

open profile_activate.php (dolphin root derictory)

find: (there are 2 similar lines in the file, you need FIRST)

 //Promotional membership
                if (getParam('enable_promotion_membership') == 'on')

and replace it with:

// Promotional membership
            if (getParam('enable_promotion_membership') == 'on' && $p_arr['Sex'] != 'female')

then after

{
                $memership_days = getParam('promotion_membership_days');
                setMembership( $p_arr['ID'], MEMBERSHIP_ID_PROMOTION, $memership_days, true );
            }

add

if ($p_arr['Sex'] == 'female')
            {
                setMembership( $p_arr['ID'], XXX, YYY , true, null );
            }

Where XXX - ID of memb level that you want to give from sys_acl_levels from your DB

YYY - Duration in days (0 for endless)

So when woman confirm her registration via e-mail, she gets endless VIP account in my case.

 

IF COUPLES ENABLED ON YOUR SITE, MAKE ALL THIS FOR COUPLES TOO (FEW LINES LOWER IN THAT FILE).

 

I THINK THAT THIS METHOD WORKS ONLY WITH E-MAIL CONFIRMATION ENABLED (LIKE ON MY SITE), BUT I'M NOT SURE. TEST YOUR SELF.

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