more like an elephant than a bug !

daffy 20 Apr, 2009
Partly my fault. Just updated to chronoforms rc4.11 and trying to deal with licensed version patch. I tried to overwrite the standard download with the patch...but I suppose I got it wrong...the patch needs some instruction or notes !! Anyway I uninstalled chronoforms and "Heavens above" all my hard worked forms over the last months were GONE !!
I back-up the whole computer every three days so it should not be too bad to get these forms back... BUT no where can I find the form code. I dont want to roll back everything for three days ! I should be able to extract the required bits. BUT NO.

So never mind I took print-outs of all the code, the urls, the jscript etc, so I can tediously re-write the forms.
The first one I try with two datepickers has the same problem I had months ago of losing the date-select when run. SO I delete that one and try again. Still same problem. I am fed up.😢

Is there still a problem with the javascript calendar not being connected to the datepick when run? (It is fine atathe design stage).
daffy 20 Apr, 2009
Sorry about failimg to sign that submission. I am tired to say the least.
Possibly the loss of javascript calendars may be caused by a typo of mine. Will try a fourth time after a rest.
--
Dave
Max_admin 20 Apr, 2009
Hi Dave,

Whatever the mistake you made, applying the patch would have never deleted your forms, you may ruin some file but you didn't delete the forms since the forms data are in the database and the patch is a file thing!

I suggest you send me an email through the contact us, telling me what did you do to apply the patch, there are step by step instructions for how to apply the patch in the license email!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 21 Apr, 2009
Hi Dave,

But uninstalling ChronoForms will delete all your forms.

The form code is in the jos_chrono_contact table - if you can restore this then all should be well.

Also - less important - email setup info is in jos_chrono_contact_emails; plugin settings in jos_chrono_contact_plugins; and form data may be in any number of jos_chronoforms_formname tables.

Bob
daffy 21 Apr, 2009
Thanks Both of you.
Yes I did uninstall chronoforms. it is very easy to do !!
Of course I kick myself. The form text is I suppose in the database. So of course it does not show up in a file search by name.
Then being tired I mistyped from the printout I had.
I assumed the process for the licensed patch was to expand the downloaded zip file, then expand the patch and use it to overwrite the html file from the downloaded zip. Then zip it up again. I am driving this horrible Vista system.
My main XP computer is n UK and I am stuck with a laptop with vista in Brittany. Never mind, the sun and the wine is good today.
I will dig things out and get on. This project was supposed to be finished by May...but it won't be!
--
Thanks Again
Dave
Max_admin 22 Apr, 2009
Hi Dave,

if you had a daily cron DB backup or something to restore the data then this may solve it, you may even use a files restore software to restore the DB file, but I didn't use one which will recover updated files by date or so but maybe there is one!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
daffy 22 Apr, 2009
Alas I am still in the mire !
I spent all day trying to get one date form to act as it used to. Maybe tha latest version of chronoforms has killed it.

I did have some PHP validation code
<?php
 $date3bits = explode('-', $_POST['date_3']);
 $firstdate = mktime(0,0,0,$date3bits[1],$date3bits[2],$date3bits[0]);
 $date4bits = explode('-', $_POST['date_4']);
 $lastdate = mktime(0,0,0,$date4bits[1],$date4bits[2],$date4bits[0]);
 $today = time();
  if (($today > $firstdate) || ($firstdate > $lastdate)){
    return  "You cannot book before today and the last date cannot be before the  first date";}
  else
 if ($_POST['text_1'] != $_POST['text_2'])
 {
  return "Your emails entries do not match";
  }

?>

and if the error messages were returned, they were shown on the page above the form in a red frame. I have re-keyed this bit of the dates form as
<?php
 $date3bits = explode('-',$_POST['date_3']);
 $date4bits = explode('-',$_POST['date_4']);
 $firstdate = mktime(0,0,0,$date3bits[1],$date3bits[2],$date3bits[0]);
 $lastdate = mktime(0,0,0,$date4bits[1],$date4bits[2],$date4bits[0]);
 $today = time();
 if (($today > $firstdate) || ($firstdate > $lastdate)) {
  return "you cannot book before today and the last date cannot be before the   first date";}
else if($_POST['text_1'] != $_POST['text_2']){return "Your emails don't match";
}
  
?>


And I get no error messages whatever. I have chronoform css ticked and emails ticked.
I note that the 'autogenerated' code has changed in htis version...can that be the cause or have I got a typo that I cannot see for looking.
Please help before I lose my wits completely.
--
Dave
Max_admin 24 Apr, 2009
Hi Dave,

The code I see here should not be affected by the new version, its completely independent! please try to cut some pieces of the code first till you get things working, start by a simple PHP validation thing like :

<?php if(1)return "its working"; ?>


Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
daffy 24 Apr, 2009
Thanks Max!
Here is the code from a brand new form just made as a test.
<div class="form_item">
  <div class="form_element cf_heading">
    <h1 class="cf_text">test form</h1>
  </div>
  <div class="clear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label">enter something</label>
    <input class="cf_inputbox" maxlength="150" size="30" title="" id="text_1" name="text_1" type="text" />
  
  </div>
  <div class="clear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Submit" type="submit" />
  </div>
  <div class="clear"> </div>
</div>

As you see a simple form with one text box and a submit button.
Then in 'before sending email' and with email = 'yes' I have the PHP code
<?php
 $x = 9; 
 if ($x==9){ return "working ";} 
?>


And there is no redirect URL etc evrything is as created by 'new' form.
The result is no message at all.
If instaed of return "working "; I put echo "working "; then that is indeed echoed. But without the red frame.

I am stuck at this
--
Davehttp://www.chronoengine.com/forums/posting.php?mode=reply&f=3&t=13999#
GreyHead 24 Apr, 2009
Hi Dave,

Validation code needs to go in the Server Side Validation box on the Validation tab, not the OnSubmit Before box (the behaviour you see is correct for code posted there).

Bob
daffy 25 Apr, 2009
Thank you Bob. Of course you are right. I had made notes of everything but not exectly where I had put it.
I can now get on.
Thanks again.
--
Dave🙂
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger