Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Suggestions, Wishlists & Feature Requests    Topic: Template: Ability specify KCAPTCHA background colour
Pages: [1]   Go Down
  Print  
Author Topic: Template: Ability specify KCAPTCHA background colour  (Read 2635 times)
0 Members and 1 Guest are viewing this topic.
harikaram
Newbie
*

Karma: 3
Offline Offline

Posts: 19


« on: February 15, 2011, 23:22:13 »

Either  via <IMG> url query string, like (in tpl_form.php)...

Code:
<img ... src="<?php echo $link?>?bgcolor=FFA3E4" />

Or in the general configs (or both!)

Gratefully,
Harikaram Singh
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: February 16, 2011, 22:39:46 »

You can setup this in /components/com_jcomments/libraries/kcaptcha/kcaptcha_config.php:

Code: (php)
$foreground_color = array(180, 180, 180);
$background_color = array(246, 246, 246);

Or you want to have a way to override the default KCAPTCHA's settings from template?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
harikaram
Newbie
*

Karma: 3
Offline Offline

Posts: 19


« Reply #2 on: February 16, 2011, 23:45:43 »

Either the template or the config settings as I use a centralised Joomla installation for multiple sites and changing the kcaptch.config.php file would change it for all of them!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: April 19, 2011, 04:52:11 »

As kcaptcha_config.php is included directly from kcaptcha.php we can't override kcaptcha's variables. I see only one way - to modify kcaptcha_config.php and take current bgcolor value from some request variable. Or you have more correct idea? I do not want to modify KCAPTCHA library so the solution must not change kcaptcha.php...
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Suggestions, Wishlists & Feature Requests    Topic: Template: Ability specify KCAPTCHA background colour
 
Jump to: