Topic: Punbb, Movabletype and smarty
hi,
I know how to integrate my website with punbb by using
define('PUN_ROOT', '/home/erinther/public_html/pluss/user/');
require PUN_ROOT.'include/common.php';
but now I use dynamic publishing templates with my MT-based website. When I add the code, then I get this error:
Fatal error: Call to a member function on a non-object in /home/erinther/public_html/forum/include/functions.php on line 110
That is
$result = $db->query('SELECT u.*, g.*, o.logged FROM '.$db->prefix.'users AS u INNER JOIN '.$db->prefix.'groups AS g ON u.group_id=g.g_id LEFT JOIN '.$db->prefix.'online AS o ON o.ident=\''.$remote_addr.'\' WHERE u.id=1') or error('Unable to fetch guest information', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
.
Has anybody any idea what is wrong?