Ok, tks... it works!!
i've added the code:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{
if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=yourItemidNum&".$_SERVER['QUERY_STRING']); }
}
i have only 2 problems:
the preview function won't works
i get a lot of errors in the errors log like:
/smf/index.php?option=com_smf&Itemid=1274&topic=20852.0
2: Cannot modify header information - headers already sent
File: /var/www/vhosts/thegunners.it/httpdocs/templates/pda/index.php
Linea: 64
and:
/smf/index.php?option=com_smf&Itemid=1274&action=post2;board=1;preview;xml
8: Undefined offset: 0
File: /var/www/vhosts/thegunners.it/httpdocs/components/com_smf/smf.class.php
Linea: 449
is there a way to fix it?
thanks in advance...
PS: si.. sono italiano
