Joined: Aug 27, 2002 Posts: 15235 Location: Kansas
Posted:
Wed Oct 12, 2005 8:08 pm
Start by replacing all occurrences of $prefix with the prefix of your stand alone phpbb. Then, if it is not on the same database, you will need to esatblish a separate mysql connection. Right now the block is using the $dbi connection which is to phpnuke. If the phpbb tables are all on the same database as phpnuke, then you do not have to worry about $dbi.
as i can see from control panel, i see that all databases connected with DBI!
Propably i must as you said the $prefix
for example there is:
Code:
$result1 = sql_query("SELECT t.topic_id, t.topic_last_post_id, t.topic_title, f.forum_name, f.forum_id [b]FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums[/b] f where t.forum_id=f.forum_id and f.auth_view=0 ORDER BY t.topic_last_post_id DESC LIMIT 20", $dbi);
i should do:?
Code:
$result1 = sql_query("SELECT t.topic_id, t.topic_last_post_id, t.topic_title, f.forum_name, f.forum_id FROM [b]phpbb1.phpbb_bbtopics t, phpbb1.phpbb_forums[/b] f where t.forum_id=f.forum_id and f.auth_view=0 ORDER BY t.topic_last_post_id DESC LIMIT 20", $dbi);
Joined: Aug 27, 2002 Posts: 15235 Location: Kansas
Posted:
Wed Oct 12, 2005 8:35 pm
No, that's not the same $dbi. That's just an example in cPanel. $dbi is set in phpnuke and connects to your database in config.php. If the phpbb tables do not show up in phpmyadmin when you look at your nuke table, then they are not on the same database.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum