Page 1 of 1

Change recaptcha theme

Posted: 06 Apr 2012, 10:08
by Cybermonk
I would like to change to default theme of recaptcha and use "blackglass".

In my Kunena forum and Jomsocial there is a setting to change the theme used by recaptcha.
Is there a way i can do this for the phoca guestbook?

I found code below in kunena, can i add this to the guestbook somehow to change the appearance?

Code: Select all

 <script type="text/javascript">
		<!--
			var RecaptchaOptions = {
							theme : "blackglass"
			};
		//-->
		</script>
And if im not sure where and how to add it? recaptchalib.php?
Is it possible the option to set recaptcha theme is added to the phoca guestbook options in a future release?

EDIT: sorry i made a new topic, i now see viewtopic.php?f=2&t=19108 and thats the same question, but no reply so far.

Re: Change recaptcha theme

Posted: 09 Apr 2012, 20:53
by dip
Try to edit file components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php.
after the line:

Code: Select all

if ((int)$this->tmpl['captcha_id'] == 4) {
insert:

Code: Select all

echo '<script type="text/javascript">var RecaptchaOptions = { theme : "blackglass" };</script>';
More info:
https://developers.google.com/recaptcha ... tomization

Re: Change recaptcha theme

Posted: 10 Apr 2012, 10:40
by Cybermonk
Thank you :D

Re: Change recaptcha theme

Posted: 10 Apr 2012, 13:17
by carsten888
Try to edit file components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php.
on Joomla 2.5 that would be:
components/com_phocaguestbook/views/guestbook/tmpl/default.php

if you use a template override for this, then a PG update would not overwrite your changes.