Cannot display reCaptcha image in my template .tpl file
Posted: Sat Nov 14, 2009 7:15 am
I am having problems displaying the reCaptcha image in my template file (registration_form.tpl)
I have registration_form.tpl which displays my form, and i also have registration_form.php.
I cannot insert php code into the .tpl file, as it does not work, hence no image. reCaptcha blog post says the form file MUST have the .php extension, otherwise it will NOT work. But i cant rename it to .php as its a template .tpl file.
I can get the recapta to work perfect with form.php & process.php by using code from the PHP blog post instructions at: http://recaptcha.net/plugins/php/
Also, I use the smarty template engine.
Any idea on how to display & call the flaming reCaptcha image in a template .tpl file.
I have registration_form.tpl which displays my form, and i also have registration_form.php.
I cannot insert php code into the .tpl file, as it does not work, hence no image. reCaptcha blog post says the form file MUST have the .php extension, otherwise it will NOT work. But i cant rename it to .php as its a template .tpl file.
I can get the recapta to work perfect with form.php & process.php by using code from the PHP blog post instructions at: http://recaptcha.net/plugins/php/
Also, I use the smarty template engine.
Any idea on how to display & call the flaming reCaptcha image in a template .tpl file.