1
samuels
Mydownloads module modified
  • 2004/2/17 21:49

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I have modified mydownloads module to use group permissions.
Downloads and categories without permission will be hide to the user and he can't search or view it.

File upload is avaible too. I think all modules must have group permissions.

Here is it.
http://www.forjandoleyendas.com/public/fl/uploads/mydownloads_v.zip

2
brash
Re: Mydownloads module modified
  • 2004/2/17 22:09

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Very cool samuels ! This is something I've been meaning to do with the WMPDownloads module for a quite a few months now, but just haven't had the time to sit down and look at. I'll be having a look at your module tonight when I get home for sure.

3
Vargr
Re: Mydownloads module modified
  • 2004/2/17 22:43

  • Vargr

  • Not too shy to talk

  • Posts: 130

  • Since: 2003/6/19


This sounds very nice. I will download it have a look at it later. Looks useful for a site I am contemplating.

And yes, I agree. All modules should have group permissions.

4
bapapapa
Re: Mydownloads module modified
  • 2004/2/18 18:33

  • bapapapa

  • Just popping in

  • Posts: 37

  • Since: 2004/1/2 2


Hi samuels,

I´ve tested your modificated module. Great!
Too bad, I still have some problems.
The upload of the screenshots works ok.
It tranfers the pictures into the right file: modules/mydownloads/images/shots/

But it isn´t shown in the download-section. The path of the screen shot is directed to modules/mydownloads/.
Sorry, I don´t know how to modify it to the correct path.
I bet ya can help.

Thanks in advance

Marc

5
samuels
Re: Mydownloads module modified
  • 2004/2/18 23:02

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@bapapapa
About your problem, i think you forgot activate "use shots" in mydownloads config panel.


I've found a bug, users can't upload shots.
Just add this to submit.php:

After line

include_once XOOPS_ROOT_PATH '/modules/' $xoopsModule->dirname() . '/class/mimetype.php';

Add

include_once XOOPS_ROOT_PATH "/class/uploader.php";

6
samuels
Re: Mydownloads module modified
  • 2004/2/18 23:51

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Download the module again, i've corrected some bugs related to downloads shots and submit.php

7
jakkals
Re: Mydownloads module modified
  • 2004/2/19 8:18

  • jakkals

  • Just popping in

  • Posts: 34

  • Since: 2003/7/18


First - I like this module, great work.

I have a problem, and I'm not sure if I'm stupid, or do not understand the workings of this module.

In the 3rd field from the top -
Download URL: (with the browse button), I specify the file I want to upload. Why don't I see the file in my uploads directory as specified in Admin config?
I checked permissions on dir.

Thanks



8
samuels
Re: Mydownloads module modified
  • 2004/2/19 13:47

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


What kind of file?. Be sure required mymetipes are activated on admin panel.

Can you activate php debug? It can be helpful for resolving the problem.

Upload feature is from Mydownloads RC1, (very buggy module). But i've tested on my site and it runs.

9
jakkals
Re: Mydownloads module modified
  • 2004/2/19 14:04

  • jakkals

  • Just popping in

  • Posts: 34

  • Since: 2003/7/18


Hi

it's a doc file.
Selected all in "Allowed Mimetypes for Upload" and set my uploads directory to "modules/mydownloads/uploads".
The doc file I tried to upload did not upload.
PHPdebug shows nothing.

Am I correct to assume the uploaded .doc file should reside inhttp://localhost/demo/html/modules/mydownloads/uploads if I set my uploads dir. as described above?

Thanks

10
hoobamac
Re: Mydownloads module modified
  • 2004/2/19 14:28

  • hoobamac

  • Just popping in

  • Posts: 9

  • Since: 2003/5/28


I've got the same problem...
can't upload images either...

Everything seems ok - just no file get uploaded!

Checked all the settings...

I would really like to get this working - these features are great!

thanks

Login

Who's Online

186 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

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

Latest GitHub Commits