Jump to content
WebFlake
  • 0

Limit items appearing in profile feed


LVAzelf

Question

2 answers to this question

Recommended Posts

  • 0

You have 3 choices.

 

1. Create new template bits for the profileModern & statusUpdates with new names and use them in the new code changing the new  statusUpdates template to choose only ?? statuses in the foreach statement.

 

2. Change the number of status updates shown for all by editing file adminapplicationsmembersextensionsprofileTabsstatus.php using ftp or file manager.

find 

$statuses = $this->registry->getClass('memberStatus')->fetch( $this->memberData, array( 'relatedTo' => $member['member_id'], 'isApproved' => true, 'limit' => 10 ) );

Change the 10 to whatever number you want.

 

3. in acp system settings > members > user profiles

click add a setting then follow the image
3326rtv.png
then edit the file adminapplicationsmembersextensionsprofileTabsstatus.php using ftp or file manager.
find

$statuses = $this->registry->getClass('memberStatus')->fetch( $this->memberData, array( 'relatedTo' => $member['member_id'], 'isApproved' => true, 'limit' => 10 ) );

Change the 10 to

$this->settings['maxStatusUpdates']

then the code I made change this

$tab = 'status';

to this

$tab = 'status'; $this->settings['maxStatusUpdates']=1;

You can make the 1 anything you want.

  • Upvote 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...