Height of forms is not allways adjusted correct

From FacileWiki

Note: This applies only to FacileForms versions before 1.4.5, the issue is fixed  in version 1.4.5 and up.

Many servers allow to call the site either with or without the www. prefix in the URL. This works fine most time, however when it comes to iframes such as used in Facile Forms or the Mambo/Joomla wrappers it can make trouble. The reason is that some browsers judge the two forms as different domains, and for security will not allow the parent control the iframe or vice versa if the domain is not identical.

You can get around this problem by forcing the use of either form: If the CMS is called with the "wrong" domain name redirect it automaticly to the correct location. A small patch in index.php will do the trick.

  • Insert the following code at the beginning of index.php, immediately after define('_VALID_MOS',1);. (Replace yourdomain.com by the name of your own domain):
$host=$_SERVER["HTTP_HOST"];
if ($host == "yourdomain.com") {
    $location="http://www.".$host.$_SERVER["REQUEST_URI"];
    header( "Location: $location" );
    exit();
}
  • Check the value of $mosConfig_life_site in your configuration.php: It should be set to http://www.yourdomain.com (and not http://yourdomain.com).
  • Make sure to use www.yourdomain.com instead of just yourdomain.com everywhere in your content and components, and especially in your templates.

Of cause it would also be possible to use the domain name without the www. prefix. The key is just that the domain name must be used consistently throughout the whole site.

| Terms of Use | Privacy | Sitemap |
Editing tools
Personal tools