XenForo
Administrative
- Thread starter
- Admin
- #1
PHP:
Read more
ادامه مطلب...
Code:
class Thread extends XFCP_Thread{
public function actionAddReply(ParameterBag $params)
{
//$this->assertPostOnly();//
$param = parent::actionAddReply($params);
$visitor = \XF::visitor();
$user = $visitor->user_id;
$threadid = $param->thread_id;
$topic = $this->assertViewableThread($threadid, ['Watch|' . $visitor->user_id]);
$thread = \XF::finder('pointssystem:Node')->where('node_id','=',$topic->node_id)->fetchOne()...
Read more
ادامه مطلب...