... its just that both RoundCube trunk packages and your MyRoundCube plugin collection were using the same filename format and I thought that trunk-r-2850.zip of MyRoundCube was the same file as RoundCube trunk-r2850.zip. Stupid of me!... there is a '-' there (trunk-r-2850.zip)!
Anyways... Now, I am having trouble adding a captcha in the login page. I've checked the instructions in captcha.php and followed the steps...
- #1- Configure "captcha/config/config.inc.php.dist":
- Added 'login' to $rcmail_config['captcha_page']:
$rcmail_config['captcha_page'] = array("contactus","recpw","register"[B][COLOR=Red],"login"[/COLOR][/B]);
Is this the right way to have a captcha field in the login page?
- #2- Copy file to "config.inc.php" ("config.inc.php.dist" must still be present !!!). - Done! made a copy of the 'config.inc.php.dist' named 'config.inc.php'
- Kept the original 'config.inc.php.dist' in place
- #3- Register plugin ("./config/main.inc.php ::: $rcmail_config['plugins']").
- Done! Now it looks like:
$rcmail_config['plugins'] = array('markasjunk'[B][COLOR=Red], 'captcha'[/COLOR][/B]);
- #4- Captcha Challenge template hook:
Not sure what this actually wants me to do???
Further reading of the captcha.php says:
captcha::form () will return a html string to be inserted into textarea/
[save] and alike. User input is veryfied with captcha::check ().
Lost me there... Do I need to manually edit the login page's code and add something there?
You should leave the sample COLLEGE.ttf next to this script,
else you have to define the _FONT_DIR constant correctly.
Use only 1 font type.
Ok, left font in place and used only this one.
... and also there is this config section that I didn't touch at all:
#-- config
define( 'EWIKI_FONT_DIR', dirname(__FILE__)); // which fonts to use
define( 'CAPTCHA_INVERSE', 0); // white or black(=1)
define( 'CAPTCHA_TIMEOUT', 5000); // in seconds (=max 4 hours)
define( 'CAPTCHA_MAXSIZE', 4500); // preferred image size
define( 'CAPTCHA_COOKIE', 'captcha_solved'); // to unlock captcha protection
define( 'CAPTCHA_DATA_URLS', 0); // RFC2397-URLs exclude MSIE users
define( 'CAPTCHA_TEMP_DIR', 'plugins/captcha/temp');
Should I change something in this?
Am I missing something or doing something wrong? Any thoughts?