Open SneakyDave opened 10 years ago
I had a feeling it would be too simplistic. My initial pass at that one was mainly to get the feature that used to be in 1.x "back" into 2.x. There needs to be some kind of behavioral setting. Hmm. something like
# Options are zero, non-zero, non-blank...
look-for:
I imagine new options will present themselves as time goes on. :)
@iain-davis Do you think this is a possibility of being added in? I would love to see this feature added, and it would save me the cost of adding a paid XenForo add-on to my site. I'd happily compensate you instead if this was added in as a native feature to CB. :)
The XenForo Avatar is stored in the file system, rather than the database. The avatar information is stored in the xf_user table, with the avatar_date, avatar_width, and avatar_height columns.
The only way to determine if a user has an avatar (I believe ) is to check the avatar_date column on that table. If the date is greater than 0, then the user has an avatar. If the date is 0, then no avatar has been chosen.
This doesn't quite work with CommunityBridge, as its avatar configuration simply looks for "any data" in the specified table and column, so any column with 0 as the avatar_date would count as having an avatar.
I assume you could change this to look for a "non zero" value, or include a configuration parameter to indicate that the avatar-column is numeric?