Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to make a topic invisible until topic_start_time?


_ck_
Participant

@_ck_

See that’s the thing, you won’t be able to pre-guess everywhere it will show up. Any future plugins will not know to obey your time logic.

However most code should know to check for topic_status==0

If you set it higher and then set it back when the time is right, then you should be able to get around all functions. Just don’t use 1 or 2 as a marker.

Then every few minutes do a mysql check for any topics that have that unique number set in topic_status and if their time has past, set topic_status to zero.

That reminds me, bbpress will need a pseudo-cron that can be hooked with a real cron job if so desired.

Skip to toolbar