Page 1 of 2

Advancedform_XH

Posted: Wed May 27, 2020 2:00 pm
by roze
I’m rebuilding the website for mij choir.

The advanced forms I have do not have a great visible lay-out.

I want to make the fields that have to be filled in better visable. Now you have to guess wher they are.

I’ve looked in de the css of the plugin, but I don’t know what to change there....

Can someone give a hint?

An example of such a form:

http://nieuw.perfectsound.org/?Actueel/Afmelden%3F

Re: Advancedform_XH

Posted: Wed May 27, 2020 2:25 pm
by frase
roze wrote:
Wed May 27, 2020 2:00 pm
I’ve looked in de the css of the plugin, but I don’t know what to change there....
Can someone give a hint?
By default Advancedform provides a table layout - which is unfavorable.
You could create a template for each of your forms in the Mail forms overview (2nd symbol "Create Template").
A *.tpl file will then be created for each form in the data folder. In addition, there is then a corresponding CSS file in the CSS folder.
If you now "examine" the individual elements in the browser, you can also design them according to your wishes.

Re: Advancedform_XH

Posted: Wed May 27, 2020 4:34 pm
by cmb
roze wrote:
Wed May 27, 2020 2:00 pm
The advanced forms I have do not have a great visible lay-out.

I want to make the fields that have to be filled in better visable. Now you have to guess wher they are.
Again, for a start I suggest to change this line to

Code: Select all

        . '<form class="xh_mailform" name="' . $id . '" action="' . $sn . '?' . ($f === 'mailform' ? '&mailform' : $su)  . '" method="post"'
frase wrote:
Wed May 27, 2020 2:25 pm
You could create a template for each of your forms in the Mail forms overview (2nd symbol "Create Template").
Yes, the templating system is beneficial (after the form has been fully specified).

Re: Advancedform_XH

Posted: Wed May 27, 2020 5:43 pm
by frase
cmb wrote:
Wed May 27, 2020 4:34 pm
Again, for a start I suggest to change this line to
Yes, that also works here - but you just have to "fiddle" a bit more to make it look good.

Re: Advancedform_XH

Posted: Wed May 27, 2020 9:16 pm
by cmb
frase wrote:
Wed May 27, 2020 5:43 pm
Yes, that also works here - but you just have to "fiddle" a bit more to make it look good.
Well, it's not that bad even without fiddling:
perfect-sound-advancdeform.gif

Re: Advancedform_XH

Posted: Wed Jun 03, 2020 9:40 am
by roze
I've just made the change in line 1051 of advfrm.php.

It's perfect!

Thanks

Re: Advancedform_XH

Posted: Wed Jun 03, 2020 10:00 am
by roze
But,

The lining of the text after the radiobuttons is unfortunately not good,
screen_contact.gif
is there a way to change this lining?

=============================================

and in debug it says:
WARNING: sprintf(): Too few arguments
/home/sanjoy-arte.nl/public_html/nieuw.perfectsound.org/plugins/advancedform/admin.php:259
line 259 says

Code: Select all

                        sprintf($ptx['message_confirm_template'], $form['name'])

Re: Advancedform_XH

Posted: Wed Jun 03, 2020 12:24 pm
by cmb
roze wrote:
Wed Jun 03, 2020 10:00 am
The lining of the text after the radiobuttons is unfortunately not good,
Could you please post a link to that form?
roze wrote:
Wed Jun 03, 2020 10:00 am
WARNING: sprintf(): Too few arguments
/home/sanjoy-arte.nl/public_html/nieuw.perfectsound.org/plugins/advancedform/admin.php:259
What is the line with $plugin_tx['advancedform']['message_confirm_template'] in your language file (plugins/advancedform/languages/nl.php)? The original line in en.php is:

Code: Select all

$plugin_tx['advancedform']['message_confirm_template']="An possibly existing %1\$s.tpl and %1\$s.css file will be overwritten!";
I think that should work without warning.

Re: Advancedform_XH

Posted: Wed Jun 03, 2020 1:10 pm
by frase
roze wrote:
Wed Jun 03, 2020 10:00 am
The lining of the text after the radiobuttons is unfortunately not good,
...
is there a way to change this lining?

Code: Select all

input[type="radio"] {
	width: auto !important;
}
cmb wrote:
Wed Jun 03, 2020 12:24 pm
Could you please post a link to that form?
http://nieuw.perfectsound.org/?Overige/Contact

Re: Advancedform_XH

Posted: Wed Jun 03, 2020 3:14 pm
by roze
I've added in the CSS of advancedfiorm:

Code: Select all

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

input[type="radio"] {
	width: auto !important;
}

/*
 * Back-end
 */
nothing changed.