Robert Heist Posted February 22, 2011 Share Posted February 22, 2011 I am using phpBB 3.0.8 and I've asked my question on the phpBB forum (http://www.phpbb.com/community/viewtopic.php?f=46&t=2122055) and got some feedback but I need more. I wish to add a quiz that potential registrants must pass before they can register to use the forum. The quiz will be 3-5 multiple choice questions chosen at random from a pool of 50 or so. The intent is not to block spammers, but to actually test potential registrants to see if they qualify to register (if they have read a book). I believe there are 2 potential approaches I could take. One would be to edit the "registration" page which is actually a multi purpose file called ucp.php. The other is redirecting all the registration links to the quiz and emailing them an "invitation" to register if they pass the quiz which would contain the link to the actual registration page. I have looked at the code of ucp.php and I understand that it is using a switch to detect when someone arrives with the url variable "register" but I don't quite understand what is happening with: $module->load('ucp', 'register'); $module->display($user->lang['REGISTER']); For the second option I read some of the registration questions on the phpBB forum. It might be easier (better?) to change all the registration links to connect to my quiz (http://www.phpbb.com/community/viewtopic.php?f=46&t=2110354) and if they pass the quiz send them a registration code to replace the CAPCHA code (http://www.phpbb.com/community/viewtopic.php?f=46&t=2111999). It was also suggested that I might try using custom registration fields but this solution wouldn't allow for the questions to be randomly pulled from a pool or 50. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.