Page 1 of 2
[SOLVED] Contact Form Help
Posted: Mon Feb 19, 2018 6:53 pm
by cpcnw
Hi All
New to WondeerCMS [signed up to forum ages ago but never got round to using!]
I have installed the contact form plugin and can see that in contact_form.php there are appropriate 'Thank-You' type messages [Line 199] however I never see these and also the email never arrives?
Apart from checking the correct email address is specified - how can I debug the non arrival of email?
Tia!
Re: Contact Form Help
Posted: Mon Feb 19, 2018 8:38 pm
by HWU
Hello, nice to read that you give a chance to WonderCMS!
...there are appropriate 'Thank-You' type messages [Line 199] however I never see these..
Same for me.
...and also the email never arrives...
Works fine.
Demo mailform (the Plugin):
http://www.webpin.ch/wonder/lightbox
Alternative (from Turboblack):
http://www.webpin.ch/wonder5/
Both versions are in use and if you fill out the form I will (I hope that I will...) receive the message.
Try it out...
Re: Contact Form Help
Posted: Mon Feb 19, 2018 9:09 pm
by cpcnw
At least you seem to have it working - even your thank-you page!
I have filled in
contact_form.php line 40] $cfg['url'] = "thanks.html" and even that wont work for me
What can I be doing wrong? Starting off with the permissions on contact_form.php - is 644 correct to execute the script?
Re: Contact Form Help
Posted: Mon Feb 19, 2018 9:14 pm
by cpcnw
Here is my entry in theme.php [<-material]
Code: Select all
<div class="container padding40">
<div class="contentBackground">
<?=wCMS::page('content')?>
<?php if (wCMS::$currentPage == 'contact'): ?>
<?php
global $contact_form_email;
$contact_form_email = "office@domain.co.uk";
?>
<div class="container marginTop20">
<div class="col-xs-12 col-md-6 col-md-offset-3">
<div id="contactform" class="grayFont" style="height: 265px;">
<?php contact_form(); ?>
</div>
</div>
</div>
<?php endif ?>
</div>
</div>
The capture works and I can fill in the form but on submit very quickly I go back to index.php and no confirmation message or thanks page - and more importantly no email turns up
Re: Contact Form Help
Posted: Tue Feb 20, 2018 8:44 am
by cpcnw
Am totally at a loss - I have no errors in my logs, I have tried various permissions on files and even tried changing php versions!
Ripping my hair out with this
Re: Contact Form Help
Posted: Tue Feb 20, 2018 8:45 am
by turboblack
http://torba.tk/turboblack-with-feedback
try this script, it works both separately and inside the template (any!) if it does not work then you just have a hosting that does not support just such a function that most likely it is. or try the script on another hosting
Re: Contact Form Help
Posted: Tue Feb 20, 2018 9:17 am
by cpcnw
Thanks - am beginning to think its a host issue!
Re: Contact Form Help
Posted: Tue Feb 20, 2018 9:20 am
by HWU
Sorry - my english...
That means, you made it like in this description:
https://github.com/robiso/wondercms/issues/54
What I can say (how it works with the plugin on my playground):
- I can use the form with integration in the theme.
- I can NOT use the form on a specific page.
- I have NOT the posibility to show a confirmation page (on my playground it is just a target page without real formcheck!).
- I can send mails and I receive mails.
But: Who am I...? Nobody...!
Well, I'm not a programmer - but I hope, that someone of the community can help to find the right way of implementation.
Cheers, Heinz.
Re: Contact Form Help
Posted: Tue Feb 20, 2018 9:22 am
by HWU
I agree, the solution from Turboblack works absolutely nice:
http://www.webpin.ch/wonder5/
Re: Contact Form Help
Posted: Tue Feb 20, 2018 11:19 am
by cpcnw
Hi - thanks for the replies - yes, I made it as instructed, double triple and quadruple checked for mistakes etc I even removed and re-installed the plugin all to no avail
It turned up in right place on Contact page, showed capture and I could fill in form.
Redirect did not work. No error messages in log file. No email arrived.
In end I used the hosts cgi form and used the same method [if page=contact] to display it [I put actual form in theme.php rather than a separate file. I styled it in theme css]
It worked so that's ok for now