solved Move profiles to a different quota

alt=
@andrusito
8 years ago
302 posts
Hello,

I have more than 1000 profiles in my 'ARTISTAS' quota. I want to move about 400 to 'OYENTES' quota. How can I do that in a massive way?

I can't edit one by one, because it is 400 profiles aprox. Think about the time it might take.

Thanks-
updated by @andrusito: 07/27/16 03:23:09AM
paul
@paul
8 years ago
4,326 posts
Is there a criteria or profile value for the profiles that you want to change the quota of? If so, you might be able to search and change the profiles' quota directly on the database.
Alternatively, checkout the Batch Edit module - https://www.jamroom.net/the-jamroom-network/networkmarket/236/batch-item-editor
hth


--
Paul Asher - JR Developer and System Import Specialist
alt=
@andrusito
8 years ago
302 posts
All profiles I want to move have a dot sign (.) in the middle of their name. Eg:

Graciela.Aleman
Daniel.Castro
Antonio.Ortiz-Espinosa

I've take a look at the database in phpmyadmin, but not sure how to move the profiles from there.
paul
@paul
8 years ago
4,326 posts
Install the Batch Edit module and use that.
Select 'profile_name' and 'profile_quota_id' as fields to edit.
Then set it to show 50 or so items per page, then do a search for '.'
Set the profile_quota_id to what you want it to be for every result.
Job will be done in a few minutes :-)


--
Paul Asher - JR Developer and System Import Specialist
alt=
@andrusito
8 years ago
302 posts
I did it, thanks Paul.

Another question. I'd like to deactivate or move to another quota all profiles that don't upload an mp3 over the next 5 days after they signup.

Is that possible? I think it was in JR4.

Thanks Paul.-
paul
@paul
8 years ago
4,326 posts
Fairly straightforward to do with a custom module, but I don't think there is any way to do that by default.


--
Paul Asher - JR Developer and System Import Specialist
alt=
@andrusito
8 years ago
302 posts
Oh, what type of module?
paul
@paul
8 years ago
4,326 posts
It would be a module that just 'listened' for the 'daily_maintenance' event (Fired once a day after midnight server time) and when received would search all profiles more than five days old with no audio items. Any found would have the appropriate action taken on them. MOdule creation documentation here - https://www.jamroom.net/the-jamroom-network/documentation/development/26/creating-a-module


--
Paul Asher - JR Developer and System Import Specialist
alt=
@andrusito
8 years ago
302 posts
Thanks Paul,

I'll post my results here if i can do that.
paul
@paul
8 years ago
4,326 posts
OK - Let us know how it goes and if you need any help with the coding.


--
Paul Asher - JR Developer and System Import Specialist

Tags