Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 9 matches
Smarty Forum Index
Author Message
  Topic: Smarty Validate IsFile
mjerom

Replies: 6
Views: 16786

PostForum: Add-ons   Posted: Sat Mar 05, 2005 7:16 pm   Subject: Smarty Validate IsFile
I corrected my code :

SmartyValidate::connect($smarty);

SmartyValidate::register_form('artiste_vignette_form');



if(empty($_POST)) & ...
  Topic: Smarty Validate IsFile
mjerom

Replies: 6
Views: 16786

PostForum: Add-ons   Posted: Sat Mar 05, 2005 7:33 am   Subject: Smarty Validate IsFile
Still not working for me ...
I really don't understand my problem !
here is the code I am using :

tpl :

<table class="adminheading" >
<tr>
<th class="modific ...
  Topic: Smarty Validate IsFile
mjerom

Replies: 6
Views: 16786

PostForum: Add-ons   Posted: Tue Mar 01, 2005 3:57 pm   Subject: Smarty Validate IsFile
no I did not forgot the enctype...
Crying or Very sad

The thing is that is was working before upgrading validate with the CVS one.
I keep on investigating !
  Topic: Smarty Validate IsFile
mjerom

Replies: 6
Views: 16786

PostForum: Add-ons   Posted: Tue Mar 01, 2005 12:36 pm   Subject: Smarty Validate IsFile
Am i missing something, I checked everything (as far as I can...)

my problem is that I need to make an upload form but this upload must be optional , I' m using this code :
<input class="i ...
  Topic: Smarty Validate IsFile
mjerom

Replies: 6
Views: 16786

PostForum: Add-ons   Posted: Sat Feb 26, 2005 12:38 pm   Subject: Smarty Validate IsFile
With the last CVS I cannot use the criteria IsFileType with empty="yes"

<input class="inputbox" name="vignette_news" type="file" size="32" maxlength="255" >
<br />
{validate form="new ...
  Topic: SmartyValidate and form arrays
mjerom

Replies: 17
Views: 44168

PostForum: Add-ons   Posted: Thu Feb 10, 2005 5:30 pm   Subject: SmartyValidate and form arrays
& it's rocking !
Very Happy

yeah
  Topic: SmartyValidate and form arrays
mjerom

Replies: 17
Views: 44168

PostForum: Add-ons   Posted: Thu Feb 10, 2005 5:18 pm   Subject: SmartyValidate and form arrays
SmartyValidate.class.php/1.33/Thu Feb 10 17:17:09 2005//
sorry not better...

Question maybe it's stupid but :
can't you substitute
strlen($formvars[$_field]) == 0
with
$formvars[$_field] == ""
...
  Topic: SmartyValidate and form arrays
mjerom

Replies: 17
Views: 44168

PostForum: Add-ons   Posted: Thu Feb 10, 2005 3:29 pm   Subject: SmartyValidate and form arrays
glup :

->from tpl
{validate form="track_form" field="liste[]" criteria="notEmpty" message="Vous devez s&lectionner au moins un artiste !"}

->resulting errors
Notice: Undefined variable: ...
  Topic: SmartyValidate and form arrays
mjerom

Replies: 17
Views: 44168

PostForum: Add-ons   Posted: Wed Feb 09, 2005 6:20 pm   Subject: SmartyValidate and form arrays
Hi everybody,
the cvs code is working good,
still i get a error (notice) :

Notice: Array to string conversion in /var/www/html/_DEV/redust/inc/smarty/SmartyValidate.class.php on line 203

no pb ...
 
Page 1 of 1
All times are GMT
Jump to:  


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