Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Problem with captcha plugin

 
Post new topic   Reply to topic    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
thiago.ceor
Smarty n00b


Joined: 05 Nov 2009
Posts: 1

PostPosted: Thu Nov 05, 2009 1:47 am    Post subject: Problem with captcha plugin Reply with quote

I made the download of captcha plugin, and I put the function.captcha.php and captcha.class.php under the plugin directory of Smarty.

1. Put function.captcha.php and captcha.class.php in your plugins folder
2. Put arial.ttf or other .ttf file in your template_dir (and change function.captcha.php line 14 accordingly)
3. Change $tempfolder (function.captcha.php line 15 & captcha.php line 2) to a folder that exists and is writtable by the web server
4. Put captcha.php to a publishable location and see if you need to change function.captcha.php line 23.
5. See validate.php and either include it or copy it to another file (it is practically one line) for your use.
6. Put this line at the beggining of your code:
define ('CAPTCHA_SALT', 'kjhfgkjhfsdkjghskjd hkjfdnkmbn ,msdnbskjh');
It is needed both when created and when validating. You _MUST_ change it to something of your own.

and on my tpl I put
{captcha name="captcha" length=4}

When I execute that appear for me this:

PHP Fatal error: Smarty error: [in cadastro.tpl line 175]: syntax error: unrecognized tag 'captcha' (Smarty_Compiler.class.php, line 590) in /usr/share/php/Smarty/Smarty.class.php on line 1093

Iam using the last stable version of Smarty.


I dont know what I have to do for function that, if anybody can help me will be apreciate.

Thanks for all

Thiago Cesar
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4174
Location: Hamburg / Germany

PostPosted: Thu Nov 05, 2009 7:54 pm    Post subject: Reply with quote

Looks like that Smarty can't find function.captcha.php in its plugins folder.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP