1
micro
Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/3 18:23

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


Hi again,
I am looking for a module that is capable of uploading, downloading and adding a screenshot to the related download.

The thing is, i want the registered users to be able to upload a map/program so other can view the screenshot or preview (which should be uploaded by the user too) and decide on downloading the map/program. if possible with rating etc. etc. but i do not find any module fitting this requirements .. or may i just took the wrong phrases for search :)

Do you know any module u can recommend and say it works or its good? plz post thx a lot

2
Mithrandir
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...

Search these forums for MyDownloads RC1 and see if that isn't what you need

3
micro
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/3 18:36

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


if this is the shipped-with mydownloads no it is not, i cannot upload from my harddisk with that .. i`ll look anyway :)

4
Mithrandir
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...

No, it's not the one shipped with XOOPS - it's the newer version of that module.

5
robekras
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/3 18:42

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


He's talking about this one:

https://xoops.org/modules/news/article.php?storyid=1037


6
micro
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/3 18:48

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


I already found that .. but thx anyway, may the next looking for my phrases will find it too :)

And yes, it is exactly what i was looking for, ty very much

7
robekras
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/3 19:14

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


As far as I know there is/have been a problem when uploading files with capital letters within the filename.

So it could be a good idea to read the comments also.

8
micro
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/3 19:15

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


I already found that out ;)

Made me go

while if there would be a solvation, but i did not find one so i got

Luckily there is a very workaround, that works very well, so this module makes me in the end

9
micro
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/3 21:21

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


So well, i felt like doing something good. Somebody browsing this, will be happy to see the workaround right here:


Quote:


In line 104 of submit.php,


$url = XOOPS_URL . "/" . $xoopsModuleConfig['uploaddir'] . "/" .

$HTTP_POST_FILES['userfile']['name'];

can be changed to


$url = XOOPS_URL . "/" . $xoopsModuleConfig['uploaddir'] . "/" .

strtolower($HTTP_POST_FILES['userfile']['name']);


thx to davidwkk


and another fix:

Quote:

There are 3 spots need to fix:
1. line 133 is extra and should be deleted


$size = intval( $HTTP_POST_VARS["size"] );






2 and 3. line 117 to 119: the filenames should be all converted to lowercase (because this is what the uploader.php class does)
so it is from


if ( is_file( XOOPS_ROOT_PATH . "/" . $xoopsModuleConfig['uploaddir'] .

"/" . $HTTP_POST_FILES['userfile']['name'] ) )

{

$size = filesize( XOOPS_ROOT_PATH . "/" . $xoopsModuleConfig['uploaddir'] .

"/" . $HTTP_POST_FILES['userfile']['name'] );



to




if ( is_file( XOOPS_ROOT_PATH . "/" . $xoopsModuleConfig['uploaddir'] .

"/" . strtolower($HTTP_POST_FILES['userfile']['name']) ) )

{

$size = filesize( XOOPS_ROOT_PATH . "/" . $xoopsModuleConfig['uploaddir'] .

"/" . strtolower($HTTP_POST_FILES['userfile']['name']) );


thx to davidwkk too.


So, this worked for me for the filesize and the mix with Capital letters.

10
micro
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/3 21:45

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


I also found now a bug in the image processing, its the same as the others, the imagefile is made lowercase only too.

So just change in file submit.php on line 146 :

Quote:

$uploaddir = XOOPS_ROOT_PATH . "/" . $xoopsModuleConfig['screenshots'] . "/";
$logourl = $HTTP_POST_FILES['logourl']['name'];


to

Quote:

$uploaddir = XOOPS_ROOT_PATH . "/" . $xoopsModuleConfig['screenshots'] . "/";
$logourl = strtolower($HTTP_POST_FILES['logourl']['name']);


and images should work fine.


Login

Who's Online

90 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 90


more...

Donat-O-Meter

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

Latest GitHub Commits