Quote:
Originally Posted by gopherhockey
HOWEVER - this doesn't solve my initial issue, making a forum transparent. Apparently since the forumid is not logged to the posts table, this might be impossible unless we add a column to the table such as "ignoreforum" and set it to 1 or 0 when posting items for that forum. Then we could look for ignoreforum!=1 and it would probably work.
|
To ignore posts (from a particular forum) on index.php this should work ...
$totalposts=$DB_site->query_first("SELECT count(*) AS posts FROM post, thread WHERE post.threadid=thread.threadid AND thread.forumid!=X");
I think it will probably do a full table scan of the thread table but it does work.