Memberships

I have the standard membership, but when a member verifies, they jump to verified member.

The problem is, if they buy a 30 day or 90 day membership and it expires, they drop back to a standard membership instead of their verified membership.

I would like some help fixing this where, when a member is NOT a standard and they jump to a different membership, when that membership expires, they go back to the previous membership.

If I have to, I can check the database to see if they are a verified member and apply that membership when their purchased membership expires.

I am just not sure where to start.

Any ideas?

 

http://www.mytikibar.com
Quote · 30 Jan 2014

I fully understand your issue and have to deal with it myself. It is just one of those things that are wrong with the memberships (just lik upgrading a membership does not reset the counter). It is an issue that is high on my list to work on and once I have a solution, I'm more then happy to share this.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 30 Jan 2014

I'll be poking around in the code too.

I just need to find where the membership expires, then check the verified member database for that ID, and if they match assign them as a verified membership instead of the default one.

I use Modzzz verified member mod and modified it so that when they become verified they become a verified member.  I need to poke back in the code to see what I did.  LOL!

http://www.mytikibar.com
Quote · 30 Jan 2014

is your Verified member a purchaseable membership option. By default, a member is changed to a Standard Membership when current membership expires - but this does not change the fact that they are verified. Unless you have created a new membership type called verified and you are trying to get them to switch to that level.

caredesign.net
Quote · 30 Jan 2014

 

I'll be poking around in the code too.

I just need to find where the membership expires, then check the verified member database for that ID, and if they match assign them as a verified membership instead of the default one.

I use Modzzz verified member mod and modified it so that when they become verified they become a verified member.  I need to poke back in the code to see what I did.  LOL!

How funny, that is exactly what I did, amongst other things like build-in sms payments.

The issue however is in the membership code and not in the verify module. I looked at it a couple of days a go and need to modify where it deletes the rows from the db.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 31 Jan 2014

Well, I know setMembership allows you to set a membership, I just cannot find where the code is when the membership expires! 

http://www.mytikibar.com
Quote · 31 Jan 2014

 

Well, I know setMembership allows you to set a membership, I just cannot find where the code is when the membership expires! 

 Not just that. Look a bit deeper in the code...

 

    $iDateStarts = time();
    if(!$bStartsNow) {
        /**
         * make the membership starts after the latest membership expires
         * or return false if latest membership isn't Standard and is lifetime membership
         */
        if(!is_null($aMembershipLatest['DateExpires']))
            $iDateStarts = $aMembershipLatest['DateExpires'];
        else if(is_null($aMembershipLatest['DateExpires']) && $aMembershipLatest['ID'] != MEMBERSHIP_ID_STANDARD)
            return false;
    } else
        db_res("DELETE FROM `sys_acl_levels_members` WHERE `IDMember`='" . $iMemberId . "'"); //delete previous profile's membership level

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 31 Jan 2014

I found it in that area, I just checked if modzzz had a table then query for the memberid.  if it was there, made their membership level match what my verified membership level is.

http://www.mytikibar.com
Quote · 1 Feb 2014
 
 
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.