Captcha no joomla 1.6 - reCAPTCHA ajax

  • jonnsl
  • Avatar de jonnsl Autor do Tópico
  • Offline
  • JCB! Estagiário
  • JCB! Estagiário
Mais
14 anos 2 meses atrás #24180 por jonnsl
jonnsl created the topic: Captcha no joomla 1.6 - reCAPTCHA ajax
Estou desenvolvendo um solução captcha para o joomla 1.6 ( aqui ), mas estou tendo problemas com o plugin recaptcha, ele simplesmente não quer funcionar, não sou um expert em javascript <!-- s:( --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Triste" /><!-- s:( --> então agradeceria muito se alguem pudesse me ajudar. <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->
Se quiser o patch completo, podera baixar no link ali em cima, mas esta mais ou menos assim:
		$server = "http://api.recaptcha.net"
		JHTML::script('recaptcha_ajax.js', $server.'/js/', false);
      $document = &JFactory::getDocument();
		$document->addScriptDeclaration(
		'window.addEvent(\'domready\', function()
		{
			Recaptcha.create("'.$pubkey.'", "recaptcha_image",
				{
        			theme: '.$theme.',
        			'.$lang.'
        			tabindex: 0,
        			callback: Recaptcha.focus_response_field
				}
			);
		});'
		);
		
		return '<div id="recaptcha_image"></div>';

Please Entrar ou Registrar to join the conversation.