I am running Geeklog 1.5 with Chameleon layout but I checked and these errors occur when using the professional layout too.
One error is when you try to use the main search feature. The error I get is:
The second error is when you are viewing a users profile and click on the "Find all postings by
" link. The error I get is:
Text Formatted Code
function plugin_dopluginsearch_external($query, $datestart, $dateend, $topic, $type, $author)
{
global $_TABLES, $_CONF, $LANG_EX00;
if (empty($type)) {
$type = 'all';
}
// Bail if we aren't supppose to do our search
if ($type <> 'all' AND $type <> 'external') {
$plugin_results = new Plugin();
$plugin_results->plugin_name = 'external';
$plugin_results->searchlabel = $LANG_EX00['externpages'] . $LANG_EX00['results'];
return $plugin_results;
}
// Build search SQL - Modified to exclude static PHP pages from search.
$sql = "SELECT * from " . $_TABLES['external'];
$result = DB_query($sql);
// OK, now create new plugin object and insert table header labels
require_once($_CONF['path_system'] . 'classes/plugin.class.php');
$plugin_results = new Plugin();
$plugin_results->plugin_name = 'external';
$plugin_results->searchlabel = $LANG_EX00['externpages'] . $LANG_EX00['results'];
$plugin_results->addSearchHeading($LANG_EX00['titlemsg']);
$plugin_results->addSearchHeading($LANG_EX00['urlmsg']);
$plugin_results->addSearchHeading($LANG_EX00['hitsmsg']);
$mycount = DB_numRows($result);
// NOTE if any of your data items need to be links then add them here!
// make sure data elements are in an array and in the same order as your
// headings above!
for ($i = 1; $i <= $mycount; $i++) {
$A = DB_fetchArray($result);
if(SEC_hasAccess($A[owner_id],$A[group_id],$A[perm_owner],$A[perm_group],$A[perm_members],$A[perm_anon])){
if (preg_match("/^(http:\/\/)/i",$A['url']) == 1) {
$pth = $A['url'];
$url = $A['url'];
} else {
$pth = $_CONF['path_html'] . $A['url'];
$url = $_CONF['site_url'] . '/' . $A['url'];
}
[line 193] $cnts = implode('',file($pth));
[line 194] if (stristr($cnts,$query) != '') {
$rcnt++;
$A['title'] = stripslashes($A['title']);
$row = array($A['title'],
'<a href="' . $url . '">' . $A['url'] . "</a>",
$A['hits']);
$plugin_results->addSearchResult($row);
}
}
}
$plugin_results->num_searchresults = $rcnt;
$plugin_results->num_itemssearched = DB_count($_TABLES['external']);
return $plugin_results;
}
I run a radio station program called SAMS Broadcaster which has a php based website. I use External Pages to integrate this site into the CMS so unless someone knows of a plugin (or is willing to create one) that will integrate SAMS Broadcaster's website into the Geeklog 1.5 CMS, getting External Pages to work with Geeklog 1.5 is very important to me.