Virtual Brain Online Logo

Bookmark: Root \ CAPTCHAv2 \ How to add CAPTCHAv2 to the FluxBB forum software

How to add CAPTCHAv2 to the FluxBB forum software


Last Updated: 2010-04-18

FluxBB, previously known as PunBB, is a lightweight forum software. I will explain how to install CAPTCHAv2 so that you can use it with FluxBB.

First download the latest CAPTCHAv2 mod for FluxBB.
FluxBB_CAPTCHAv2-pluginv0.9.zip for FluxBB version 1.4 and 1.2.21/22
FluxBB_CAPTCHAv2-pluginv0.7.zip for FluxBB version 1.4 and 1.2.21
Changes:

18 October 2009 v0.9
* Fixed the issue where the question_id would default to 0 when no cookies are accepted.
This would validate any answer as true. Default is now to return invalid.
* Removed .svn directories.

05 July 2009 v0.8
* First release of the CAPTCHAv2 package with login form.
* Moved abuse.php into captchav2 directory and added config option to install script
* Added new config variable to handle above $abuse_php_path
* Added checks for config.php to prevent error messages when CAPTCHAv2 is not yet installed.
* Added link to login form when installation is complete.
* Changed CSS to prevent visited URLs to turn into visited color for management UI
* Fixed "login right after logoff condition"
03 July 2009 v0.7
* Renamed method generate_list to generate_question_list
* Added options to manage IP cache table
* Fixed issue in FluxBB 1.2.21 modified register.php, added missing " to human test input. Answer does no longer fail.
* Added option to add IP to .htaccess when adding new or modifying an existing. NOTE: whitelist checks are overrule the checkbox so a whitelisted IP can not be added to .htaccess
* Added installer script, no more manual config.php creation

29 June 2009 v0.6
* Added register.php for FluxBB 1.2.21
* Implemented rebuild_index() method in class_captcha_manage.php
* Added check to class_captcha.php and class_captcha_manage.php to ensure class_sql.php has been loaded
* Added truncate() method to class_sql.php


Extract the zip file and upload the include and plugin directory into your FluxBB forum directory. Don't worry, nothing will be overwritten.

The rest of the guide will assume that you have your forum installed into http://www.yourserver.com/forum/ just replace /forum/ with your path if your forum is installed elsewhere.

  • Now log into your FluxBB forum as administrator and open the "Administration" page.
    The plugin menu should list "Manage CAPTCHA" as an available option, click on it.
  • You should now see the message that you need to run the installer, click on "Goto installer" to continue.
  • The installer should have detected your FluxBB config file and used the information to fill out the "Database connections settings" for you. Please ensure that all information is correct. Enter the required information for all field marked with (Required) then click on "Next" at the bottom of the page to continue
  • Now click the "Download config.php" file button and save the file as config.php
    Note: Internet Explorer will sometimes add other characters to a filename, ensure that the file is called config.php
    Now upload the file into the FluxBB include directory.
    WARNINGDo not upload the config.php into your FluxBB root directory or you will overwrite the FluxBB config file. The include directory does not contain a config.php file.
  • Time to press the "Create Tables" button, go back to the FluxBB administration page when done
  • This time the "Manage CAPTCHA" link will present you with different options. The CAPTCHAv2 administrator guide will explain the different menu options....
    For now add a few extra questions and delete the default questions.


OK almost done, with the tables in place it is time to modify the register.php file to ask questions and to upload the abuse.php file. abuse.php is the file visitors will see if they visit from a blocked IP address. The file needs to know where it can find your FluxBB forum.
  • abuse.php is preconfigured for a forum located in http://www.yourserver.com/forum/ if your forum is somewhere else edit the file and look at line two which should read:
    $inc_dir = './forum/include/';
    If your forum is located in http://www.yourserver.com/forum/ then the default is fine. If your forum's URL is http://www.yourserver.com/mysexyforum/ change the line to
    $inc_dir = './mysexyforum/include/';
    Save the changes and upload it to your document root so that it can be access via http://www.yourserver.com/abuse.php
  • The last step is to rename on of the register.php-modified files to register.php and replace your existing file.
  • Now open your forum, click on "Register" and you should be presented with a question below the E-mail field.


HELP Section:
  • Before you remove the modification it would be great if you could email me the debug out. Simply change $debug in config.php located in the include directory.
    $debug = 1; //This will email you the debug messages
    or
    $debug = 2; //This will display debug messages on screen
    Once you have the debug information goto the Support Form and paste the output into the Message box. I will attempt to offer a solution ASAP.
  • Possible Errors and solutions:
    • Apache reports: Server error! .... Error 500
      • This message is caused by an invalid entry in your .htaccess file. Please send me the contents of the file (Support Form) then restore your backup or delete the file. You should also restore the register.php file to the original file provided by FluxBB to prevent further writes to .htaccess
    • Any other errors can be fixed by restoring the register.php file to the original file provided by FluxBB.


Manual modification of register.php
You can modify the register.php file yourself if the zip package does not contain a modified version for your installation or if you prefer to do it yourself.
The steps required will be added in a little while.

 

Title: Webmaster
Posted By: Max On: 2009-07-17 12:28
Running: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Installed like a charm, only diff is that 1&1 requires the .htaccess to contain "AddHandler x-mapp-php5 .php" to enable PHP5 as default.

Using FluxBB 1.4 BETA.

Many thanks,
Max

 

Add Your Comment:

Note: All posts require administrator approval. Please allow 24 hours for message approval.

Name:
E-Mail:
Title
Plain text only, less then 65 000 characters.

How many times can you find the letter a in this sentence?

Please answer the question above and type the answer into the text box below.