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.

Gender stats are not displayed since v3.2.0.7

12 years 3 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
Joomla : v3.3.1
JomSocial:v3.2.0.7
Socialize:v1.2.7
since the upgrade to v3.2.0.7, gender stats are not displayed anymore at the frontend, through the community jomsocial statistics module. See attached files in relations with, all the gender stats are missing. Was working in v3.2.0.5.
Can be seen on our live site. Log with user:Admin password same as described for JSupport.
Same issue at the backend: Demographic picture is blank, see also attached file.
Cheers,
L

Attachments:
12 years 3 months ago
Licenses:

Hi,

please apply this fixes:
/administrator/components/com_community/models/users.php line 409:

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 ' .
'FROM ' . $db->quoteName('#__community_fields_values');

to
$query = 'SELECT SUM(CASE ' . $db->quoteName('value') . ' WHEN ' . $db->Quote('Male') . ' THEN 1 ELSE 0 END OR 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('Female') . ' THEN 1 ELSE 0 END OR CASE ' . $db->quoteName('value') . ' WHEN ' . $db->Quote('COM_COMMUNITY_FEMALE') . ' THEN 1 ELSE 0 END) as Female ' .
'FROM ' . $db->quoteName('#__community_fields_values');

Let me know the result.

Regards,
Albert

12 years 3 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
applying your changes, fix the backend gender stats display. thank you.
What's about the frontend display shown in my second attached file from my first post ?
We suppose another patch is needed isn't it ?
Cheers,
L

12 years 3 months ago
Licenses:

Hi,

About the stats. module please replace with this:
put it at modules, and don't forget backup first.

This attachment is hidden for guests.
Please log in or register to see it.


if still cannot, please provide me FTP access detail. I will inspect directly to your site.

Regards,
Albert

This message has an attachment file.
Please log in or register to see it.

12 years 3 months ago
Licenses:
JomSocial Expired Socialize Expired

we've applied your changes, unfortunately no effects. We've provided you our ftp access (see details in our previous post). On the frontend you have to log as: Admin with password same as JSupport in order to get the statistics menu.
Cheers,
L

12 years 3 months ago
Licenses:

Hi,

please check it again. I made the fixes for you:
/public_html/modules/mod_statistics/helper.php
line 92

From
$genders = $stats->getGendersCount($gender_fieldcode, $gender_male, $gender_female);
To
$genders = $stats->getGendersCount($gender_fieldcode, 'COM_COMMUNITY_MALE', 'COM_COMMUNITY_FEMALE');

line 348:
From
$case = JString::strtolower($data->value);

To
$case = $data->value;

Regards,
Albert

The following user(s) said Thank You: SAS Coeurs de Breizh
12 years 3 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
well done !
Thank you for your support

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