Advancedform

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

roze
Posts: 263
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Advancedform

Post by roze » Wed Sep 21, 2022 9:52 am

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?
Rob Zeijen,

Valkenswaard (NL)


roze
Posts: 263
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Advancedform

Post by roze » Wed Sep 21, 2022 11:36 am

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.
You do not have the required permissions to view the files attached to this post.
Rob Zeijen,

Valkenswaard (NL)

cmb
Posts: 14037
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Advancedform

Post by cmb » Wed Sep 21, 2022 11:50 am

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.
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 263
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Advancedform

Post by roze » Wed Sep 21, 2022 12:19 pm

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.
Rob Zeijen,

Valkenswaard (NL)

cmb
Posts: 14037
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Advancedform

Post by cmb » Wed Sep 21, 2022 1:29 pm

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.
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 263
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Advancedform

Post by roze » Thu Sep 22, 2022 5:58 pm

Christoph,

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

Thanks in advance
Rob Zeijen,

Valkenswaard (NL)

lck
Posts: 2648
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Advancedform

Post by lck » Fri Sep 23, 2022 11:00 am

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.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

cmb
Posts: 14037
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Advancedform

Post by cmb » Fri Sep 23, 2022 11:51 am

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).
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 263
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Advancedform

Post by roze » Fri Sep 23, 2022 2:03 pm

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
You do not have the required permissions to view the files attached to this post.
Rob Zeijen,

Valkenswaard (NL)

Post Reply