14
think I found the solution, as least it worked for me;)
upload beyond 2MB
first change in php.ini
the max_upload_filesize & max_execution_time
reload the server
then
in \modules\mydownloads\submit.php
line 242-245
change
if ( $xoopsModuleConfig['useruploads'] )
{
$sform->addElement( new XoopsFormFile( _MD_DLFILE, 'userfile', 2000000 ), false );
}
to
if ( $xoopsModuleConfig['useruploads'] )
{
$sform->addElement( new XoopsFormFile( _MD_DLFILE, 'userfile', $maxfilesize ), false );
}
wrong counting in mydownloads:
in \modules\mydownloads\index.php
line 73-74
change
list($numrows)=$xoopsDB->fetchRow($xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status = 1"));
$xoopsTpl->assign('lang_thereare', sprintf(_MD_THEREARE,$numrows));
to
list($numrows)=$xoopsDB->fetchRow($xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status = 1 OR 2 "));
$xoopsTpl->assign('lang_thereare', sprintf(_MD_THEREARE,$numrows));
disable obligatory homepage-field
in \modules\mydownloads\modfile.php &
in \modules\mydownloads\index.php
line 66-71
change
// Check if HOMEPAGE exist
if ( $HTTP_POST_VARS["homepage"] == "" )
{
$eh->show( "1016" );
}
to
//Check if HOMEPAGE exist
//if ( $HTTP_POST_VARS["homepage"] == "" )
//{
// $eh->show( "1016" );
//}
Andy