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.

2 bugs with gender field

10 years 4 months ago
  • Zdeněk's Avatar
    Topic Author
  • Zdeněk
  • Offline
  • Fresh Boarder
  • Posts: 64
  • Thank you received: 3
Licenses:
JomSocial Expired

Hi guys,
i found this 2 bugs with the new gender field

1st (in backend)
In JomSocial Dashboard, Demographic section does not appear pie chart

solution:
open "administrator/components/com_community/models/users.php"
on lines 441-442 change
from

$query = 'SELECT SUM(CASE '.$db->quoteName('value').' WHEN '.$db->Quote('Male').' THEN 1 ELSE 0 END) as Male, '.
					'SUM(CASE '.$db->quoteName('value').' WHEN '.$db->Quote('Female').' THEN 1 ELSE 0 END) as Female '.
to
$query = 'SELECT SUM(CASE '.$db->quoteName('value').' WHEN '.$db->Quote('COM_COMMUNITY_MALE').' THEN 1 ELSE 0 END) as Male, '.
					'SUM(CASE '.$db->quoteName('value').' WHEN '.$db->Quote('COM_COMMUNITY_FEMALE').' THEN 1 ELSE 0 END) as Female '.


2nd (in frontend)
In User profile > Edit profile (index.php?option=com_community&view=profile&task=edit)
Gender type is always "male/female", even if in lang file is COM_COMMUNITY_MALE/COM_COMMUNITY_FEMALE translated

solution:
open "components/com_community/libraries/fields/gender.php"
on line 49 change
from
$html .= '<option value="'.$val.'" '.$selected.'>'.JText::_($key).'</option>';
to
$html .= '<option value="'.$val.'" '.$selected.'>'.JText::_($val).'</option>';

P.S.: why do you use this?
$options = array("male" => "COM_COMMUNITY_MALE", "female" => "COM_COMMUNITY_FEMALE");

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

Hi,

Thank you for your reporting we will report this to our dev.

10 years 3 months ago
Licenses:
JomSocial Expired

Is the problem solved?
I have problem in german language. Database shows "COM_COMMUNITY_FEMALE" and "COM_COMMUNITY_MALE" in field FIELD_GENDER. German language file has entry COM_COMMUNITY_FEMALE=weiblich ....
but profiles don't show gender. I have explained the changes described here but the problem persists.

Greets Danny

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

Hi Danny,

We will be fixed in next package

10 years 3 months ago
Licenses:
JomSocial Expired

Thank you. With Changes of Zdeněk problem is not solved in german language.
Profiles don't show genders.

Another problem is field country. In german list all countries are sorted and in german language but this list is not in use in registration formular. If I change countries in english language to german strings there is no effect in registration form, always countries to select is in english. In profiles is shown german language of country. On edit profile page is english language of countrys to select.

Greats Danny

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

Hi Danny,

We aware the country issue, I will try raise this to our developer.

thx

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