By robert on Tuesday, 07 January 2014
Posted in General Issues
Replies 3
Likes 0
Views 553
Votes 0
Hi everyone
this is the second time am posting this question. can anyone help me on how to have more than just two results on the suggestion module. i have tried to edit from application friends and put number to 5 as shown in the attachment but there is no change.

by the way am experimenting on following users with more than 10 friends and followers.

regards
robert
Hi Robert,

I am sorry for the delay of this reply.

Currently the friend suggestion is 'hardcoded' to fetch only 2 items. I've fixed this issue so that the friends suggestion will respect the 'limit' setting from the friends application. For the quick fix, open the file 'JOOMLA/media/com_easysocial/apps/user/friends/widgets/dashboard/view.html.php' and locate below code at line 101:


$friends = $model->getSuggestedFriends( $my->id, 2 );


and replace the above with:


$limit = $params->get( 'dashboard_show_limit', $appParams->get( 'dashboard_show_limit' , 10 ) );
$friends = $model->getSuggestedFriends( $my->id, $limit );


Let me know if above work for you or not

Hope this help and have a nice day
Sam
·
Tuesday, 07 January 2014 14:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanx Man foryour quick response. this has worked

regards
robert
·
Tuesday, 07 January 2014 14:46
·
0 Likes
·
0 Votes
·
0 Comments
·
HI Robert,

You are welcome. Glad to hear your issue now resolved
Have a nice day
Sam
·
Tuesday, 07 January 2014 17:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post