I uploaded 128 new avatars via the bulk upload method. They were uploaded and displayed just fine. I limited the number of pictures on a page to 7, to avoid a cluttered look. Now my problem is that only the seven pictures on the first page are selectable. All the other pictures cannot be used as an avatar.

Comments

happyend-re’s picture

I have same problem. I don't know fixing it but I found one solution just for me: I hide in css the pager and I use unique avatars in Avatar selection preferences... This is not very good solution. Any ideas?

stella’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this I'm afraid. What are your module settings? What browser(s) does this happen on? Finally, can you try the latest dev release as that includes a number of fixes not included in the 6.x-1.6 release?

stella’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No updates in almost 4 weeks, closing. Feel free to re-open if you can provide more information.

crackattack’s picture

Version: 6.x-1.6 » 6.x-1.7
Component: User interface » Code
Status: Closed (cannot reproduce) » Needs review

I just installed version 1.7 and ran across this exact problem.
I noticed that if you pick an avatar on the first page and hit save, the page submits to the correct URL. However, if you navigate to page 2 or higher then select an avatar and hit save, the URL that is being submitted to has an invalid format. There is a ?page=[pagenumber] being appended to the end of the URL. So it was ending up with something like http://yoursiteurl/?q=user/1/edit?page=2

The URL should be http://yoursiteurl/?q=user/1/edit&page=2

In avatar_selection_pager.js, the fetchPage function contains
var action = url + "?page="+page;

I changed it to
var action = url + "&page="+page;

Now, selecting avatars from page 2 and up works fine.

stella’s picture

Status: Needs review » Fixed

Ah right, the existing code works with "clean urls" enabled, whereas you don't appear to have that feature enabled on your site, hence why I couldn't reproduce it. However, your solution doesn't work for the clean urls situation. I extended it a bit so it works for both scenarios. Fix committed and will be in the next dev release.

Status: Fixed » Closed (fixed)
Issue tags: -not, -Avatars, -selectable

Automatically closed -- issue fixed for 2 weeks with no activity.