I'm trying to add "hottopicpal.php" to my sidebar.
I added what you suggested... then it squawks:
Cannot instantiate non-existent class: sth in .....when it hits the $sth
Here's what the file begins with:
code:
$html = new html;
$date = $html -> get_date();
$cdate = $date - ($hottopiccache * 60);
$date = $date - 86400;
if ((!$LastCacheTime) || (!$HotTopicData) || ($LastCacheTime < $cdate)) {
if ($nostickyhottopic) {
$nosticky = "AND (B_Sticky = 0 OR B_Sticky IS NULL)";
}
else {
$nosticky = "";
}
$sth = new sth;
$dbh = new dbh;
$query = "
Query removed to save space
";
$sth = $dbh -> do_query($query);
main.inc.php has already been required on that page. If I add that in, it kills the output from that point on.
Any more suggestions. :shrug: