Bạn được Huong.nguyenmai mời tham gia diễn đàn viết bài kiếm tiền VNO, bấm vào đây để đăng ký.
1 người đang xem

Admin

Nothing to lose.. your love to win..
23,171 ❤︎ Bài viết: 4158 Tìm chủ đề
Đổi Category thành Forum

Vào phpmyadmin chạy câu lệnh SQL

PHP:
UPDATE `xf_node` SET `node_type_id`='Forum' WHERE `xf_node`.`node_id`=xxx;

Sau đó chạy tiếp câu lệnh:

PHP:
INSERT INTO `xf_forum` (`node_id`, `discussion_count`, `message_count`, `last_post_id`, `last_post_date`, `last_post_user_id`, `last_post_username`, `last_thread_title`, `moderate_threads`, `moderate_replies`, `allow_posting`, `allow_poll`, `count_messages`, `find_new`, `default_prefix_id`, `default_sort_order`, `default_sort_direction`, `list_date_limit_days`, `require_prefix`, `allowed_watch_notifications`, `min_tags`, `thumb_sources`, `thumb_width`, `thumb_height`, `require_thumb`) VALUES ('xxx', '0', '0', '0', '0', '0', '', '', '0', '0', '1', '1', '1', '1', '0', 'last_post_date', 'desc', '0', '0', 'all', '0', '', '0', '0', '0')

Nếu báo lỗi Prefix Cache thì chạy code sau:

PHP:
INSERT INTO `xf_forum` (`node_id`, `discussion_count`, `message_count`, `last_post_id`, `last_post_date`, `last_post_user_id`, `last_post_username`, `last_thread_title`, `moderate_threads`, `moderate_replies`, `allow_posting`, `allow_poll`, `count_messages`, `find_new`, `default_prefix_id`, `default_sort_order`, `default_sort_direction`, `list_date_limit_days`, `require_prefix`, `allowed_watch_notifications`, `min_tags`, `thumb_sources`, `thumb_width`, `thumb_height`, `require_thumb`, `prefix_cache`) VALUES ('xxx', '0', '0', '0', '0', '0', '', '', '0', '0', '1', '1', '1', '1', '0', 'last_post_date', 'desc', '0', '0', 'all', '0', '', '0', '0', '0', '')

Với xxx là ID của Category cần chuyển.
 
Chỉnh sửa cuối:
23,171 ❤︎ Bài viết: 4158 Tìm chủ đề
Đổi Forum thành Category

PHP:
UPDATE `xf_node` SET `node_type_id`='Category' WHERE `xf_node`.`node_id`=2;

Thay 2 bằng ID của Forum cần chuyển.
 
Chỉnh sửa cuối:
Từ Khóa: Sửa

Những người đang xem chủ đề này

Back