Greetings,

I'm currently having an issue with the avatar selection screen. On the first page I can select avatars with a green border appearing around the image as it is supposed to be. But as soon as i go to the second or any other pages, radio buttons appear next to the avatar images instead of the green border for selection. When I then go back to the first page, the radio buttons still won't disappear. Only after refreshing the whole page, the green border reappears but refreshing the page always brings me back to the first page of avatar images.

See image in attachment for better explanation.
I am using drupal 6.9 with avatar selection 6.x-1.5.

Thanks in advance.

CommentFileSizeAuthor
avatarselect.jpg36.02 KBpaddes

Comments

paddes’s picture

Title: Avatar selection & radio buttons on second, third, roufth etc... pages » Avatar selection & radio buttons on second, third,fourth etc... pages
tsi’s picture

Same issue here, subscribing !

HS’s picture

+1

stella’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this issue I'm afraid. Can you tell me what browsers / platforms this issue occurs on? Does it happen on the 'manage avatars' administration page, or on the user edit form, or on both? Can you tell me what your settings are on admin/settings/avatar_selection? Can you try the latest dev version to see if that fixes the problem?

If the issue persists, can you provide me with a link to your site where I can investigate the problem? My contact form is enabled if you wish to do so privately (just remember to quote issue number).

Cheers,
Stella

stella’s picture

No more information received, so marking as "won't fix". Please feel free to re-open if this is still an issue and you can answer the questions above.

Cheers,
Stella

tlogan’s picture

Version: 6.x-1.5 » 6.x-1.6
Status: Postponed (maintainer needs more info) » Active

I'm seeing this also. It happens on the user registration page and the user edit form. The Manage Avatars page displays the images in 1 column down the page and has radio buttons even on the first page.

Windows XP SP3
Drupal version: 6.13
Avatar_Selection: 6.x-1.6 & 6.x-1.x-dev
Themes Tested: Garland & Acquia Marina
Browsers:
  Firefox 3.5.2
  Safari 4.0.3
  Internet Explorer 8.0.6001.18702
  Opera 9.64
  Chrome 4.0.202.0
Site: http://www.cubshavemorefun.com 
Settings: 
   30 avatars/page 
   Unique Avatars enabled 
   (I have experimented with changing each setting and see no difference)
stella’s picture

I can reproduce the issue on your site, but not on my own. I'm really not sure why it's happening at the moment. Will try and investigate further.

stella’s picture

Can you check the 'system' table in your Drupal database and tell me the weight of the 'avatar_selection', 'user' and 'system' modules? Can you also try the latest dev version of the module?

stella’s picture

Status: Active » Closed (won't fix)

It's been over a month of inactivity so marking as "won't fix". Please feel free to re-open if you can provide answers to the questions asked or more info.

Cheers,
Stella

saipas’s picture

Hi stella,

The issue comes from this piece of code:

if (Drupal.jsEnabled) {
  $(document).ready(function () {

    // handle radio buttons
    radio_button_handler();

    // handle image selection
    image_click_handler();
  });
}

Since document.ready is not called when when browsing through the pages, the function hiding the radio buttons is not called either.

It does exactly the same thing when inserting the alter select block into a collapsed fieldset.

I'm looking at the issue now, will post if I find a fix.

Regards,
saipas

saipas’s picture

Found a trick: just add radio_button_handler(); at the end of your pager function.

I couldn't find a solution when the block is inside a collapsed fieldset, so I just added this to my css:

div.user-avatar-select input[type="radio"] {
	display: none;
}
Fidelix’s picture

I have the same issue.

I can provide any details that are requested, and i can give full acess on my drupal installation.

I will try to use the tips at #11 and then post feedback here.

EDIT: How do i use this? saipas?

jen.c.harlan’s picture

Same issue here. I have fewer avatars than most probably, so I just made them all show up on the first page to fix the problem for the moment, but when I get more, I will definitely need to be able to have them on more than one page, and I cannot select an avatar that is on page 2 or beyond.

-Jen