cvak
Forum Replies Created
-
Forum: Plugins
In reply to: [Membership 2] Expired Subscription removeHi Predrag,
I need to change status automatically. I thought that it should be set in settings somewhere to change automatic. I have worked with API many times so it will not be a problem to do some cron job.
Thank you for everything. You can close the topic.
Best,
ERikForum: Plugins
In reply to: [Membership 2] Expired Subscription removeHello,
I disable Multiple Membership, but still had expired status in fb after ended.
My next question is; it is posible that after expired change status to deactivate?
Thank you,
ErikHi Cory,
I had this value in wp-config.php
define( 'COOKIE_DOMAIN', 'primarius.org' ); define('ADMIN_COOKIE_PATH', '/'); define('COOKIE_DOMAIN', 'primarius.org'); define('COOKIEPATH', ''); define('SITECOOKIEPATH', ''); define( 'COOKIEHASH', 'asdf_arbitrary_strisng' ); define( 'DOMAIN_CURRENT_SITE', 'primarius.org' );I still have a problem. Any new hint?
Thank you.
Forum: Plugins
In reply to: [Membership 2] Expired Subscription removeHi Predrag,
I had active Multiple Membership, now I disable and run some test for 1,2 days.
If users membership is expired then they cant access to fb content only to f0.
Thanks for information about addo-ons. I will be reported after a few days.
Forum: Plugins
In reply to: [Membership 2] Expired Subscription removeHey Bojan,
I am fine tnx, you?
I have 2 memberships, f0 and fb. Every user have membership fb with finite access, and when membership end go to f0, but then user have 2 membership(look at picture below) one acitve and one expired. My question is how can delete/remove fb membership (one who is expired) or change it to cancelled(ofc everything must be automatic)
Thank you.
Image; http://prnt.sc/b4mi3o
ERik
Forum: Plugins
In reply to: [Membership 2] Membership user role merge HELPHey Bojan,
I have users without memberships, and I want to add him through php code.
I use the following php code for adding membership.MS_Plugin::$api->get_member($user_id)->add_membership($membership_id);This code worked just fine for me, but after that I want to add another(change) membership for user( I use upper code), but when I want get user memberships, I get some different membership ID.
What I do wrong?
P.S. If I add membership to user(who dont have any) through wp-admin(no php code) and then work with php codes(add_membership, drop_membership,…) it WORKS!
Forum: Plugins
In reply to: [Membership 2] Membership user role merge HELPHello Bojan!
Thanks for your answer.
I solved that problem but there has been a new problem.
When my script add (after first login) new membership to user, it change ID to something new.Example: User has membership id=”2792″, after login user get membership id=”2319″.
script code:
MS_Plugin::$api->get_member($user_id)->drop_membership(2792); MS_Plugin::$api->get_member($user_id)->add_membership(2319);In Membership 2 plugin is user membership id=”2319″, which is OK, but when I debug it write that user membership id is “2348”( I dont have any membership with that role)
What I do wrong?
p.s.
At first when I create new member script add successful membership id!
MS_Plugin::$api->get_member($user_id)->add_membership(2792 );