Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Default avatar no longer showing correct gender

10 years 10 months ago
  • Rik's Avatar
    Topic Author
  • Rik
  • Offline
  • Junior Boarder
  • Posts: 114
  • Thank you received: 3
Licenses:
JomSocial Active Publisher Expired Socialize Expired

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.

10 years 10 months ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 10 months ago
  • Rik's Avatar
    Topic Author
  • Rik
  • Offline
  • Junior Boarder
  • Posts: 114
  • Thank you received: 3
Licenses:
JomSocial Active Publisher Expired Socialize Expired

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?

10 years 10 months ago
Licenses:

Hi, Rik.

Please, edit your first post and add PHPmyAdmin credentials. I'll take a look into db.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 10 months ago
  • Rik's Avatar
    Topic Author
  • Rik
  • Offline
  • Junior Boarder
  • Posts: 114
  • Thank you received: 3
Licenses:
JomSocial Active Publisher Expired Socialize Expired

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

10 years 10 months ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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;
        }

I hope it will fix this issue

Thank you

10 years 10 months ago
  • Rik's Avatar
    Topic Author
  • Rik
  • Offline
  • Junior Boarder
  • Posts: 114
  • Thank you received: 3
Licenses:
JomSocial Active Publisher Expired Socialize Expired

Dimas:

That fixed the problem.

Thank you. -- Rik

10 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

You're welcome :)

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW