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 16 matches
Smarty Forum Index
Author Message
  Topic: SmartyValidate - serious problems with browser "Back&qu
tangfucius

Replies: 9
Views: 21261

PostForum: Add-ons   Posted: Mon Nov 14, 2005 10:41 pm   Subject: SmartyValidate - serious problems with browser "Back&qu
that would require add the checks JUST for smartyvalidate in every single page that uses it, it can easily become a nightmare.

is that how you personally deal with this problem? is there better wa ...
  Topic: SmartyValidate - serious problems with browser "Back&qu
tangfucius

Replies: 9
Views: 21261

PostForum: Add-ons   Posted: Mon Nov 14, 2005 6:31 am   Subject: SmartyValidate - serious problems with browser "Back&qu
SmartyValidate is nice and powerful.
However here is one of the serious problem that I ran into:
Whenever I'm on a page with smartyvalidate, say the first time my input doesn't validate, I put in th ...
  Topic: SmartyValidate problem: multiple forms on one page
tangfucius

Replies: 8
Views: 24934

PostForum: Add-ons   Posted: Thu Sep 08, 2005 5:05 pm   Subject: SmartyValidate problem: multiple forms on one page
I did exactly what you suggested, but with no luck.

I looked into the source code of SmartyValidate.class.php,
and change line 450 from (inside of the set_page) function

$_SESSION['SmartyValid ...
  Topic: SmartyValidate problem: multiple forms on one page
tangfucius

Replies: 8
Views: 24934

PostForum: Add-ons   Posted: Thu Sep 08, 2005 3:45 pm   Subject: SmartyValidate problem: multiple forms on one page
here goes the code

if ( isset($_POST['savenext']) ) { //if data submitted
//use smartvalidate to validate data
SmartyValidate::connect($smarty) ...
  Topic: SmartyValidate problem: multiple forms on one page
tangfucius

Replies: 8
Views: 24934

PostForum: Add-ons   Posted: Thu Sep 08, 2005 3:34 pm   Subject: SmartyValidate problem: multiple forms on one page
Thank you for the reply!

I tried your suggestion, no error messages show, but SmartyValidate::is_valid returns false even if the data is valid.
Also when the data is invalid, none of the validat ...
  Topic: SmartyValidate problem: multiple forms on one page
tangfucius

Replies: 8
Views: 24934

PostForum: Add-ons   Posted: Thu Sep 08, 2005 2:08 pm   Subject: SmartyValidate problem: multiple forms on one page
I have two forms on one page, and I registered both forms and their validators separately by the form names. However when I validate one form, and there is invalid data from that form. The validator ...
  Topic: ADVANCED: Recursion with Smarty
tangfucius

Replies: 155
Views: 823553

PostForum: Tips and Tricks   Posted: Tue Jun 14, 2005 3:22 pm   Subject: AWESOME
This defun function is pure awesome.
Thanks very much.
  Topic: SmartyValidate isUnique plugin
tangfucius

Replies: 5
Views: 22633

PostForum: Add-ons   Posted: Fri Jun 10, 2005 3:35 pm   Subject: SmartyValidate isUnique plugin
good point again. However this plugin is used to validate uniqueness, not autheticate permissions, there is not much security involved. Single quotes,
good point, although usernames shouldn't allo ...
  Topic: SmartyValidate "once fail, fail for all" for one f
tangfucius

Replies: 1
Views: 8875

PostForum: Add-ons   Posted: Fri Jun 10, 2005 3:17 pm   Subject: SmartyValidate "once fail, fail for all" for one f
As stated in the FEATURES:
FEATURES:

...
Multiple validators may be used for one field. Once one validator fails,
the remaining validators for that field are ignored.
...

This might ...
  Topic: SmartyValidate isUnique plugin
tangfucius

Replies: 5
Views: 22633

PostForum: Add-ons   Posted: Fri Jun 10, 2005 3:08 pm   Subject: SmartyValidate isUnique plugin
very good point.
the plugin was written based on the situation where you do not allow change of usernames in a website, however as pointed out in the reply, this has some limitations. Nevertheless h ...
  Topic: SmartyValidate isUnique plugin
tangfucius

Replies: 5
Views: 22633

PostForum: Add-ons   Posted: Fri Jun 10, 2005 1:52 pm   Subject: SmartyValidate isUnique plugin
I've been using SmartyValidate since version 1, and there's been a LOT of wonderful changes/bug fixes, specifically those for version 2.x.

Here goes a personal plugin: isUnique
very often during ...
  Topic: foreach taking up a lot of time to execute
tangfucius

Replies: 1
Views: 6271

PostForum: Smarty Development   Posted: Tue May 24, 2005 3:26 pm   Subject: foreach taking up a lot of time to execute
I've been benchmarking the performance for smarty template pages, most of the time, it runs very very fast, adding roughly 0.01 second to the execution time, however whenever i use the {foreach} plugi ...
  Topic: smartyValidate: session objects?
tangfucius

Replies: 1
Views: 10711

PostForum: Add-ons   Posted: Thu Nov 04, 2004 9:44 pm   Subject: smartyValidate: session objects?
smartyValidate is a great tool, but why use session objects?
From my programming experience, or so from other experts articles,
one should try to stay away from storing large objects in sessions, b ...
  Topic: Problem validating fields with names like field[id][item]
tangfucius

Replies: 3
Views: 15224

PostForum: Add-ons   Posted: Thu Sep 30, 2004 9:12 pm   Subject: Problem validating fields with names like field[id][item]
ok. great. I took over a project from some other programmer and want to apply smartyvalidate to the forms, however the existing system takes in array form fields. If you can make modifications to i ...
  Topic: Problem validating fields with names like field[id][item]
tangfucius

Replies: 3
Views: 15224

PostForum: Add-ons   Posted: Thu Sep 30, 2004 8:42 pm   Subject: Problem validating fields with names like field[id][item]
Addtional info:

The problem is that i entered the correct email address format, but it didn't validate. When i changed the field name from registratnts[id][email] to
simply "email", it worked. ...
 
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