Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

SmartyValidate: _is_length

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
ThermoDust
Smarty Regular


Joined: 10 Sep 2003
Posts: 38

PostPosted: Sun Jun 20, 2004 11:07 pm    Post subject: SmartyValidate: _is_length Reply with quote

Code:
{validate form="new_threads" field="description" empty="yes" criteria="isLength" min="0" max="75" message="<br />
&&<b>•</b> <em><b>Description must be between 0 and 75 characters long.</b></em>"}


Why is it still sending the error when there is nothing entered into description?

I set it to do empty="yes"... isn't that all I have to do to say it can be empty?
Back to top
View user's profile Send private message
ThermoDust
Smarty Regular


Joined: 10 Sep 2003
Posts: 38

PostPosted: Tue Jun 22, 2004 8:31 am    Post subject: Reply with quote

any? anyone!
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7365
Location: Lincoln Nebraska, USA

PostPosted: Tue Jun 22, 2004 1:23 pm    Post subject: Reply with quote

Firstly, are you using the latest CVS?
Back to top
View user's profile Send private message Visit poster's website
ThermoDust
Smarty Regular


Joined: 10 Sep 2003
Posts: 38

PostPosted: Tue Jun 22, 2004 1:31 pm    Post subject: Reply with quote

I don't know, I just donwloaded it like a week and a half ago.

I used to use the one that said init but now it says connect. not sure that helps...
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7365
Location: Lincoln Nebraska, USA

PostPosted: Tue Jun 22, 2004 1:46 pm    Post subject: Reply with quote

Grab the latest CVS version, that is going to be the best bet.
Back to top
View user's profile Send private message Visit poster's website
ThermoDust
Smarty Regular


Joined: 10 Sep 2003
Posts: 38

PostPosted: Tue Jun 22, 2004 1:47 pm    Post subject: Reply with quote

I assume it is in the plugin area of smarty or is there a webpage just for it?
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7365
Location: Lincoln Nebraska, USA

PostPosted: Tue Jun 22, 2004 1:57 pm    Post subject: Reply with quote

cvs -d :pserver:anonymous@cvs.phpinsider.com:/export/CVS login
cvs -d :pserver:anonymous@cvs.phpinsider.com:/export/CVS checkout SmartyValidate

There is no password, just hit enter when prompted for one.

If you're using Windows, see this thread about CVS options:

http://www.phpinsider.com/smarty-forum/viewtopic.php?t=2469&start=75
Back to top
View user's profile Send private message Visit poster's website
ThermoDust
Smarty Regular


Joined: 10 Sep 2003
Posts: 38

PostPosted: Fri Jun 25, 2004 12:08 am    Post subject: Reply with quote

It keeps giving somthing about a networking error...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons 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