scout adlı üyeden alıntı: mesajı görüntüle
Thread.php dosyasının 16. satırındaki if metodunu aşağıdaki kod ile değiştirir misiniz?


        
  if( !method_exists($smsLimitThreadReply, 'smsLimitThreadReply') ) {
  return $smsLimitThreadReply;
}
Şöyle olması gerekiyor tüm fonksiyonun;

    public function actionIndex(ParameterBag $params)
    {
        $response = parent::actionIndex($params);

        $visitor = XF::visitor();

         if( !method_exists($smsLimitThreadReply, 'smsLimitThreadReply') ) {
  return $smsLimitThreadReply;

        $response->setParam('smsLimitThreadReply', $this->checkLimitThreadReply($visitor, $params));

        return $response;
    }
Söylediğiniz değişikliği yaptığımızda istenilen sayfa bulunamadı hatası alıyoruz.

Dosyanın ilk 50 satırı aşağıdaki gibi


<?php

namespace XenForoTurkiyeSMSXFPubController;

use XFMvcFormAction;
use XFMvcParameterBag;

class Thread extends XFCP_Thread
{
    public function actionIndex(ParameterBag $params)
    {
        $response = parent::actionIndex($params);

        $visitor = XF::visitor();
       
        $response->setParam('smsLimitThreadReply', $this->checkLimitThreadReply($visitor, $params));

        return $response;
    }

public function actionAddReply(ParameterBag $params)
    {
        $response = parent::actionAddReply($params);
        $visitor = XF::visitor();
       
        if($visitor['user_id'] == 0)
            return $response;
       
        if ($this->checkLimitThreadReply($visitor, $params))
            return $this->error(XF::phrase('xenforoturkiye_sms_need_verification', ['link' => $this->buildLink('account/sms')]));
       
        return $response;
    }

    public function actionReply(ParameterBag $params)
    {
        $response = parent::actionReply($params);
        $visitor = XF::visitor();
       
        if($visitor['user_id'] == 0)
            return $response;

        if ($this->checkLimitThreadReply($visitor, $params))
            return $this->error(XF::phrase('xenforoturkiye_sms_need_verification', ['link' => $this->buildLink('account/sms')]));
       
        return $response;
    }

// Check if the user already member of sms verified usergroup