• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

How to automatically lock and unlock a specific thread using CRON?

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
Hello,

I have a thread that is supposed to be open for posts just 24 hours per month - on the 13th of each month, for people to vent their frustrations and get some laughs and group therapy of sorts. :)

So far the locking/unlocking was done manually, but it's annoying, and I'm sure there can be at least one way to automate it.

But... how? :)

The lowest hanging fruit would be to run two CRON jobs with the right parameters to lock or unlock the thread. This could be either some API call...

Read more
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا