ISSUE SUMMARY:
How can I change number of members showed in module "Members" in groups? Current number is 12. I asked about that in previous version of JomSocial but it's changed in v4.
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER
Hi, Drazen.
Try to change value here:
Backend -> Components -> JomSocial -> Configuration -> Layout -> Default pagination -> 20
Hi, Drazen.
Ok, you want to "change" - but could you specify what exactly? You wan to increase it, decrease or hide?
Hi, Drazen.
Copy this file: ROOT/components/com_community/templates/jomsocial/layouts/groups/single.php
to: ROOT/templates/your-template/html/com_community (if you don't have any of those folders, feel free to create them)
And remove this:
if (--$limit < 1) {
break;
}
Hi, Drazen.
I assign developer to this thread.
Hi Drazen,
If you want change the number only, copy single.php from /components/com_community/templates/jomsocial/layouts/groups/ to /templates/[your frontend template]/html/com_community/layouts/groups/
at line 613 you can see this code
<?php echo JText::_('COM_COMMUNITY_VIEW_ALL'); ?> (<?php echo $membersCount; ?>)
<?php echo JText::_('COM_COMMUNITY_VIEW_ALL'); ?> (50)
For example I have one group, that group has 104 members. When I go to the group, we have module "Members" that is showing avatars of 12 members (see the picture above). I want to increase the number of members showed in that box.
Hi,
sorry, now I know what exactly what your mean :)
please revert back my changes and please do this:
edit [joomla site root]/components/com_community/views/groups/view.html.php
at line 1141 you can find this code
$limit = 12;