LiveZilla Live Chat Software
Deactivate Spy Feature for Guests and Non-Members :: Forum
 
Deactivate Spy Feature for Guests and Non-Members
 
Quote · 5436 days ago · 0 people like this ·
 

Tidbit provided by JooSocial over on the boonex Forums. We post these things here because we know the level of difficulty in finding good information on the unity forum. Thanks to JooSocial:

/modules/boonex/spy/classes/BxSpyModule.php

I have found the solution.

FIND:

 

// get data;
$aActivites = $this -> oSearch -> getSearchData();
$sActivites = $this -> _proccesActivites($aActivites);

if($aActivites) {
// add global wrapper for all events;
$sOutputCode =  '<div id="' . $this -> sEventsWrapper . '">' . $sActivites
. $this -> oSearch -> showPagination($sPageUrl) . '</div>';
}
else {
$sOutputCode = '<div id="' . $this -> sEventsWrapper . '">' . MsgBox( _t('_Empty') ) . '</div>';
}

// if first page;
if ($this -> iPage == 1) {
$sOutputCode = $this -> getInitPart($sType) . $sOutputCode;
}

return $sOutputCode;
}

 

REPLACE WITH:

// get data;
$aActivites = $this -> oSearch -> getSearchData();
$sActivites = $this -> _proccesActivites($aActivites);
if(!isLogged() !=true)
if($aActivites) {

// add global wrapper for all events;
$sOutputCode =  '<div id="' . $this -> sEventsWrapper . '">' . $sActivites
. $this -> oSearch -> showPagination($sPageUrl) . '</div>';

}else {
$sOutputCode = '<div id="' . $this -> sEventsWrapper . '">' . MsgBox( _t('_Empty') ) . '</div>';

}
if(!isLogged() !=false){
$sOutputCode = '<div id="' . $this -> sEventsWrapper . '">You must be logged in order to use this feature, <a href="' . $site["URL"] . 'member.php">LOGIN</a> or <a href="' . $site["URL"] . 'join.php">REGISTER</a></div>';

}

// if first page;
if ($this -> iPage == 1) {
$sOutputCode = $this -> getInitPart($sType) . $sOutputCode;
}

 

return $sOutputCode;
}

 

Forums Home