Topic: Having trouble integrating PunBB and WordPress
Hi,
I'm having a slight problem integrating Wordpress 2.0 RC3 and PunBB. First off, I got an unregister_globals(); function collision for Wordpress, and for the time being I've commented it out. It was located on line 1034 in include/functions (with comments). It would be nice if someone could rename that function pun_unregister_globals(); or something similar. Now, oddly, Punbb is failing to initiate the database class in functions.php on line 110 (
Fatal error: Call to a member function query() on a non-object in /Library/WebServer/Documents/macsuburb/forum/include/functions.php on line 110) , which is this.
$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());
I don't know if it's something on my part or PunBB's, so if anyone knows anything it'd help.
Thanks.