hi there,

i just upgraded the avatar selection 5.2x-dev version but somehow i cannot see the selection button anymore.
the reason i upgraded was because i wanted a speicific roles to be the only one who can use the new avatars.
i have already enabled "access avatars" and "access content but still unable to see the selection buttons.

please help
thanks

Comments

stella’s picture

Assigned: Unassigned » stella

I'm not totally sure what you mean by "selection buttons". If this is on the edit user account page, the user should be able to click on the picture in order to select it.

Cheers,
Stella

CoffeeCraze’s picture

Title: the selection button besides the avatar does not show » i tries that

before there was the selection button besides the avatars.
i tried clicking the avatar but nothing happens.

am i doing something wrong with the permissions? i've already enable access avatar but i did not enable administer avatar

thanks

stella’s picture

What browser are you using? You will need to have javascript enabled on your browser. If you do and it still fails to work, please send me a link to your site where I can try it out.

Cheers,
Stella

stella’s picture

Title: i tries that » the selection button besides the avatar does not show
CoffeeCraze’s picture

Title: the selection button besides the avatar does not show » my address is

i'm using firefox and javascript is enabled.

www.enam-wangja.info is our address. it's a fansite.
we require new members to choose a avatar but now they can see the avatars but cannot select them.

thanks

stella’s picture

Title: my address is » the selection button besides the avatar does not show

Hi,

First off, could you please stop changing the issue title / subject? Just leave it set to the original text. Thanks.

I tested out your site and it all works fine. I'm using Firefox 2.0.0.6 on Windows XP, with javascript enabled. When I hover over an image, a green box appears around the avatar, and when I click on one the box turns to red.

So there is nothing wrong with your installation. It looks like a problem with your browser. Maybe double check that javascript is enabled, and if you have the web developer toolbar plugin, ensure that CSS is enabled. Do any errors / warnings appear in Firefox's error console? (Tools >> Error Console).

Cheers,
Stella

CoffeeCraze’s picture

sorry about the title.

the error console shows errors that have to do with various css.
how do i ensure that my browser's javascript is properly enabled.

thanks

stella’s picture

You can check whether or not you have javascript enabled in Firefox by going to "Tools >> Options". Click on the "Content" tab of the config window and you should then see a checkbox for enable javascript there. If it's not checked, please do, save and then retest.

Are the css errors avatar_selection related? You will know that they are if the css filename given is "avatar_selection.css".

Cheers,
Stella

CoffeeCraze’s picture

no they are not related... and i have enabled javascript in firefox.
for now i will tell my members to change their avatar using IE since i just tried that and it works.

thanks for your help

stella’s picture

Hi,

So javascript was disabled? It works fine for me in Firefox 2.0.0.6. Are you using a different version of Firefox? It should work fine for all browsers, including Firefox, so I'm inclined to think it's a problem with your particular setup. Maybe try Firefox on a different machine to test.

Cheers,
Stella

kpaul’s picture

Hi, I'm using Firefox 2.0.0.6 as well (WinXP) and clicking on them does nothing for me.

Maybe it's the jscript interfering with another module me (and the other poster) has enabled?

Thanks.

kpaul’s picture

ah, found the problem, i think. if i turn off "Aggregate and compress CSS files:" under Performance in admin, it works as it should. if you turn "Aggregate and compress CSS files:" ON, it stops working.

i've noticed that before for some CSS things...

can anyone confirm?

-kpaul

stella’s picture

Enabling "Aggregate and compress CSS files" on the Performance admin page doesn't allow me to reproduce it on my test site. However, there may be some interference with the css of another module installed on the site. Can you send me the list of modules you have installed, any errors that appear in Firefox's Error Console and also the aggregated css file generated. The aggregated css file might be generated in your "files/css/" directory, if not, if you have the "web developer" toolbar plugin for Firefox you installed, you can access it via that.

Cheers,
Stella

stella’s picture

Sorry, I should have said, can you send me the aggregated css file from the edit my account page (with the avatar selection box appearing)?

Does this only happen on the edit my account page? Or does it also happen on the "manage avatars" config screen?

Cheers,
Stella

stella’s picture

Status: Active » Postponed (maintainer needs more info)
socki’s picture

Version: 5.x-2.x-dev » 5.x-2.1

Not positive this is the same problem, but I had a hard time initally getting the avatars to show up. The problem seems to be with the permissions given to any individual avatar.

Basically, on the configuration screen, and any other individual avatar if you don't select a user role, that image should be visible to everyone... correct? The problem seems to be around line 219:

if (in_array($rid, $avs_access)) {

The issue is that $avs_access always contains at least one element due to the way that it is being split up. Even if NO specific permissions are set on an image, you will result in an array looking like:

Array ( [0] => )

A possible fix could be to change the following two lines as follows:

Line: 216

      $avs_access = ((trim($avatar->access) === "") ? FALSE : preg_split('/\s*,\s*/', $avatar->access));

and

Line: 219

        if (!$avs_access || in_array($rid, $avs_access)) {

Hope this helps.

stella’s picture

tjwnyc: that's actually a separate issue. This issue is about not being able select the avatar image, but the image itself is visible. Could you open a separate issue for this? In the meantime, I'll take a look.

Cheers,
Stella

stella’s picture

tjwnyc: actually that issue has already been fixed. Try out the dev version of the module.

Cheers,
Stella

stella’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Marking as "won't fix" as I'm still waiting on more info. Please re-open if you have more info to add.

Cheers,
Stella