In the past, each user had a default avatar which showed either a male or female profile. That is no longer working on our site and all default avatars are male only even though the user has selected female as their gender.
Any ideas why this stopped working?
Thanks. -- Rik
PS: Please be sure to use the "Misc Information" instructions to access our admin area.
Hi, Rik.
It's because you use select type field instead of gender type field for gender in Profile (Backend -> Components -> JomSocial -> Profiles -> Customize Profile).
System doesn't recognized entered values.
Change Gender field from select to gender type... and ask users to set their gender again... or change/run sql query in db.
I don't understand. The value stored in jos_community_fields_values.value for field_id = 2 (Gender) is either Male or Female. And yet if the value = Female, JomSocial is still showing the default avatar as Male. What needs to be changed in the database?
Hi, Rik.
Please, edit your first post and add PHPmyAdmin credentials. I'll take a look into db.
Michal:
We don't have phpmyadmin on our site. I handle all mysql access via an off-server client program (Navicat).
All the same, the values stored are simply the text values of Male or Female. Should they be 0 and 1 or something else? I can easily run a query to change them if I know what value to change those rows to?
Thanks. -- Rik
Hi, Rick.
I tested on my installation. In db you could use "male" or "Male" or "COM_COMMUNITY_MALE" - all should work.
So now I'm out of clues what is going on... so I'll add developer to this thread.
Hi Rik,
Please you open this file components/com_community/helpers/url.php, add this code after line 112 :
if(strpos($file,'watermarks')){
$template = new CTemplateHelper();
$asset = $template->getTemplateAsset($default, 'images');
$uri = $asset->url;
return $uri;
}
You're welcome :)