View previous topic :: View next topic |
Author |
Message |
ThermoDust Smarty Regular
Joined: 10 Sep 2003 Posts: 38
|
Posted: Sun Jun 20, 2004 11:07 pm Post subject: SmartyValidate: _is_length |
|
|
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 |
|
ThermoDust Smarty Regular
Joined: 10 Sep 2003 Posts: 38
|
Posted: Tue Jun 22, 2004 8:31 am Post subject: |
|
|
any? anyone! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Jun 22, 2004 1:23 pm Post subject: |
|
|
Firstly, are you using the latest CVS? |
|
Back to top |
|
ThermoDust Smarty Regular
Joined: 10 Sep 2003 Posts: 38
|
Posted: Tue Jun 22, 2004 1:31 pm Post subject: |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Jun 22, 2004 1:46 pm Post subject: |
|
|
Grab the latest CVS version, that is going to be the best bet. |
|
Back to top |
|
ThermoDust Smarty Regular
Joined: 10 Sep 2003 Posts: 38
|
Posted: Tue Jun 22, 2004 1:47 pm Post subject: |
|
|
I assume it is in the plugin area of smarty or is there a webpage just for it? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Jun 22, 2004 1:57 pm Post subject: |
|
|
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 |
|
ThermoDust Smarty Regular
Joined: 10 Sep 2003 Posts: 38
|
Posted: Fri Jun 25, 2004 12:08 am Post subject: |
|
|
It keeps giving somthing about a networking error... |
|
Back to top |
|
|