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

Search found 21 matches
Smarty Forum Index
Author Message
  Topic: SmartyPaginate 1.6 released
tdmf

Replies: 56
Views: 193269

PostForum: Add-ons   Posted: Wed Jun 20, 2007 5:31 pm   Subject: {$paginate.current_item} - not for multiple pagination sets
Hey there,

i'm using different instances of pagination with your script on my site.

All items have their unique id and everything is fine so far.

In the template i can easily trigger each set ...
  Topic: SmartyValidate: Multiple Fields get ignored by validation
tdmf

Replies: 8
Views: 15444

PostForum: Add-ons   Posted: Thu Sep 14, 2006 11:13 am   Subject: SmartyValidate: Multiple Fields get ignored by validation
Whatever i tried - any effort using $params didnt work for me as only 1 $value would be considered by the function -> so i switched to using $formvars.

Heres my solution:

function smarty_vali ...
  Topic: SmartyValidate: Multiple Fields get ignored by validation
tdmf

Replies: 8
Views: 15444

PostForum: Add-ons   Posted: Wed Sep 13, 2006 1:01 pm   Subject: SmartyValidate: Multiple Fields get ignored by validation
well i tried that but the params-array doesnt only contain my fields but other data like in:
Array
(
[field] => height1
[field2] => height2
[field3] ...
  Topic: SmartyValidate: Multiple Fields get ignored by validation
tdmf

Replies: 8
Views: 15444

PostForum: Add-ons   Posted: Tue Sep 12, 2006 3:12 pm   Subject: SmartyValidate: Multiple Fields get ignored by validation
So how do i check multiple Fields for the same condition then ?

I can easily register a dynamic amount of validators from within php - but i cannot create dynamic {validate.....} statements from w ...
  Topic: Felder werden bei Validierung ignoriert !
tdmf

Replies: 2
Views: 5240

PostForum: Language: German   Posted: Tue Sep 12, 2006 8:18 am   Subject: Felder werden bei Validierung ignoriert !
Gibts denn keine Möglichkeit dynamisch erstellte Felder zu checken ?
SmartyValidate::register_validator('v_height', field1:field2:field3, 'isFloat', 0, false, null, 'step3'); ...
  Topic: SmartyValidate: Multiple Fields get ignored by validation
tdmf

Replies: 8
Views: 15444

PostForum: Add-ons   Posted: Tue Sep 12, 2006 8:16 am   Subject: SmartyValidate: Multiple Fields get ignored by validation
No chance to check dynamicly created fields ?
SmartyValidate::register_validator('v_height', field1:field2:field3, 'isFloat', 0, false, null, 'step3');
Will a validator alwa ...
  Topic: SmartyValidate -> new Validators ignored - old ones chose
tdmf

Replies: 3
Views: 8690

PostForum: Add-ons   Posted: Mon Sep 11, 2006 5:25 pm   Subject: SmartyValidate -> new Validators ignored - old ones chose
i tried exactly what you suggested Wink
No success - my solution was to put everything in different functions - which is a pain in the butt.....
Im close to thinking this has to do with the 64Bit Memo ...
  Topic: Felder werden bei Validierung ignoriert !
tdmf

Replies: 2
Views: 5240

PostForum: Language: German   Posted: Mon Sep 11, 2006 10:38 am   Subject: Felder werden bei Validierung ignoriert !
Im Grunde ists nur eine Tabelle, bei der die ANzahl der Zeilen variabel ist.
Tabelle kann also 1-x Zeilen haben.
In jeder Zeile sind 3 Felder (x,y,z)
Die Felder sind duchnummeriert (Zeile 1: x1,y1, ...
  Topic: Felder werden bei Validierung ignoriert !
tdmf

Replies: 2
Views: 5240

PostForum: Language: German   Posted: Mon Sep 11, 2006 9:07 am   Subject: Felder werden bei Validierung ignoriert !
Hallo,
ich hab ein seltsames Problem mit SmartyValidate under der Überprüfung mehrerer Felder durch den gleichen Validator.

SmartyValidate::register_validator('v_height', 'y1:y2:y3:y4:y5', 'isFloa ...
  Topic: SmartyValidate: Multiple Fields get ignored by validation
tdmf

Replies: 8
Views: 15444

PostForum: Add-ons   Posted: Mon Sep 11, 2006 8:53 am   Subject: SmartyValidate: Multiple Fields get ignored by validation
Its just a simple table with columns X,Y,Z for "Floats".

The amount of rows is dynamic and i JUST want to check that ALL are floats before the form validates to true !!

Please gimme a short hint ...
  Topic: SmartyValidate -> new Validators ignored - old ones chose
tdmf

Replies: 3
Views: 8690

PostForum: Add-ons   Posted: Mon Sep 11, 2006 8:14 am   Subject: SmartyValidate -> new Validators ignored - old ones chose
330 views and not 1 reply.......

impressive - did i chose the wrong forum ?
  Topic: Variablen in Section-Loop mit EVAL auswerten ?
tdmf

Replies: 5
Views: 6283

PostForum: Language: German   Posted: Mon Sep 11, 2006 8:09 am   Subject: Variablen in Section-Loop mit EVAL auswerten ?
Ich dank Dir !

Hab schon gemerkt, dass Smarty ausser Arrays nicht viel gebrauchen kann - aber so gehts auch !
  Topic: SmartyValidate: Multiple Fields get ignored by validation
tdmf

Replies: 8
Views: 15444

PostForum: Add-ons   Posted: Fri Sep 08, 2006 8:23 pm   Subject: SmartyValidate: Multiple Fields get ignored by validation
Hello,
i have a strange problem when checking a form with validators that

SmartyValidate::register_validator('v_height', 'y1:y2:y3:y4:y5', 'isFloat', 0, false, null, 'step3');
SmartyValidate::re ...
  Topic: Evaluating Variables in Section-Loops ?!?!
tdmf

Replies: 3
Views: 4286

PostForum: General   Posted: Fri Sep 08, 2006 6:54 pm   Subject: Evaluating Variables in Section-Loops ?!?!
thank you - ill try that
  Topic: Evaluating Variables in Section-Loops ?!?!
tdmf

Replies: 3
Views: 4286

PostForum: General   Posted: Fri Sep 08, 2006 3:17 pm   Subject: Evaluating Variables in Section-Loops ?!?!
ok to maybe get to the core of the problem:

how do i evaluate a concatenated string/variable like:

"user".$myVar

so that the evaluated variable represents the value of the existing variable e ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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