Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • meandherdesign Friend
    #192685

    Dear Sirs
    I am experiencing problems with the contact form and I really can’t find any guides in trying to solve myself.
    The contact form once sent does not reach the email inbox.
    Also does not send a copy to the submitter.

    I looked the link on the documentation you provide but doesn’t actually explain step by step how to set it up.

    Please can you help me to solve these problem?

    The website is: http://www.lesleypaetz.com

    Thank you….

    pavit Moderator
    #514122

    Hi

    The contact form for the Ja Fixel template is not using any special configuration except the Joomla core configuration

    You need to verify your email settings in Global Configuration >> Server Tab

    If you are not able to solve it send me a Private Message with a temp super user account for your backend

    meandherdesign Friend
    #514199

    ahhh thank you. yes it works now. !!
    but please Pavit can you tell me how to add a capcha?
    is there any documentation available?
    thank you!!!

    pavit Moderator
    #514201

    Hi
    To add a captcha Goto System >> Global Configuration >> Site Tab >> Default Captcha * and select Captcha ReCaptcha and Save
    Then go to Extensions >> Plugin Manager and filter for Captcha click on Captcha – ReCaptcha and go to Basic Options
    Then go to this page http://www.google.com/recaptcha/whyrecaptcha and sign to obtain your recaptcha Key
    Add the Private and Public Key in the Recaptcha plugin
    Then go to Components >> Contact >> Click on Options icon tab at the top and in Form tab and select Allow Captcha on Contact

    meandherdesign Friend
    #514203

    Hello Pavit
    I follow your instructions but can’t see the capcha and now the map is disappeared also…
    http://www.lesleypaetz.com/index.php/contact

    pavit Moderator
    #514204

    Hi

    Could you send me via private Message a super user account to your backend ?

    I will try to take a closer look

    meandherdesign Friend
    #514215

    hello pavit.

    I sent you the private msg but it is not showing on my sent folder.
    Hope you receive it…

    Ninja Lead Moderator
    #514293

    <em>@meandherdesign 400413 wrote:</em><blockquote>hello pavit.

    I sent you the private msg but it is not showing on my sent folder.
    Hope you receive it…</blockquote>

    Could you send me via private Message a super user account to your backend ?

    Ninja Lead Moderator
    #514525

    Plugin captcha on your site is turned off I could not check this problem

    My colleague @pavit forward username/password of your site to me but I got this problem

    <blockquote>Username and password do not match or you do not have an account yet.</blockquote>

    I guess the problem on your site is related to Captcha Core, you can try to use this solution on this link here, hope it helps you to solve it.

    If you still can not solve it please send me admin login detail via private message. I will help you to check it

    chicsystems Friend
    #516836

    I have the same problem, on site http://www.camillafellas.com/contact.html

    Captcha is enable, so is the plugin, the keys are correct yet no captcha appears, also the map is too big unless the browser is full screen. help!!!

    Ninja Lead Moderator
    #516882

    <em>@chicsystems 403803 wrote:</em><blockquote>I have the same problem, on site http://www.camillafellas.com/contact.html

    Captcha is enable, so is the plugin, the keys are correct yet no captcha appears, also the map is too big unless the browser is full screen. help!!!</blockquote>

    This is problem from Captcha plugin and you can see the solution to fix it here

    Hope it helps you to solve it

    chicsystems Friend
    #517460

    I have fixed the map but still cannot get the captcha to work

    pavit Moderator
    #517490

    Hi

    After you made changes to the recaptcha.php file, you need to generate 2 new api keys for the recaptcha to have it working and add them in the recaptcha plugin

    chicsystems Friend
    #517495

    I have the keys already in as I use recaptha on many sites. I added the changes and now it doesnt work att all

    http://www.camillafellas.com/contact.html

    Code in recpaptch.php

    <?php
    /**
    * @package Joomla.Plugin
    * @subpackage Captcha
    *
    * @copyright Copyright (C) 2005 – 2013 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined(‘_JEXEC’) or die;

    jimport(‘joomla.environment.browser’);

    /**
    * Recaptcha Plugin.
    * Based on the official recaptcha library( https://developers.google.com/recaptcha/docs/php )
    *
    * @package Joomla.Plugin
    * @subpackage Captcha
    * @since 2.5
    */
    class plgCaptchaRecaptcha extends JPlugin
    {

    const RECAPTCHA_API_SERVER = “http://api.recaptcha.net”;
    const RECAPTCHA_API_SERVER = “http://www.google.com/recaptcha/api”;
    const RECAPTCHA_API_SECURE_SERVER = “https://www.google.com/recaptcha/api”;
    const RECAPTCHA_VERIFY_SERVER = “api-verify.recaptcha.net”;
    const RECAPTCHA_VERIFY_SERVER = “www.google.com”;

    public function __construct($subject, $config)
    {
    parent::__construct($subject, $config);
    $this->loadLanguage();
    }

    /**
    * Initialise the captcha
    *
    * @param string $id The id of the field.
    *
    * @return Boolean True on success, false otherwise
    *
    * @since 2.5
    */
    public function onInit($id)
    {
    // Initialise variables
    $lang = $this->_getLanguage();
    $pubkey = $this->params->get(‘public_key’, ”);
    $theme = $this->params->get(‘theme’, ‘clean’);

    if ($pubkey == null || $pubkey == ”)
    {
    throw new Exception(JText::_(‘PLG_RECAPTCHA_ERROR_NO_PUBLIC_KEY’));
    }

    $server = self::RECAPTCHA_API_SERVER;
    if (JBrowser::getInstance()->isSSLConnection())
    {
    $server = self::RECAPTCHA_API_SECURE_SERVER;
    }

    JHtml::_(‘script’, $server.’/js/recaptcha_ajax.js’);
    $document = JFactory::getDocument();
    $document->addScriptDeclaration(‘window.addEvent(‘domready’, function() {
    Recaptcha.create(“‘.$pubkey.'”, “dynamic_recaptcha_1”, {theme: “‘.$theme.'”,’.$lang.’tabindex: 0});});’
    );

    return true;
    }

    /**
    * Gets the challenge HTML
    *
    * @return string The HTML to be embedded in the form.
    *
    * @since 2.5
    */
    public function onDisplay($name, $id, $class)
    {
    return ‘<div id=”dynamic_recaptcha_1″></div>’;
    }

    /**
    * Calls an HTTP POST function to verify if the user’s guess was correct
    *
    * @return True if the answer is correct, false otherwise
    *
    * @since 2.5
    */
    public function onCheckAnswer($code)
    {
    // Initialise variables
    $privatekey = $this->params->get(‘private_key’);
    $remoteip = JRequest::getVar(‘REMOTE_ADDR’, ”, ‘SERVER’);
    $challenge = JRequest::getString(‘recaptcha_challenge_field’, ”);
    $response = JRequest::getString(‘recaptcha_response_field’, ”);;

    // Check for Private Key
    if (empty($privatekey))
    {
    $this->_subject->setError(JText::_(‘PLG_RECAPTCHA_ERROR_NO_PRIVATE_KEY’));
    return false;
    }

    // Check for IP
    if (empty($remoteip))
    {
    $this->_subject->setError(JText::_(‘PLG_RECAPTCHA_ERROR_NO_IP’));
    return false;
    }

    // Discard spam submissions
    if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0)
    {
    $this->_subject->setError(JText::_(‘PLG_RECAPTCHA_ERROR_EMPTY_SOLUTION’));
    return false;
    }

    $response = $this->_recaptcha_http_post(self::RECAPTCHA_VERIFY_SERVER, “/verify”,self::RECAPTCHA_VERIFY_SERVER, “/recaptcha/api/verify”,

    array(
    ‘privatekey’ => $privatekey,
    ‘remoteip’ => $remoteip,
    ‘challenge’ => $challenge,
    ‘response’ => $response
    )
    );

    $answers = explode(“n”, $response[1]);

    if (trim($answers[0]) == ‘true’) {
    return true;
    }
    else
    {
    //@todo use exceptions here
    $this->_subject->setError(JText::_(‘PLG_RECAPTCHA_ERROR_’.strtoupper(str_replace(‘-‘, ‘_’, $answers[1]))));
    return false;
    }
    }

    /**
    * Encodes the given data into a query string format.
    *
    * @param string $data Array of string elements to be encoded
    *
    * @return string Encoded request
    *
    * @since 2.5
    */
    private function _recaptcha_qsencode($data)
    {
    $req = “”;
    foreach ($data as $key => $value)
    {
    $req .= $key . ‘=’ . urlencode(stripslashes($value)) . ‘&’;
    }

    // Cut the last ‘&’
    $req = rtrim($req, ‘&’);
    return $req;
    }

    /**
    * Submits an HTTP POST to a reCAPTCHA server.
    *
    * @param string $host
    * @param string $path
    * @param array $data
    * @param int $port
    *
    * @return array Response
    *
    * @since 2.5
    */
    private function _recaptcha_http_post($host, $path, $data, $port = 80)
    {
    $req = $this->_recaptcha_qsencode($data);

    $http_request = “POST $path HTTP/1.0rn”;
    $http_request .= “Host: $hostrn”;
    $http_request .= “Content-Type: application/x-www-form-urlencoded;rn”;
    $http_request .= “Content-Length: ” . strlen($req) . “rn”;
    $http_request .= “User-Agent: reCAPTCHA/PHPrn”;
    $http_request .= “rn”;
    $http_request .= $req;

    $response = ”;
    if (($fs = @fsockopen($host, $port, $errno, $errstr, 10)) == false )
    {
    die(‘Could not open socket’);
    }

    fwrite($fs, $http_request);

    while (!feof($fs))
    {
    // One TCP-IP packet
    $response .= fgets($fs, 1160);
    }

    fclose($fs);
    $response = explode(“rnrn”, $response, 2);

    return $response;
    }

    /**
    * Get the language tag or a custom translation
    *
    * @return string
    *
    * @since 2.5
    */
    private function _getLanguage()
    {
    // Initialise variables
    $language = JFactory::getLanguage();

    $tag = explode(‘-‘, $language->getTag());
    $tag = $tag[0];
    $available = array(‘en’, ‘pt’, ‘fr’, ‘de’, ‘nl’, ‘ru’, ‘es’, ‘tr’);

    if (in_array($tag, $available))
    {
    return “lang : ‘” . $tag . “‘,”;
    }

    // If the default language is not available, let’s search for a custom translation
    if ($language->hasKey(‘PLG_RECAPTCHA_CUSTOM_LANG’))
    {
    $custom[] =’custom_translations : {‘;
    $custom[] =”t”.’instructions_visual : “‘ . JText::_(‘PLG_RECAPTCHA_INSTRUCTIONS_VISUAL’) . ‘”,’;
    $custom[] =”t”.’instructions_audio : “‘ . JText::_(‘PLG_RECAPTCHA_INSTRUCTIONS_AUDIO’) . ‘”,’;
    $custom[] =”t”.’play_again : “‘ . JText::_(‘PLG_RECAPTCHA_PLAY_AGAIN’) . ‘”,’;
    $custom[] =”t”.’cant_hear_this : “‘ . JText::_(‘PLG_RECAPTCHA_CANT_HEAR_THIS’) . ‘”,’;
    $custom[] =”t”.’visual_challenge : “‘ . JText::_(‘PLG_RECAPTCHA_VISUAL_CHALLENGE’) . ‘”,’;
    $custom[] =”t”.’audio_challenge : “‘ . JText::_(‘PLG_RECAPTCHA_AUDIO_CHALLENGE’) . ‘”,’;
    $custom[] =”t”.’refresh_btn : “‘ . JText::_(‘PLG_RECAPTCHA_REFRESH_BTN’) . ‘”,’;
    $custom[] =”t”.’help_btn : “‘ . JText::_(‘PLG_RECAPTCHA_HELP_BTN’) . ‘”,’;
    $custom[] =”t”.’incorrect_try_again : “‘ . JText::_(‘PLG_RECAPTCHA_INCORRECT_TRY_AGAIN’) . ‘”,’;
    $custom[] =’},’;
    $custom[] =”lang : ‘” . $tag . “‘,”;

    return implode(“n”, $custom);
    }

    // If nothing helps fall back to english
    return ”;
    }
    }

    Ninja Lead Moderator
    #517608

    I need to check the issue directly on your site. PM me admin and ftp credentials of your site please.

Viewing 15 posts - 1 through 15 (of 17 total)

This topic contains 17 replies, has 5 voices, and was last updated by  Ninja Lead 10 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum