11
micro
Re: MyDownloads RC2b
  • 2004/1/4 23:20

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


Where did u get it and can i get it too?



12
micro
Re: Looking for module capable of uploading, downloading, screenshots for the dl ...
  • 2004/1/4 13:02

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


There must be a workaround, because on xoops.org itself it works too :)

somebody knowing how tell me plz *G*


Forget about the empty Variable, this was a bug produced by myself ...

No i got the same problem as all the other, my screenshotpointer points to /modules/mydownload/screeshot.jpg
instead of /modules/mydownloads/images/screenshot.jpg

still searching



13
micro
Re: error mydownloads RC1
  • 2004/1/3 22:48

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


Well i found some other bugs, and also some bugfixes :)

https://xoops.org/modules/newbb/viewtopic.php?topic_id=15301&forum=4



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

  • micro

  • Just popping in

  • Posts: 23

  • Since: 2004/1/2 1


So the next bug i found:

After the new added download switches from recently added to the category he is in, the screenshot/preview won`t be shown anymore. until now i did not find the source of the problem, but i guess the Variable $HTTP_POST_FILES['logourl']['name'] is empty, so it does not post the image.

If somebody knews how to solve it tell me plz



15
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.




16
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.



17
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



18
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



19
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 :)



20
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




TopTop
« 1 (2) 3 »



Login

Who's Online

263 user(s) are online (174 user(s) are browsing Support Forums)


Members: 0


Guests: 263


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