Quote:
Originally posted by todd.o.callen
How do I modify the post query so that posts in Private forums (and any other forums the user can't see) will not show up?
Thanks. God I love this hack.
|
I tried to apply your advice from a response a few pages ago regarding the news query, by it didn't seem to help:
$threadsquery=$DB_site->query("SELECT * FROM thread WHERE thread.open<>10 ".$threadsql." AND thread.visible=1
AND forumid!=$newsforum AND forumid!=$pollsforum AND visible=1 ORDER BY lastpost DESC LIMIT $maxvbithreads");
My guess is tha thread.visible=1 and visible=1 are the redundant, but I am not a very good guesser.