Reeve of shinra, thanks for your feedback.
We have added two fields to the thread table (pubstart and pubend).
What we want is that non-admins don't see posts that have not been 'published' yet.
What I have now done is using the search_process_fulltext hook:
Code:
($thread_query_logic[] = "thread.forumid != 5 or (thread.pubstart < '".date ("Y-m-d H:i:s")."' AND thread.pubend > '".date ("Y-m-d H:i:s")."'))";
Forumid 5 is the news forum. I have temporarily turned off result caching to be sure this works (it does).
This indeed filters the results out of the resultset. I only want to do this for non-admins.
Furthermore I need to override the forumpermission checking, else normal users don't see the correct ones at all (as they don't have access to the forum).
Hope I will be able to fix this ....