Forums

How can I sinchronize a form with some milestones?

giamas 23 Jun, 2009
What I like to know if is it possible to permit to publish /unpublish a pre-create form according to previous difited date., such as:
- create the form Sunday
- published automacally on Monday @00:00 AM
- unpublished automacally on Friday @ 8:00 PM

?????????????????

Help me.
Max_admin 23 Jun, 2009
Hi, I think that using the watchman plugin you can specify when a form should be available and when it should be unavailable !

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
giamas 24 Jun, 2009
Thanks so much... I don't know how can I forgive the WATCHMAN module😉
Anyway, I've found something that sounds strange for me.
I've already scheduled a form as this:
- opening date 24-6-2009 16:00
- closing date 24-6-2099 16:00
In this case form is always invisble to each user is logged in.
If I change the closing time to 24-6-2010 16:00 everything works great. NO OTHER SETUP CHANGE IS MADE.
Strange.
What's wrong with 2099???

Thanks!
Max_admin 25 Jun, 2009
mmm, no idea because the plugin was made by Bob, but try to set it till 2098 and you may come back and add 1 more year by that time!😀

let me know!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nml375 26 Jun, 2009
Hi,
Although I'm not familiar with the watchman plugin, the description would suggest this is an "epoch" overflow issue (of sort).
With "unixtime" timestamps (counts the number of seconds passed since Jan 1st 1970 00:00:00 UTC), you'll run "out of space" with 32bit integers at Jan 9th 2038 03:14:07 UTC.

Checking the code reveals the usage of strtotime(), which indeed makes use of unixtime, and would return FALSE whenever an invalid date string is supplied. As such, limit your dates to not beyond the year of 2037 and you should be all fine (by then, a better solution would most likely be available😉 ).

/Fredrik
giamas 27 Jun, 2009
thanks nml375
I think that it's a typical bug that must be fixed in the stable version of Chonoforms , don't you?
Max_admin 28 Jun, 2009
Good catch Fredrik, I will pass this to Bob to check when he is back!🙂

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger