Quote:
Originally posted by inetd
dengel, please fix error, showing from private forums
|
@inetd: To exclude private forums edit this line in data.php:
$sql_query = "SELECT threadid, thread.forumid, thread.title, thread.replycount, thread.lastposter, postuserid, postusername, forum.title AS forumname FROM thread,forum where forum.forumid=thread.forumid ORDER BY thread.lastpost DESC LIMIT $maxcount";
before ORDER BY, ADD:
AND (thread.forumid!=X OR thread.forumid!=Y)
Replace X and Y with your private forum's ids..