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.

Сhange the number of posts in your user profile (joms-stream__wrapper)

10 years 6 months ago
Licenses:
JomSocial Active

Hello! Want to change the number of displayed posts in the user profile (not in the activity feed, it is in the profile).
(joms-stream__wrapper in com_community/templates/jomsocial/layouts/profile/base.php)

Couldn't find such function in the settings I couldn't find a way to change the code.

Tell me how not to display 20 posts, and 5-6.
This is necessary because the load is applied on CPU + page long opens.

Thank you.

10 years 6 months ago
Licenses:

Hi,

you can find that settings at each users configuration at profile > preferences



Regards

Attachments:
10 years 6 months ago
Licenses:
JomSocial Active

Yes, thank you, but I'm wondering how to apply this option to all users at once?

10 years 6 months ago
Licenses:

Hi,

if users never changing that activity stream items number at they profile preferences, by default it will use frontpage activities number from joomla backend under configuration > layout.

this is a bug and has been reported. please wait for the fix.

Regards

10 years 6 months ago
Licenses:
JomSocial Active

Tell me what code need to fix to set a specific number of posts in the profile manually?

10 years 6 months ago
Licenses:
JomSocial Active

Clarify, I can change the code manually to display 5 posts?

10 years 6 months ago
Licenses:

Hi,

please edit:
/components/com_community/libraries/activities.php and around line 1459, find this code

case "active-profile" :
    $target = array($user->id);
    $params = $user->getParams();
    $actLimit = ($view == 'profile') ? $params->get('activityLimit', $config->get('maxactivities')) : $config->get('maxactivities');
    $html = $act->getHTML($user->id, $target, '', $actLimit, $view, '', true, $showMore, null, false, 'active-profile', 0, $filters, $extra);
    break;
changing it to
case "active-profile" :
    $target = array($user->id);
    $params = $user->getParams();
    $actLimit = ($view == 'profile') ? 5 : 5;
    $html = $act->getHTML($user->id, $target, '', $actLimit, $view, '', true, $showMore, null, false, 'active-profile', 0, $filters, $extra);
    break;

Regards

The following user(s) said Thank You: Vladimir
10 years 6 months ago
Licenses:
JomSocial Active

Thanks, question solved!

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