How do I change the number of friends requests limited to received requests only, rather than the sum of sent and received?
It is confusing enough to members that they have to click on "From ThisMember" to know why there are so many friends requests reported on the toolbar.
|
Not understand you! Where are you want change number of friends requests ? PS: If possible do not write me personally, please try to ask on the forum first |
The number of friend requests is displayed at the right side of the toolbar, which is usually on the bottom of the page.
Note that the number of requests shown below is 1, but this user has not received any friend requests.

|
|
can anyone please point me to the file that contains the algorithm? |
Hello if you can change something into php code you need open the : inc/classes/BxDolFriendsPageView.php and find this function :
function get_member_menu_friends_list($iMemberId = 0) We only have a unique modules for dolphin! |
Thanks for your help! I will look into it. |
Flurmingo, did you solve this issue at any point? I also like to have only the relevant friends requests and not the total sum of them.
How do I change the number of friends requests limited to received requests only, rather than the sum of sent and received?
It is confusing enough to members that they have to click on "From ThisMember" to know why there are so many friends requests reported on the toolbar.
Sometimes communicating your problem and putting it out there is enough to solve it |
It counts all friend request related to that user. All that you send and all that you received. so much to do.... |
If you want to change it to show only request count for received profile. Do this
open inc/classes/BxDolFriendsPageView.php at line 370
change this
$iFriendsRequests = getFriendNumber($iMemberId, 0) ;
to this
$iFriendsRequests = getFriendRequests($iMemberId);
done. enjoy :)
so much to do.... |
prashank, will this change present only the relevant friend requests?
The purpose is to make it function like on facebook when you get a notification only when someone sent you a friend request.
If you want to change it to show only request count for received profile. Do this
open inc/classes/BxDolFriendsPageView.php at line 370
change this
$iFriendsRequests = getFriendNumber($iMemberId, 0) ;
to this
$iFriendsRequests = getFriendRequests($iMemberId);
done. enjoy :)
Sometimes communicating your problem and putting it out there is enough to solve it |