- SearchBot Detection Script for Joomla! ----------------------------------------------- Filename: SearchBot_Detect.php Version: 1.0 Release Date: 10/03/06 Developer: David Hunt Copyright: 2006 Byrgius Technologies License: GNU/GPL (http://www.gnu.org/copyleft/gpl.html) Source: http://software.byrgius.com/ - Installation for (ExtCalendar 2) ----------------------------------------------------- 1) Copy SearchBot_Detect.php to the components/com_events folder 2) Open components/com_extcalendar/extcalendar.php 3) Add the following at line 31 // Byrgius Technologies (http://software.byrgius.com) // Search Engine Detect include_once($mosConfig_absolute_path."/components/".$option."/SearchBot_Detect.php"); 4) Save & Close extcalendar.php 5) Open components/com_extcalendar/includes/functions.inc.php 6) Find the function "get_events" and add the following before the final "return" Find the line reading: return is_array($events)?$events:false; And add this before it: // Byrgius Technologies (http://software.byrgius.com) // Search Engine Detect if( _SEARCH_BOT && !count( $events ) ){ ob_clean(); die(_SEARCH_BOT_NAME.': No Records for this Query'); } 7) Save & Close functions.inc.php ----------------------------------------------------------------------------------------