Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contact form
#1
Hi, I am using a template based on Emporium - when I fill out the contact form on my site and press send, I get an empty box and no text confirmation the form has worked.

Looking at the source, I see there is this line:

Code:
<p class="contactmsg success"></p>

There is clearly text missing... e.g.:

Code:
<p class="contactmsg success">Message sent</p>

But I can't find where this <P> is coming from - doesn't seem to be obvious. Any suggestions would be great.

Many thanks
Reply
#2
Hello,
In \admin\inc\contactform.php has the code.
At the end puts the text of confirmation....
Code:
if ($result) {
    echo '<p class="contactmsg success">'.$i18n['MSG_CONTACTSUC'].'</p>';
        ....

Regards
Reply
#3
Many thanks for that. Do you have any idea why the 'MSG_CONTACTSUC' would not be parsing a result automatically?

Regards
Reply
#4
Only reason I can think off is it missing from your language file. You could check that.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#5
I'm having a similar problem with the built-in contact form. I'm using version 2.01 of GetSimple and my theme is based on Default_Simple.

When I submit the form it takes me back to the same form page with all the fields filled in. The information has been emailed, but it doesn't give the confirmation message. Very confusing for the user!

I have checked my language file and the appropriate entry is there. Any suggestions?

Edited to add: I have got a temporary workaround by replacing '.$i18n['MSG_CONTACTSUC'].' in the contactform.php file with the actual success message. This will work for the client since she will only ever be using English and upgrade won't be a problem as I understand the contactform won't be supported in the next version, but I'd like to track down why it doesn't work.
Reply
#6
Likewise for me - the text is in my language file.

I also hard coded in a reply in the admin/inc/contactform.php.
Reply
#7
Hello,
you can try to change the following in contactform.php:
Code:
//set internationalization
    if($LANG != '') {
        //include_once('admin/lang/'.$LANG.'.php');
        include('admin/lang/'.$LANG.'.php');
        //echo 'admin/lang/'.$LANG.'.php';
    } else {
        //include_once('admin/lang/en_US.php');
        include('admin/lang/en_US.php');
    }

comment include_once... and add include...

I remember something similar happening to me....

Regards.
Reply
#8
Thankyou, cumbe. That worked. Much appreciated.
Reply




Users browsing this thread: 1 Guest(s)