Can we remove Friends Requests/Accepts from spy activity?

I looked for this topic on the forum but didn't find a complete solution to hide or remove the Friends Requests or Accepts from the spy mod activity.

There's a good chance that someone here will just post the link to the answer but I'll take my chances because those notifications are really annoying.

Thanks guys.

Sometimes communicating your problem and putting it out there is enough to solve it
Quote · 22 Jun 2012

Should I post this as a job?

Sometimes communicating your problem and putting it out there is enough to solve it
Quote · 22 Jun 2012

You'll need to edit the modules/boonex/spy/classes/BxSpyProfilesActivity.php file. You can comment out what you don't want to show. For example:

                    //case 'request' :
                        //if($iSenderId != $iRecipientId) {
                            //$aRecipientInfo          = $this -> _getSenderInfo($iSenderId);
                            //$sRecipientNickName      = $aRecipientInfo['NickName'];
                            //$sRecipientProfileLink   = $aRecipientInfo['Link'];
                            //$aParams = array(
                                //'lang_key'  => '_bx_spy_profile_friend_request',
                                //'params'    => array(
                                    //'sender_p_link' => $sProfileLink,
                                    //'sender_p_nick' => $sNickName,
                                    //'recipient_p_link' => $sRecipientProfileLink,
                                    //'recipient_p_nick' => $sRecipientNickName,
                                //),
                            //);
                        //}   
                        //break;

                    //case 'accept' :
                        //if($iSenderId != $iRecipientId) {
                            //$aSenderInfo          = $this -> _getSenderInfo($iSenderId);
                            //$sSenderNickName      = $aSenderInfo['NickName'];
                            //$sSenderProfileLink   = $aSenderInfo['Link'];
                            //$aParams = array(
                                //'lang_key'  => '_bx_spy_profile_friend_accept',
                                //'params'    => array(
                                    //'sender_p_link' => $sProfileLink,
                                    //'sender_p_nick' => $sNickName,
                                    //'recipient_p_link' => $sSenderProfileLink,
                                    //'recipient_p_nick' => $sSenderNickName,
                                //),
                            //);
                        //}   
                        //break;

Quote · 22 Jun 2012

Awesome!!!!

Thank you Matto.

Sometimes communicating your problem and putting it out there is enough to solve it
Quote · 22 Jun 2012

Hi Matto.

This worked well.

I would like to know if i can hide the options that appear in the right site of the name of the mod.

You See the "Spy" word and in the right side we can see the options: All activity, Content Updates and Profile Updates. Can I hide these options and mantain only the all activity?

I asked for this because if I hide the profile view (for exemple), the all activity don´t show it, but the profiles updates still shows it.

OR... are there other files that I can edit like the BxSpyProfilesActivity.php to hide some options from the other titles?

Thanks a lot and sorry for my bad English!

Mauro.

Quote · 13 Sep 2012

thanks!

Quote · 13 Sep 2012

In time, I see marked the case view but i still can see when member X view Member Y. Should I rename other case?

Detail: I cleaned the cache.

 

Thanks a lot!!!

Mauro.

Quote · 13 Sep 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.