Jump to content

phpBB registration requirement


Robert Heist

Recommended Posts

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.

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.