Cannot display reCaptcha image in my template .tpl file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
seamus
Forum Newbie
Posts: 1
Joined: Sat Nov 14, 2009 7:05 am

Cannot display reCaptcha image in my template .tpl file

Post by seamus »

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