Advancedform_XH

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

Moderator: Tata

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

Advancedform_XH

Post by roze » Wed May 27, 2020 2:00 pm

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

Valkenswaard (NL)

frase
Posts: 3356
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Advancedform_XH

Post by frase » Wed May 27, 2020 2:25 pm

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.

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

Re: Advancedform_XH

Post by cmb » Wed May 27, 2020 4:34 pm

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

frase
Posts: 3356
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Advancedform_XH

Post by frase » Wed May 27, 2020 5:43 pm

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.

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

Re: Advancedform_XH

Post by cmb » Wed May 27, 2020 9:16 pm

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
You do not have the required permissions to view the files attached to this post.
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: Advancedform_XH

Post by roze » Wed Jun 03, 2020 9:40 am

I've just made the change in line 1051 of advfrm.php.

It's perfect!

Thanks
Rob Zeijen,

Valkenswaard (NL)

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

Re: Advancedform_XH

Post by roze » Wed Jun 03, 2020 10:00 am

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

Valkenswaard (NL)

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

Re: Advancedform_XH

Post by cmb » Wed Jun 03, 2020 12:24 pm

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

frase
Posts: 3356
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Advancedform_XH

Post by frase » Wed Jun 03, 2020 1:10 pm

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

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

Re: Advancedform_XH

Post by roze » Wed Jun 03, 2020 3:14 pm

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

Valkenswaard (NL)

Post Reply