Bulk Move subscribers to different Joomla Group?

  • vthomas
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 4 months ago #107296 by vthomas
My client has re-organized how it wants to assign subscribers to joomla user groups, based on the plan they are subscribed to. I need to take the current list of subscribers, and depending on which plan they are currently subscribed to, re-assign them to a sub-group of this original group (that they are currently assigned to).

I already changed the settings in each plan, so that new subscriptions will go into the correct group. But, how do you recommend I bulk transfer existing subscribers into the new groups? Is this possible now? If not, I think this would be a type of SQL action, and likely outside the scope of Membership Pro normal functions. Logic is 'if assigned to MPro plan id = 1, edit joomla user group to be group ID = 11.'

Thanks, Vicky

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 4 months ago #107307 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bulk Move subscribers to different Joomla Group?
Hi Vicky

There is a hidden trick which you can do that. Login to administrator area of your site, then access to this URL:

domain.com/administrator/index.php?optio...trigger_active_event

Doing that, the system will run onMembershipActive events for all active subscriptions (as if you just subscribed and made payment) and it should solve your concern

To be safe, make sure you make a full backup of the site database before running this URL

Regards,

Tuan
The following user(s) said Thank You: vthomas

Please Log in or Create an account to join the conversation.

  • vthomas
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 4 months ago - 7 years 4 months ago #107326 by vthomas
Oh, thank you - thank you - thank you!!
That worked great!
Just a comment for others ... it does add them to the group(s) as identified in the plan, "add to this group when subscribed" but did not remove them from any groups they were assigned to before running that URL.
However, then it was easy to bulk remove them from original groups that I had used for those plans. Vicky
Last edit: 7 years 4 months ago by vthomas.

Please Log in or Create an account to join the conversation.