Goosemoose wrote:
I dont' know if this helps at all, but just in case.
The reason xtdratings & facileforms stopped working is because of these lines in sef.php, once commented out everything started working again. Any ideas on why?
Code:
// if ($juri != "" && !eregi( "index.php", $_SERVER['REQUEST_URI'] ) && !eregi( "index2.php", $_SERVER['REQUEST_URI'] ) && !eregi( "/?", $_SERVER['REQUEST_URI'] ) ) {
header( 'HTTP/1.0 404 Not Found' );
require_once( $mosConfig_absolute_path . '/templates/404.php' );
exit( 404 );
}
That code effectively prevents any attempts to use querystrings (or simply REQUEST_URI's with questionmarks in it) on scripts other than index.php and index2.php while in SEF mode, which is great for security reasons.
But... since we want to run the facile forms script with querystring data as well, we need to add a:
Code:
&& !eregi( "components\/com_facileforms\/facileforms\.frame\.php", $_SERVER['REQUEST_URI'] )
to the conditions, like this:
Code:
if ($juri != "" && !eregi( "index\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "index2\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "components\/com_facileforms\/facileforms\.frame\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "/\?", $_SERVER['REQUEST_URI'] ) ) {
header( 'HTTP/1.0 404 Not Found' );
require_once( $mosConfig_absolute_path . '/templates/404.php' );
exit( 404 );
}
And facile forms should work even in SEF-mode.
Check it out working fine at
http://www.motin.eu/Contact-Me.html