That code is from the original phpBB port that Tom released when things were called _topicsbb and _forums. These days they are now _bbtopics, etc. All you have to do is simply change the table names to the ones that exist today. Example, change _topicsbb to _bbtopics.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Wed Jan 15, 2003 9:42 am
That's right, auth_view is part of the bbforums table.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Wed Jan 15, 2003 9:44 am
Ok, so for today's tables, the code should be like this:
Code:
$result1 = sql_query("SELECT t.topic_id, t.topic_last_post_id, t.topic_title FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=f.forum_id and (f.auth_view=0||1||2||3) ORDER BY t.topic_last_post_id DESC LIMIT 10", $dbi);
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
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