When I do a "Backup Forms" is it only backing up the form that I selected or all the forms in the list. I haven't had to "Restore" so I'm not sure.
Is there a way to give each form a name that is identifiable. If I have several forms it's hard to know which is which because it saves them like this:
CFV4_FormsBackup_ON_www.mywebsite.com_01_Jun_2012_13_31_42.cf4bak
CFV4_FormsBackup_ON_www.mywebsite.com_01_Jun_2012_13_31_43.cf4bak
CFV4_FormsBackup_ON_www.mywebsite.com_01_Jun_2012_13_31_44.cf4bak
ETC...
Thank You!!!
Is there a way to give each form a name that is identifiable. If I have several forms it's hard to know which is which because it saves them like this:
CFV4_FormsBackup_ON_www.mywebsite.com_01_Jun_2012_13_31_42.cf4bak
CFV4_FormsBackup_ON_www.mywebsite.com_01_Jun_2012_13_31_43.cf4bak
CFV4_FormsBackup_ON_www.mywebsite.com_01_Jun_2012_13_31_44.cf4bak
ETC...
Thank You!!!
Hi LIkeStuff,
Not that I know of. They used to be plain text files so that you could open them in a text editor to tell, now the contents are base64 encoded :-( You can decode but that's fiddly.
Here's a code hack that will do it. This version gives a file name like this for the 'contact' form
CFV4_contact_example.com_on_20120602_1020.cf4bak
Around line 333 of administrator/components/com_chronoforms/controller.php make the changes shown here:
Bob
Not that I know of. They used to be plain text files so that you could open them in a text editor to tell, now the contents are base64 encoded :-( You can decode but that's fiddly.
Here's a code hack that will do it. This version gives a file name like this for the 'contact' form
CFV4_contact_example.com_on_20120602_1020.cf4bak
Around line 333 of administrator/components/com_chronoforms/controller.php make the changes shown here:
header('Content-Type: ' . $mime_type);
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
// add the folowing line
$filename = "CFV4_{$form['name']}_{$domain}_on_".date('Ymd_Hi').".cf4bak";
if ($UserBrowser == 'IE') {
// comment out the existing header line and add the replacement
//header('Content-Disposition: inline; filename="' . "CFV4_FormsBackup_ON_".$domain."_".date('d_M_Y_H:i:s').'.cf4bak"');
header('Content-Disposition: inline; filename="'.$filename.'"');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
}
else {
// comment out the existing header line and add the replacement
//header('Content-Disposition: attachment; filename="' . "CFV4_FormsBackup_ON_".$domain."_".date('d_M_Y_H:i:s').'.cf4bak"');
header('Content-Disposition: attachment; filename="'.$filename.'"');
header('Pragma: no-cache');
}
print $output;
Bob
Hi,
Well, the backup file may contain 1 form or even a dozen of them, so there is no way we can have a better naming I think.
Regards,
Max
Well, the backup file may contain 1 form or even a dozen of them, so there is no way we can have a better naming I think.
Regards,
Max
This topic is locked and no more replies can be posted.