FAQ - Frequently Asked Questions

Ajax Recommend was based on Ajax Contact, therefore most of the questions and answers are very similar;




How do you put a module inside an article?

You will usually want to associate modules with articles in some way. The modules are allocated to module positions and the module positions appear somewhere on the web page as determined by the template. However, it is sometimes useful to have a module actually embedded in the article content itself.

To insert a module inside an article you use the command { loadposition xx}*, as follows:

  1. Create a module and set its position to any value that doesn't conflict with an existing template position. You can type in the position value instead of selecting it from the drop-down list. For example, use the position "contact_position".
  2. Assign the module to the Menu Items that contain the articles that you want the module to show in. You can also just assign the module to "All" Menu Items.
  3. Edit the articles where you want this module to show and insert the text "{ loadposition contact_position}" in the article, at the place where you want the module to show.

The module will show at that point in the article.

Note that this only works when the plugin 'Content - Load Module' is enabled. If this plugin is disabled, the text "{ loadposition contact_position}" shows unchanged in the article. Also, if there is no such module position the sytax will be removed from the article;

*There is no space between { and loadposition, however it the plugin would try to load a position if I removed it.

Emails is sent, but never received

The problem:

  • The form is sent and you get the "Thank you message", however the email never arrives in your mailbox;
  • After the form is sent you get a "Email not sent, please notify administrator" message;

Possible solutions:

  • Make sure Joomla Core Contact Component is working. It might be a problem with your mail server or mailer configuration;

Why the confirmation loads on another page?

There are two possible reasons:

  1. Your template or another script is preventing MooTools from loading;
  2. There is a javascript incompatibility;

Ajax Contact uses MooTools to validate the form and to perform the AJAX calls;

MooTools is the Joomla default javascript library, therefore most templates use MooTools for their fancy things such as menus and slideshows; Your template or other extensions (modules, plugins, components) shouldn't use another javascript library other than MooTools, however if it does use another library such as JQuery it might be incompatible with many MooTools based scripts;

Solution:

Disable the extension that is loading this other javascript library.

Advice:

Always choose extensions that are 100% compatible with Joomla Framework;

Captcha is not properly working. What should I do?

There are 3 possible reasons:

  1. Captcha is not enable in the Module paramentes;
  2. It won't show if the user is logged in, because if he is logged in there is no need to verify whether he is a robot or human.
  3. Ajax Contact and Ajax recommend's Captcha feature only works with the MathGuard Library.The other libraries use server sessions which are killed once the form is submitted, therefore the user wouldn't be able to use the form again (if required) without reloading the page.

How to translate or modify field labels and error messages?

Basically, There are 2 language files to create to translate the component or module, one for the frontend, one for the backend.

These files have to be named following the convention:

[language-code]-[COUNTRY-CODE].mod_ajax_contact.ini

For example: en-GB.mod_ajax_contact.ini for english, pt-BR.mod_ajax_contact.ini for Brazilian Portuguese.

They have to be placed in the folder corresponding to the language and the frontend/admin part, for example:

 

Read more: How to translate or modify field labels and error messages?

How to change styling?

Ajax Contact and Ajax Recommend try to inherit most of your templates style, however if you need to change something you have to edit the Ajax Contact's CSS file located at:

  • Ajax Contact: [Path to Joomla]/modules/mod_ajax_contact/css/style.css
  • Ajax Recommend: [Path to Joomla]/modules/mod_ajax_recommend/css/style.css

Some examples:

//change input box
.ideal-ajax-module input.inputbox{font-size:100%;color:#808080;border:1px solid #F0F0EE;}
//Change label
.ideal-ajax-module label{font-size:120%;font-weight:bolder;}

Red triangle for required fields:

If you want to change the color of the required image (red triangle) you have to edit [Joomla]/modules/mod_ajax_contact/images/required_bg.gif. in this case, you might also want to change the color of the invalid class.

If you want to remove it, just find the .required rule and change for this:

.required{background: none !important}

Changing the  "xx characters left"

#limit-character-container{font-size:90%}

 


Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback