Friends Request Notification on Toolbar

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.

Quote · 19 May 2010

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
Quote · 19 May 2010

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.


Quote · 19 May 2010

Anybody?

Quote · 19 May 2010

can anyone please point me to the file that contains the algorithm?

Quote · 20 May 2010

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!
Quote · 21 May 2010

Thanks for your help! I will look into it.

Quote · 21 May 2010

 , 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
Quote · 9 Jul 2012

It counts all friend request related to that user. All that you send and all that you received.

so much to do....
Quote · 9 Jul 2012

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....
Quote · 9 Jul 2012

 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
Quote · 10 Jul 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.