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

Formsess: forms handling with Smarty
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
Justin
Smarty Regular


Joined: 07 May 2003
Posts: 38
Location: Vilnius, Lithuania

PostPosted: Sun Oct 05, 2003 6:03 am    Post subject: Reply with quote

I think I've found a bug in <fs:html_select_date /> function. When this tag is called more than one time in one template, smarty says:
Code:

Fatal error: Cannot redeclare smarty_function_html_select_date() (previously declared in c:\web\apache\htdocs\a\lib\tpl\plugins\function.html_select_date.php:22) in c:\web\apache\htdocs\a\lib\tpl\plugins\function.html_select_date.php on line 22


<fs:html_select_date /> tag names are different.

and btw, your formsess-cvs tarball has only samples. no libraries/filters etc. included. check that.



.. and the bugfix:
file: formsess/smarty_plugins/function.fs_html_select_date.php
line: 13
change `require` to `require_once`
_________________
http://www.baubas.net


Last edited by Justin on Mon Oct 06, 2003 11:28 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
katana
Smarty Rookie


Joined: 17 Apr 2003
Posts: 26
Location: France

PostPosted: Mon Oct 06, 2003 7:10 am    Post subject: Reply with quote

Sorry about the bug in html_select_(date|time). I have modified the way the smarty plugin is included a few days ago, and obviously I didn't use require_once Smile

It's fixed now, in both html_select_date & time.

I have also fixed the CVS tarball, I don't really know what happened during the checkout for that archive... it's OK now.
Back to top
View user's profile Send private message MSN Messenger
Stegnation
Smarty n00b


Joined: 11 Jan 2004
Posts: 1

PostPosted: Sun Jan 11, 2004 7:32 pm    Post subject: Reply with quote

I can't get Formsess to work. I keep getting the following error:

Code:
Fatal error: Call to a member function on a non-object in /usr/local/share/pear/Formsess/smarty_plugins/function.fs_option.php on line 2


I use version 2.0.0-RC2. With the CVS version I don't get this error anymore, but on the website it says the CVS is not working. I tried the CVS version, but I can only get the javascript validation to work.
I have to finish a very big project soon and I need form validation together with Smarty, so I thought Formsess would be a very good solution. If I don't get Formsess to work I will need to look for another form validator. Please help!
Back to top
View user's profile Send private message
katana
Smarty Rookie


Joined: 17 Apr 2003
Posts: 26
Location: France

PostPosted: Fri Apr 23, 2004 7:43 am    Post subject: Reply with quote

Yes, this is due to the change is smarty plugins structure that has occured at some time, don't remember when...

If still interested, get the pre-2.0.0 version that was released a couple of days ago and features lots of bugfixes and improvements:
http://formsess.sf.net/
Back to top
View user's profile Send private message MSN Messenger
sekundek
Smarty n00b


Joined: 30 Jun 2004
Posts: 2

PostPosted: Sat Apr 16, 2005 12:45 pm    Post subject: Reply with quote

Is this addon still alive. I check the page and last date is februry 2004

Maybe any other project with such idea around?

regards
Back to top
View user's profile Send private message
joey
Smarty Regular


Joined: 29 Oct 2003
Posts: 57

PostPosted: Sat Apr 30, 2005 4:18 pm    Post subject: Reply with quote

sekundek wrote:
Is this addon still alive. I check the page and last date is februry 2004

Maybe any other project with such idea around?

regards


why don't you use formcat

http://www.justto.com/formcat/
_________________
Joey
Senior Developer & Designer
-------------------------------------------
http://www.propagator.net
[SourceForge Project] Formcat with Smarty!
http://www.propagator.net/formcat/
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
brice
Smarty Rookie


Joined: 14 Apr 2006
Posts: 11

PostPosted: Sun Apr 16, 2006 2:14 am    Post subject: too bad Reply with quote

It's too bad this addon hasn't appeared to go anywhere...

client side validation is a must (IMO).

If I get some freetime I hope to look into adding JS validation to Monte's smartyvalidator, as well as integrating the auto-population of form values based off of _REQUEST.

As for formcat.. it's a bummer that code isn't GPL
Back to top
View user's profile Send private message
katana
Smarty Rookie


Joined: 17 Apr 2003
Posts: 26
Location: France

PostPosted: Tue Aug 01, 2006 8:21 am    Post subject: Reply with quote

Due to heavy changes in my professional and personal life, I don't have the occasion nor the time to maintain formsess any longer (for instance, I no longer use smarty, so I have like no way to test what I'm doing...).

If anyone is willing to fix issues in formsess, etc etc, I'll be happy to answer questions the best I can but this is the best I can do.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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