Bug when avatars are to be used only by Registered Users

uberum - November 24, 2008 - 00:29
Project:Avatar Selection
Version:6.x-1.5
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:won't fix
Description

I faced a problem where the sympton was the avatars didn't show up in the profile's users. After investigating and thx to other bug I reliazed that the piece of code

db_result(db_query("SELECT count(*) FROM {avatar_selection} avs LEFT JOIN {users} u ON u.picture = concat('%s/', avs.avatar) LEFT JOIN {avatar_selection_roles} avsr ON avs.aid = avsr.aid WHERE u.picture IS NULL AND avsr.rid IS NULL OR avsr.rid IN (". db_placeholders($user_roles) .") ", $dir, $user_roles));

And more specifically
IN (". db_placeholders($user_roles) .")

is replaced by the value 1, as the code number for the authentified users.

But the Role users for Authentified users is number 2.

I tested my theory just allowing the avatars be used by all roles (anonymous and authentified) and now works

In other words, in my Drupal 6.4 + Postgresql and avatar_selection 1.5 , with only roles per default (anonymous and authetified) , if I set the avatars to be seen only by authentified users, they don't appear neither for users nor for the admin user despite any config.

#1

stella - February 9, 2009 - 00:42
Status:active» postponed (maintainer needs more info)

Sorry for the delay in responding. I've just tested this against the latest dev version and I can't reproduce the issue. Is it still happening for you?

#2

stella - April 16, 2009 - 16:57
Status:postponed (maintainer needs more info)» won't fix

Marking as won't fix as no more information forthcoming. Please feel free to reopen if it's still an issue with the latest dev version.

cheers,
Stella

 
 

Drupal is a registered trademark of Dries Buytaert.