Page 1 of 2

Advancedform

Posted: Wed Sep 21, 2022 9:52 am
by roze
I used Advanced form 1.2 with several forms.

Today I backed-up this version, deleted this version and installed version Advancedform_XH 2.3.
The layout of the forms in the old version do have the extension .frm in the data directory.

Is there a possibility to use my old form-layouts in version 2.3?

Re: Advancedform

Posted: Wed Sep 21, 2022 10:23 am
by olape

Re: Advancedform

Posted: Wed Sep 21, 2022 11:36 am
by roze
Olape thank you

Note that the plugin looks for data/forms.json, and if this file doesn't exist, it looks for data/forms.dat, and if that exists, it is converted to data/forms.json. On the next request, the converted data/forms.json should be read.
My old datafiles looks like this:
1.2.jpg
and in the new advanced form:
2.3.jpg
when I place the old data in the new there is no conversion.

Re: Advancedform

Posted: Wed Sep 21, 2022 11:50 am
by cmb
Relevant is the old forms.dat (which is apparently available); now just delete the new forms.json, and go to the plugin adminstration. That should show the old forms, and there should now be a forms.json with a similar size than the old forms.dat.

Re: Advancedform

Posted: Wed Sep 21, 2022 12:19 pm
by roze
Christoph,

- I've deleted the form.json in the new data directory
- I've copied all the files from the old data directory to the new data directory.

After this: In the admin of the plugin administration the old form aren't visible. There is also no forms.json in the new data directory.

Re: Advancedform

Posted: Wed Sep 21, 2022 1:29 pm
by cmb
Hmm, did you perhaps transfer forms.dat via FTP (first download and upload later)? That might have corrupted the file (we had that problem some years ago).

Anyway, if you can send me login credentials via email, I shall have a look.

Re: Advancedform

Posted: Thu Sep 22, 2022 5:58 pm
by roze
Christoph,

I want to contact you.
can you send me a PM?

Thanks in advance

Re: Advancedform

Posted: Fri Sep 23, 2022 11:00 am
by lck
roze wrote:
Wed Sep 21, 2022 12:19 pm
- I've deleted the form.json in the new data directory
- I've copied all the files from the old data directory to the new data directory.

After this: In the admin of the plugin administration the old form aren't visible. There is also no forms.json in the new data directory.
So it works for me. The old forms are also immediately displayed in the plugin administration. But the forms.json is only created when you edit and save a form.

Maybe this is a cache problem with you. Clear the entire browser cache.

Re: Advancedform

Posted: Fri Sep 23, 2022 11:51 am
by cmb
Thanks for double-checking, Ludwig!

Anyhow, Rob send me the login credentials, and I think the issue is resolved now (there was the new forms.json in the data folder, so the old forms have been ignored).

Re: Advancedform

Posted: Fri Sep 23, 2022 2:03 pm
by roze
Thanks for the great help!

The forms works fine now. The visability of the files is not good.
I've tried to search in the css, but my knowledge of this is minor.

this is how it looks now:
invul velden formulier.png
it would be very helpful if the input fields were framed. Now they are only visible as hoover.

The ccs:

Code: Select all

div.advfrm-mailform td.label {
    vertical-align: top;
    padding-right: 1em;
    /* the following aligns the labels to the right */
    /*text-align: right;*/
}


/* END OF MAIL CSS */


div.advfrm-mailform {}

div.advfrm-mailform table {
    margin-bottom: 1em;
    border-collapse: collapse;
}

div.advfrm-mailform tr.hidden {
    display: none;
}

div.advfrm-mailform td.label {padding-bottom: 0.3em}
div.advfrm-mailform td.field {padding-bottom: 0.3em}
div.advfrm-mailform td.field div.horz {
    float:left;
    margin-right: 1em;
}

div.advfrm-mailform td.field div.vert {}

div.advfrm-mailform div.required {
    margin: 1em 0;
}

/* error messages when filling out a form */
ul.advfrm-error {
    /*color: black;*/
    /*background: yellow;*/
    /*border: 2px solid black;*/
    /*padding: 0.5em;*/
}

/* the simple text captcha */
div.advfrm-mailform span.captcha-explanation {
    display: block;
    margin-bottom: 1em;
}

div.advfrm-mailform span.captcha {
    padding: 0 0.5em;
}

/* the submit and reset button */
div.advfrm-mailform div.buttons {
    margin-top: 1em;
}


/*
 * Back-end
 */

#advfrm-form-list {
    overflow: auto;
}

#advfrm-form-list a:link img,
#advfrm-form-list a:visited img {
    border: 0;
}

#advfrm-form-list form {
    display: inline-block;
}

#advfrm-form-list table {
    margin: 10px 0;
}

#advfrm-form-list a img {
    margin-right: 4px;
}

#advfrm-form-list td.name {
    padding: 0 10px;
}

#advfrm-form-list td.script {
    /*padding-left: 20px;*/
    /* font-size: xx-small; */
    font-family: monospace;
}

#advfrm-editor {
    overflow: auto;
}

#advfrm-editor div.toolbar {
    margin: 10px 0;
}

#advfrm-editor div.toolbar a {
    padding: 5px;
}

#advfrm-editor a:hover {
    background: none;
    cursor: pointer;
}

#advfrm-form,
#advfrm-fields {
    margin: 10px 0;
}

#advfrm-select-props {
    overflow: auto;
    max-height: 300px;
}

#advfrm-text-props td {
    vertical-align: top;
}

#advfrm-editor tr.selected .highlightable,
#advfrm-prop-fields tr.selected .highlightable {
    background: navy;
    color:white;
}
This is one of the forms I use: https://www.perfectsound.org/?Registrer ... etteraktie