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.

Number of friends to display in JS Members module

7 years 11 months ago
  • Oleg's Avatar
    Topic Author
  • Oleg
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

ISSUE SUMMARY:
How to show more than 12 Friends in JS Members module?
Limit in admin panel works only with other options of Show parameter (Newest, Popular, ets.).


STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

7 years 11 months ago
Licenses:

Hi,

do you have an user account login that having more than 12 friends?
with super user account that you provided, only have 5 friends.

Regards

7 years 11 months ago
  • Oleg's Avatar
    Topic Author
  • Oleg
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

[removed]

7 years 11 months ago
Licenses:

Hi,

please check it, I put the fix:
/modules/mod_community_members/helper.php line 53

$members = $friends->getFriends($user->id, 'latest', true, 'all', $limit);
the code must be like this:
$members = $friends->getFriends($user->id, 'latest', false, 'all', $limit);

Regards

The following user(s) said Thank You: Oleg
7 years 11 months ago
  • Oleg's Avatar
    Topic Author
  • Oleg
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

I can't see any difference in the code.
In my file line 53 the same

7 years 11 months ago
  • Oleg's Avatar
    Topic Author
  • Oleg
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

How to show online users in the first strings?

7 years 11 months ago
Licenses:

Hi,

please check it. I did the changes for you. so you no need to do anything.
I use this code at line 53

$members = $friends->getFriends($user->id, 'online', false, 'all', $limit);

Regards

7 years 10 months ago
  • Oleg's Avatar
    Topic Author
  • Oleg
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

It doesn't work... Anyway, no more than 20 friends are displayed

7 years 10 months ago
Licenses:

Hi,

at members module setting, the limis is 20. that's why at members module only displaying not more than 20 friends.
and about sort by online first. please edit:
/modules/mod_community_members/helper.php and around line 53 find this code

$members = $friends->getFriends($user->id, 'latest', true, 'all', 5000);
changing it to
$members = $friends->getFriends($user->id, 'online', true, 'all', 5000);

for this, you to re-do-it again every jomsocial upgrade. because this changes as part of jomsocial core files.

Regards

The following user(s) said Thank You: Oleg
7 years 10 months ago
  • Oleg's Avatar
    Topic Author
  • Oleg
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Expired

I've found the solution:
$members = $friends->getFriends($user->id, 'online', false, 'all', $limit);
and any desired number in the module settings

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