1
chingu
Re: Mydownloads module modified
  • 2004/2/19 15:01

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


is more probabaly in:

http://localhost/demo/html/uploads



2
chingu
Re: 2MB upload limit in Downloads Module
  • 2004/2/16 11:17

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


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



3
chingu
Re: problems upgrading 2.0.5 --> 2.0.6
  • 2004/2/13 17:27

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


still have not found the solution, just the right forum ;)

https://xoops.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=16504&forum=20



4
chingu
Re: problems upgrading 2.0.5 --> 2.0.6
  • 2004/2/13 17:16

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


and there is no 2nd problem. Everything works fine!
The problem was file-size and not the extension.

But i encouter a error message when uploading bigger files (greater than +/- . I clearly set the max to 50 MB (also on the server-side). But there's still this problem. Has this something to do with the uplaoding time.....

Errors Returned While Uploading
No file uploaded



5
chingu
Re: problems upgrading 2.0.5 --> 2.0.6
  • 2004/2/13 16:47

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


sorry, found the solution for problem 1:

https://xoops.org/modules/news/article.php?com_mode=flat&com_order=1&storyid=1037



6
chingu
Re: problems upgrading 2.0.5 --> 2.0.6
  • 2004/2/11 14:38

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


Thx man, I get it now. There seems to be no problems at all after installing the patch. The RC-version of MyDownloads still works as before.

My confusion was:
I have a site with the RC-version of MyDownloads and another without so I applied the patch to both of the sites assuming that the official 2.0.6 will include the files upload function. My bad.

There are another questions though…:

1st problem:
When uploading the files every thing seems to be OK. But when I try to download, some files just won’t work. After “studying” carefully I found out that the files with capitals in it, like MyFile.doc is save in the upload-folder as myfile.doc (lowercase), but stored in the database as: http”//--/uploads/MyFile.doc. Due to the case-sensitiveness of the Apache webservers -> dead link for my files! Is this a server-side problem (configuration of the server) or a bug in the php-script?

How can I correct this problem? The best solution for me is to save the files on the Apache server with the original UpperCase/LowerCase file names.

2nd problem
I cannot upload files with extensions like .ppt. I know there is a list in the admin section where you can select the extensions you want. .ppt is not included in that list. How can I add .ppt to that list?

Andy



7
chingu
problems upgrading 2.0.5 --> 2.0.6
  • 2004/2/10 17:39

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


is ity true that when you upgrade you won't have the files upload function??



8
chingu
plz help: cloning mydownloads RC1
  • 2004/1/26 18:29

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


Is there a way to clone mydownloads module RC1??




TopTop



Login

Who's Online

214 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits