MyBB Community Forums
Captcha on Post - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 Security Management and Support (https://community.mybb.com/forum-153.html)
+------ Thread: Captcha on Post (/thread-117186.html)



Captcha on Post - high105 - 2012-04-19

Is there a mod or plugin that I can make it so until you have 5 posts, you must complete a captcha before submitting it? If you need more clarification please let me know.


RE: Captcha on Post - Yaldaram - 2012-04-19

This tip will force Captcha to the new users having the post count below 5 posts.

Open the following files;
./showthread.php line 1052
./newreply.php line 438 and 1030
./newthread.php line 370 and 881;

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

and Change it into;

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

Change the 5 the the number of posts you want to check against.


RE: Captcha on Post - SunDi3yansyah - 2013-02-26

okay this is how I did it perfectly. Big Grin

Me Wrote:what if determined appropriate group?
certain groups should use captchaimage,
or
certain groups who do not use captchaimage?
and what if more than one group?