Remove profile visits from Spy module (and associated notifications)

Is there a way to remove (preferably hide than delete) profile visit data from Spy module (and associated notifications)?

Quote · 28 Jan 2011

You can disable track of all guest activities on site.

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 28 Jan 2011

I meant for members/friends - "Track spy activities for guests:" is already disabled in Spy module admin for guests. Notifications of profile views aren't necessary on our site, however, the core elements such as 'new wall post' and 'accepted a friend request' are more important here. Any ideas?

Quote · 28 Jan 2011

There's a solution for it here somewhere, I removed it myself, but can't remember which file I edited.

Quote · 28 Jan 2011

I had a look in some files and the following sorted the problem. Head along to:

.../modules/boonex/spy/classes/BxSpyProfilesActivity.php


Comment out (or delete) the following code:

case 'view' :
if($iSenderId != $iRecipientId) {
$aSenderInfo          = $this -> _getSenderInfo($iSenderId);
$sSenderNickName      = $aSenderInfo['NickName'];
$sSenderProfileLink   = $aSenderInfo['Link'];

$aParams = array(
'lang_key'  => '_bx_spy_profile_has_viewed',
'params'    => array(
'sender_p_link' => $sSenderProfileLink,
'sender_p_nick' => $sSenderNickName,

'recipient_p_link' => $sProfileLink,
'recipient_p_nick' => $sNickName,
),
);
}
break;

Quote · 28 Jan 2011

 

I had a look in some files and the following sorted the problem. Head along to:

.../modules/boonex/spy/classes/BxSpyProfilesActivity.php


Comment out (or delete) the following code:

case 'view' :
if($iSenderId != $iRecipientId) {
$aSenderInfo          = $this -> _getSenderInfo($iSenderId);
$sSenderNickName      = $aSenderInfo['NickName'];
$sSenderProfileLink   = $aSenderInfo['Link'];

$aParams = array(
'lang_key'  => '_bx_spy_profile_has_viewed',
'params'    => array(
'sender_p_link' => $sSenderProfileLink,
'sender_p_nick' => $sSenderNickName,

'recipient_p_link' => $sProfileLink,
'recipient_p_nick' => $sNickName,
),
);
}
break;

So if I want to comment it out it would be after the "Break;" ? or after the "}" "}" ?

Sometimes communicating your problem and putting it out there is enough to solve it
Quote · 15 Feb 2011

Simply put a // at the beginning of all the lines shown in that post.

Quote · 15 Feb 2011

Looks like its working.

Thank you!

Sometimes communicating your problem and putting it out there is enough to solve it
Quote · 17 Feb 2011

i removed the views part from bxspyprofilesactivity.php and now when i click on any members profile,this is what i get

Warning: Cannot modify header information - headers already sent by (output started at /home/selim/public_html/modules/boonex/spy/classes/BxSpyProfilesActivity.php:1) in/home/selim/public_html/inc/design.inc.php on line 133

anybody has an idea how to fix that ??

thank you very much

Quote · 18 Apr 2011

 

i removed the views part from bxspyprofilesactivity.php and now when i click on any members profile,this is what i get

Warning: Cannot modify header information - headers already sent by (output started at /home/selim/public_html/modules/boonex/spy/classes/BxSpyProfilesActivity.php:1) in/home/selim/public_html/inc/design.inc.php on line 133

anybody has an idea how to fix that ??

thank you very much

Check for extra lines at the beginning or end of the file, as well as any mistakes you may have made when removing entries. It'd help if you uploaded the file here.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 18 Apr 2011

problem was fixed by restoring the file itself from backup.

and commenting out all those lines did work like a charm

thank you very much guys!!!

Quote · 18 Apr 2011

I did all these, but the "view notifications" remain.... :(

P.S. In the Spy Administration Panel, I changed all values to 0, and unchecked the "Track spy activities for guests" option.

Why does the problem persist?

Quote · 1 May 2011

Clear your cache.

Quote · 1 May 2011

I have done it, but still the same... Visit notifications still appear on the Wall...

Quote · 1 May 2011

Do you mean previous notifications or new ones? Making the above changes won't remove old entries - you can do that via the database.

Quote · 1 May 2011

No, unfortunately, new ones are being created...

Quote · 1 May 2011

Hi, is there any way to include blog comments with the spy notification?

 

thanks

Quote · 7 Apr 2012

Can we also hide the friend requests/ accepts from "activity" block?

Sometimes communicating your problem and putting it out there is enough to solve it
Quote · 18 Jun 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.