امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
A user has selected to watch all threads that they create and post in.
When I create a new post in a thread, the thread gets watched for that specific user
Code:
Read more
When I create a new post in a thread, the thread gets watched for that specific user
Code:
کد:
$thread = \XF::em()->find('XF:Thread', $threadid);
$user = \XF::em()->find('XF:User', $userid);
$post = \XF::asVisitor($user, function() use ($thread, $message)
{
$creator = \XF::service('XF:Thread\Replier', $thread);
$creator->setMessage($message)...
Read more
