Power user quota.

alt=
DannyA
@dannya
10 years ago
584 posts
I'm getting some strange behavior on power user quotas.

The power user is not able to create new profiles, although his quota setting permits it.
If i browse quotas, it shows the account is in the power user quota.
However, if i go to the profile settings of the power user's account, the 'profile quota' field is blank and nothing shows when i drop down; so its like the account is in the right quota, but the PROFILE of the power user is not.
updated by @dannya: 08/16/14 12:53:20PM
brian
@brian
10 years ago
10,148 posts
Make sure you have updated to the latest user and profiles - there are some fixes and changes in there related to the Power user setup that should fix it up.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
I believe i do

Accounts 1.2.3
Profiles 1.2.23
updated by @dannya: 07/03/14 11:13:10AM
brian
@brian
10 years ago
10,148 posts
You're behind by a version on each...


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
I just updated. Is the marketplace behind? (Not sure if you responded before I made the update)
updated by @dannya: 07/03/14 11:17:21AM
brian
@brian
10 years ago
10,148 posts
No it's not behind - you can see the versions in the marketplace:

https://www.jamroom.net/the-jamroom-network/networkmarket/44/user-accounts
https://www.jamroom.net/the-jamroom-network/networkmarket/42/user-profiles


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
Ahh sorry - looks like you edited your post after I posted my followup. There's no issues that I am aware of in the Power User setup now - it's working correctly here.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
Note also, I just created a new power user account. When I try to update the quota i get an error:

Invalid Quota ID - please select from the list of allowed Quotas IDs

However now, there isn't even a way to select. I assume this is because power users can only create one type of profile in my system. But nonetheless, I'm still getting the problem that the profile is not associated with the power user quota; so i can't create any new artist profiles.
brian
@brian
10 years ago
10,148 posts
andersda:
Note also, I just created a new power user account. When I try to update the quota i get an error:

Invalid Quota ID - please select from the list of allowed Quotas IDs

However now, there isn't even a way to select. I assume this is because power users can only create one type of profile in my system. But nonetheless, I'm still getting the problem that the profile is not associated with the power user quota; so i can't create any new artist profiles.

Yeah if the allowed quotas for a power user is only 1, then it does not show the selector. Make sure you go into your power user quota settings and select the allowed Quota then save - it could be it was setup on a deleted quota.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
No. no quota was deleted. The account actually shows up in the quota browser in the right quota. And if I go in as admin, i can actually see the quota selector in the profile settings; and it shows the right quota. But if i'm logged in as the power user, it does not behave as such. I can't create new users and i cannot update my profile because of the invalid quota id error.

PM me if you want credentials to see for yourself.
updated by @dannya: 07/03/14 11:59:04AM
brian
@brian
10 years ago
10,148 posts
I can't replicate here - make sure you have a stock install I can check on, as I know you've done a lot of customizations to your site and you can send it to me at support [at] jamroom [dot] net.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
Just sent. Thanks
alt=
DannyA
@dannya
10 years ago
584 posts
I don't think you tested with the label account.
1 log in with the label account.
2. Go to the lable profile page.
3. In the header where it has artists, you should have a '+' allowing you to create a new artist profile. IT IS NOT there.
4. If you go to your profile settings, and try to make a change, you cannot. You get an error. It thinks that you are part of the member quota (4).
5. If you log in as admin, and go to the quota browser, you will see that there is nobody in the member quota.
brian
@brian
10 years ago
10,148 posts
I have just uploaded a new version of the Profile module that fixes the "invalid quota_id" error you can get as a power user when trying to add an image or update the profile settings.

There are no issues I can see that prevent a power user from creating other profiles. There is no "+" sign showing on the profile pages (that will be added i future skin updates) - for now you need to go to the "profile" tab as a power user and click on the "create new profile" button - you'll be able to create additional profiles there.

In your custom skin, in the "profile_header.tpl" file you need to update the check so it allows the + sign to show for power users as well as admins. Change:

{if jrUser_is_admin()}
    {jrCore_item_create_button module="jrProfile" view="create" profile_id=$_profile_id title="Create new Profile"}
{/if}

To this:
{if jrUser_is_admin() || jrUser_is_power_user()}
    {jrCore_item_create_button module="jrProfile" view="create" profile_id=$_profile_id title="Create new Profile"}
{/if}

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags