I'm running my Q2A setup with WordPress integration (at http://gendercentre.com/qa/) and I'm having a problems with:
-
lack of display of a default avatar for registered users, and
-
the displaying of the incorrect avatar (i.e. the Gravatar avatar) for my admin user.
I'm wondering if the issue is to do with Q2A WordPress integration.
With the standalone Q2A (i.e. without WordPress integration), there is the 'qa_users' table, in which a reference to the user's avatar (the 'avatarblobid') is stored.
But with WP integration, Q2A instead makes use of the 'wp_users' and 'wp_usermeta' tables in the database. Thus, in my 'usermeta' table, under the entries with, say, user_id 183 (the id of our admin user), I can see an entry where the value of the meta_key field is 'simple_local_avatar'. If I then select the 'Edit' option for that entry, I can see, in the 'meta_value' field, the URL of the avatar that I recently uploaded to that user.
However, from looking at the Q2A PHP source, it seems that permission to allow Q2A users to use a Gravatar avatar and/or upload their own avatar is specified via the 'flags' column in the 'qa_users' table - a table in the _q2a database, which is only used in the standalone Q2A setup. Since, in a WP-integrated set-up, an equivalent 'flags' column is not available in the wp_users or wp_usermeta tables, I'm wondering if Q2A might not know if uploaded avatars are allowed, and if so, where uploaded avatars can be found.