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.

Friends suggestion show inactive user

8 years 9 months ago
  • Romulo's Avatar
    Topic Author
  • Romulo
  • Offline
  • Junior Boarder
  • Posts: 214
  • Thank you received: 6
Licenses:
JomSocial Expired Socialize Expired

ISSUE SUMMARY:
Hi there,
I can see that friends suggestions module mostly show inactive user, there are any way to avoid that, because is not cool, in my case the only one that show is inactive user, also could this module show random users and not the same users all the time as facebook do, in my case in my personal account on my site i can see only inactive user so as i can not add them as friend they continue showing the same users, what facebook do is that when you refresh the page, show some other nearly diferents, and also show an (x) to remove the user to not appear, could be great adding this feature.
Best Regards

Romulo Ruiz
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
Only inactive user are shown
EXPECTED RESULT
Show only active users
If i don't send friend request display other users and not all the time the same
Add a (x) in the right corner to avoid this user to not show again
make mutual friends linkable in order user can click to see mutual friends as facebook do.
BROWSER
chrome

8 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Romulo,

Thank you for reporting this is valid bug.

Regarding behavior like FB we cant promise will create it soon

cheers!

8 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Romulo,

Here is the patch
open this file modules/mod_community_friendssuggestions/helper.php, find this :

$query = "SELECT user_id FROM ".$db->quoteName('#__community_fields_values')
                         ." WHERE ".$additionalQuery." GROUP BY user_id";
replace to :
$query = "SELECT v.user_id FROM ".$db->quoteName('#__community_fields_values')
                                 ." as v LEFT JOIN ".$db->quoteName('#__users')." AS u ON v.user_id=u.id"
                                 ." WHERE u.".$db->quoteName('block')."=".$db->quote(0)
                                 ." AND (".$additionalQuery.") GROUP BY v.user_id";

find this code :
." WHERE (".$additionalQuery.") GROUP BY user_id HAVING COUNT(field_id) = ".count($matchField);
replace to :
." as v LEFT JOIN ".$db->quoteName('#__users')." AS u ON v.user_id=u.id"
                                 ." WHERE u.".$db->quoteName('block')."=".$db->quote(0)
                                 ." AND (".$additionalQuery.") GROUP BY user_id HAVING COUNT(field_id) = ".count($matchField);

8 years 9 months ago
  • Romulo's Avatar
    Topic Author
  • Romulo
  • Offline
  • Junior Boarder
  • Posts: 214
  • Thank you received: 6
Licenses:
JomSocial Expired Socialize Expired

Great! thank you very much, i appreciate that.

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