Quote:
Originally posted by TECK
1. You can't add the forum title, unless you do a query on the loop. You will end up with 40-50 queries... or you write a function for this...
2. Find:
Code:
$threads=$DB_site->query("SELECT * FROM thread WHERE open='1' AND open<>10 $iforumperms
Replace with:
Code:
$threads=$DB_site->query("SELECT * FROM thread WHERE open='1' AND open<>10 AND forumid=xx
where xx is your unique forum you want to grab the threads from.
|
TECK, not really. In my own version of this hack for my forums, I have included the forum title as well as the post replier plus thread starter, all with 1 query. No loop needed - just join it to the original query. Which is why I said at the start of this thread that you need to join for forumid.