[RSS Feed/News] Help with extending Thread controller (Public)

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
PHP:

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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom