Xuất hiện những cảnh báo sau đây:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key 2 - Line: 89 - File: inc/plugins/phptpl.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/phptpl.php 89 errorHandler->error
[PHP]   {closure}
/inc/plugins/phptpl.php 109 preg_replace_callback_array
/inc/plugins/phptpl.php(70) : eval()'d code 19 phptpl_parsetpl
/global.php 844 phptpl_templates->get
/printthread.php 16 require_once
Warning [2] Undefined array key 2 - Line: 89 - File: inc/plugins/phptpl.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/phptpl.php 89 errorHandler->error
[PHP]   {closure}
/inc/plugins/phptpl.php 109 preg_replace_callback_array
/inc/plugins/phptpl.php(70) : eval()'d code 19 phptpl_parsetpl
/global.php 844 phptpl_templates->get
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 102 - File: global.php(844) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(844) : eval()'d code 102 errorHandler->error
/global.php 844 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "avatar" - Line: 80 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 80 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "pms_unread" - Line: 99 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 99 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "logoutkey" - Line: 101 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 101 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.33 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.33 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



F@rum_Haiquan.info (*_*)
Hướng dẫn Captcha before posting new thread/post (Xác nhận capcha khi gửi bài/trả lời - Bản rút gọn

+- F@rum_Haiquan.info (*_*) (http://haiquan.info/F@rum)
+-- Diễn đàn: TIN HỌC- CÔNG NGHỆ (http://haiquan.info/F@rum/forumdisplay.php?fid=101)
+--- Diễn đàn: MÃ NGUỒN (http://haiquan.info/F@rum/forumdisplay.php?fid=102)
+---- Diễn đàn: MYBB (http://haiquan.info/F@rum/forumdisplay.php?fid=103)
+---- Chủ đề: Hướng dẫn Captcha before posting new thread/post (Xác nhận capcha khi gửi bài/trả lời (/showthread.php?tid=1383)



Hướng dẫn Captcha before posting new thread/post (Xác nhận capcha khi gửi bài/trả lời - ngocvu1403 - 04-07-2013

Thấy bên mybb.vn khá hay .... Bạn cũng có thể dùng cái này để chặn auto post..hihi




Thực hành:
Mở lần lượt file sau (ở trong host nhá)
./showthread.php
./newreply.php (Có 2 line)
./newthread.php (Có 2 line)

Tìm:


Code:
if($mybb->settings['captchaimage'] == 1 && function_exists("imagepng") && !$mybb->user['uid'])

Tuy nhiên với phiên bản mới thì code có khác đôi chút nhưng nó cũng tương tự vậy
Thay thế:


Code:
if($mybb->settings['captchaimage'] == 1 && function_exists("imagepng") && (!$mybb->user['uid'] || $mybb->user['postnum'] < 10))


Nếu không hiện hoặc dùng recaptcha thì thay số "1" bằng số "2" là được

Trích dẫn:if($mybb->settings['captchaimage'] == 2 && function_exists("imagepng") && (!$mybb->user['uid'] || $mybb->user['postnum'] < 10))



Nó chỉ có tác dụng với những thành viên có số bài viết dưới 10 bài. Vì vậy nó sẽ không phải là điều phải bận tâm đối với những thành viên nhiệt tình