Forums

Verification image colours customising. Anti spam module.

genov80 04 Dec, 2009
Hi everyone,
I'm trying to customise the colours of the image from the 'Anti spam' module but I can't remember how. I did it once a long time ago but now ... 😟 .
Can somebody tell me which file should I look at.

Cheers!
nml375 04 Dec, 2009
Hi,
You're looking for the chrono_verification.php file. Around lines 40-43 the different colors that are used get defined. The lines looks somewhat like this:
$white = imagecolorallocate($im, 255, 255, 255);

The three numbers are the Red, Green, and Blue values for the desired color, and $white is used whenever this color is used/referenced ($white is used for the image background, $greylight and $black are used to write the actual text and it's "shadow").

/Fredrik
genov80 05 Dec, 2009
Thanks Fredrik!
I've managed to change the colours on another site but even the white in the code is 255.255.255 I still have black background on the site I'm working at the moment. That is really strange and I just can't get what's going on. I've never used the joomla cash on this site. Any suggestions?
Thanks!
Max_admin 06 Dec, 2009
Hi genov,

the image colors will not be cached on refresh, try to play with these numbers and you should see the changes after saving the file and refreshing the page!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.