I tried it but it does not work.
You can see all threads if you know the forum id of the hidden forum, which isnt that hard to find :P
Think I found a solution but need a little help.
- I created a coloumn in the table 'thread' with the name "hide".
- If the value of 'hide' is '0' then the thread will be displayed as normal (forumdisplay.php).
Have been looking at the forumdisplay.php coding, but can't locate the query where I should add " AND hide='0' ".
Anyone know where to add this?
////////////////////////////////////////////////////
Think I found it.
Is this correct:
$getthreadids = $db->query_read("
SELECT " . iif($sortfield == 'voteavg', $votequery) . " threadid
$hook_query_fields
FROM " . TABLE_PREFIX . "thread AS thread
$hook_query_joins
WHERE forumid = $foruminfo[forumid]
AND hide= 0 AND sticky = 0
$visiblethreads
$globalignore
$datecut
$limitothers
$hook_query_where
ORDER BY sticky DESC, $sqlsortfield $sqlsortorder
LIMIT $limitlower, $perpage
");
|