Sửa lỗi Thread Prefix Listing 1.2.0

  • Thread starter Thread starter PVS
  • Ngày gửi Ngày gửi
[VNXF] Theme Digital – Sự lựa chọn hoàn hảo cho diễn đàn công nghệ hiện đại Group Zalo của Cộng đồng người dùng XenForo tại Việt Nam

PVS

Super Moderator
Thành viên BQT
Sau thi install add-ons Thread Prefix Listing 1.2.0 bị lỗi

Cách khắc phục:
- Tìm /library/PrefixForumListing/Extend/ControllerPublic/Forum.php
Dòng thứ 5:
Mã:
public function actionIndex()
Sửa thành
Mã:
public function actionForum()

Dòng 7
Mã:
$response = parent::actionIndex();
Sửa thành:
Mã:
$response = parent::actionForum();
- Tìm /library/PrefixForumListing/DataWriter/Discussion/Thread.php

Dòng thứ 4
Mã:
protected function _discussionPostDelete(array $messages)
Sửa thành
Mã:
protected function _discussionPostDelete()

Dòng thứ 12
Mã:
return parent::_discussionPostDelete($messages);
Sửa thành
Mã:
return parent::_discussionPostDelete();

Dòng thứ 16:
Mã:
protected function _discussionPostSave(array $messages)

Sửa thành
Mã:
protected function _discussionPostSave()

Dòng thứ 44:
Mã:
return parent::_discussionPostSave($messages);
Sửa thành:
Mã:
return parent::_discussionPostSave();

Lưu tất cả lại là xong.
Chúc các bạn thành công!


Nguồn: tuoitreit.vn​
 
Back
Top