Change recaptcha theme

Phoca Guestbook - creating guestbooks in Joomla! CMS
Cybermonk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Apr 2012, 10:04
Contact:

Change recaptcha theme

Post 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.
dip
Phoca Member
Phoca Member
Posts: 43
Joined: 09 Apr 2012, 16:33
Location: Russia

Re: Change recaptcha theme

Post 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
Cybermonk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Apr 2012, 10:04
Contact:

Re: Change recaptcha theme

Post by Cybermonk »

Thank you :D
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

Re: Change recaptcha theme

Post 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.
Post Reply