Friend Request Notification Issues

Friend request notifications are not being sent to the recipient to notify them of a friend request.  The only way the recipient would know someone sent a friend request is if they checked the spy module (and if spy module is even turned on).  This needs to be fixed to send some sort of email to the recipient so they know they have a friend request pending.

Also, what is the purpose of the friend request block on the Profile Page from page builder.  It sits under the Actions menu context but does nothing.  No special block appears on the profile page where the Friend Request block suggest something should appear.

Quote · 18 Nov 2009

Hello mauricecano :-)

Could you please send me a friend request using demozzz.com ? My username is MichelSwiss... and this is for test purpose ;-)

Thank you :-)

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 18 Nov 2009

Done, adn why is your picture upside down?

Quote · 18 Nov 2009

My friend requests show in the notifications located on the member task bar. The "blue I" with a red number 1 on it. Is yours not doing that?

Nothing to see here
Quote · 18 Nov 2009

No where is this?

Quote · 18 Nov 2009

On on the grey bar along the bottom. Where it gives you the icons like Mail, friends, dashboard, logout, etc. There is a blue circle with the letter i in it. When a member sends you a friend request or email, etc, it will display a number of how many "notifications" you have. If it has no number and someone sends you a friend request, there will be a red 1 in that blue circle.

If you want me to try it, are you on the demozzz site? What is your username there?

Nothing to see here
Quote · 18 Nov 2009

Okay I know what your saying.  That is the spy module, if you don't have the spy module installed or users have permission to use it then it won't appear.

Quote · 18 Nov 2009

That would be correct :)

Nothing to see here
Quote · 18 Nov 2009

So back to my original issue, if you don't have spy turned on or if users don't have access to spy they would not have the notifications icon and would have no other way to figure out if they had a friend request unless they click on their friends icon and look at it.  I'm saying for better usability an internal email should be sent to them notifying them of the request with a link to the friend request management page.

Quote · 18 Nov 2009

Thanks mauricecano ;-)

Something really wrong... :-(

This friend request notification was requested since years as this is one of the most important...

Ticket added: http://www.boonex.com/trac/dolphin/ticket/1483

Please Alex, if you read this post, this is really important ;-)

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 18 Nov 2009

Thanks for the ticket and I would add this issue here as it appears to be releated.

In Page Builder, under Profile page (where you arrange how the profile page looks), there is a block called Friend Request that sits right under the actions menu.  However, on the profile page itself nothing appears where that block is located.  Sending a friend request does not make the friend request box appear.  I wonder if this is not a broken friend request notification issue.

Below is what I am talking about.  That Friend Request block shows up in the default installation so I would also ticket that the Friend Request block is likely broke.  Maybe once its fixed that will display all friend requests?

Quote · 18 Nov 2009

I think that this Friend Request block will appear on the Befriend sender's profile page, waiting for acceptation of the Befriend recipient...

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 18 Nov 2009

No it isn't, I just tested it.  Nothing appears on the befriender or befriendee's screen to indicate a friend request sent or received.

Quote · 18 Nov 2009

I mean, but I could be wrong, that if AAA send a Befriend to BBB, this Friend Request block is displaying on AAA's profile page and can only be seen by BBB. BBB has to visit AAA's page to accept the invitation. Isn't it ?

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 18 Nov 2009

Ah I see what you mean.  You are correct that the block then displays to accept the friend request, lol useless unless the person who received the request has some way to know and go look.  Thanks for sorting that issue out at least.

Quote · 18 Nov 2009

:-) Hope that Alex will agree to add a Friend Request Notification to the existing email templates ;-)

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 18 Nov 2009

http://www.boonex.com/trac/dolphin/changeset/13278

Thanks a lot :-)

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 20 Nov 2009

http://www.boonex.com/trac/dolphin/changeset/13278

Thanks a lot :-)


Notification was added!

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 20 Nov 2009

Woot,

If I add this now will it mess with the update script?

Quote · 20 Nov 2009

I'm aware this is an old post but maybe someone is still subscribed to it.  I'm having this identical problem but I'm running 7.09. I'm not sure what version was being used 3 years ago when this thread was created.

If I didn't click on the Friends button on the members bar at the bottom of the page I would have NO IDEA that I had a friend request.

Quote · 18 Oct 2012

I too found it very strange that the "Friend request box" is only shown to the profile of the befriender when they view the profile of the befriendee - rather than as a prompt shown to the befriendee when they view their own profile. I also wanted to show this on the Account page so it would be visible to the befriendee when they log in.

So I figured out how to change it and make it work the way I wanted it to.

Let's just be clear. Person A makes a friend request for Person B. Person B gets an email telling them about the request. They log in to the site, view their own profile (or account page) and see a Friend Request alert. They click on it, jump to the "Communicator" and then they can accept or reject the friend request.

Find the file /templates/base/scripts/BxBaseProfileView.php

Find the function: function showBlockFriendRequest on line 472 (in 7.0.9)

Replace the entire function with the below:

function showBlockFriendRequest($sCaption, $bNoDB = false){

   if(!isMember()) 

            return "";

 

        //we show the friend request to the befriendee so they can be prompted to confirm it, so show this whenever the Profile column matches this profile AND the viewer

        $aViewer = getProfileInfo();

        //if the viewer is looking at their owner profile, then check for friend requests

        if ($aViewer['ID']==$this -> _iProfileID) {

            //find the first unconfirmed friend request matching this user

            $mixedCheck = $GLOBALS['MySQL']->getOne("SELECT `Profile` FROM `sys_friend_list` WHERE `Profile`=" . $this -> _iProfileID . " AND `Check` != 1 LIMIT 1");

            //if there is one, show it

            if($mixedCheck==$this -> _iProfileID) {

                return MsgBox(_t('_pending_friend_request_answer', BX_DOL_URL_ROOT . "communicator.php?person_switcher=to&communicator_mode=friends_requests"));

            } else {

                return "";

                }

        } else {

            return "";

        }

 

}

Now make sure the "Friend request" box is showing on the Profile page. And refresh your cache. And voila!

If you ALSO want the same Friend Request alert to appear on the Account page (which I did), then run this SQL and put it there:

INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`, `Cache`) VALUES

( 'member', '998px', 'Friend request notification', '_FriendRequest', 1, 0, 'FriendRequest', '', 1, 34, 'memb', 0, 0);

 

and then also modify /member.php by adding this function (which is similar, but slightly different to the one above - customised for the Account page:

function getBlockCode_FriendRequest(){

        if(!isMember())

            return "";

 

        //we show the friend request to the befriendee so they can be prompted to confirm it, so show this whenever the Profile column matches this profile AND the viewer

        $aViewer = $this->aMemberInfo;

        //find the first unconfirmed friend request matching this user

        $mixedCheck = $GLOBALS['MySQL']->getOne("SELECT `Profile` FROM `sys_friend_list` WHERE `Profile`=" . $aViewer['ID'] . " AND `Check` != 1 LIMIT 1");

        //if there is one, show it

        if($mixedCheck==$aViewer['ID']) {

            return MsgBox(_t('_pending_friend_request_answer', BX_DOL_URL_ROOT . "communicator.php?person_switcher=to&communicator_mode=friends_requests"));

        } else {

            return "";

        }

    }

Clear your cache and test it works.

 

 

 

 

Quote · 23 Oct 2012

 AWESOME!!  THANK YOU VERY MUCH!!

I too found it very strange that the "Friend request box" is only shown to the profile of the befriender when they view the profile of the befriendee - rather than as a prompt shown to the befriendee when they view their own profile. I also wanted to show this on the Account page so it would be visible to the befriendee when they log in.

So I figured out how to change it and make it work the way I wanted it to.

 

Quote · 23 Oct 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.