41
oleman
Re: Mydownloads module modified
  • 2004/2/24 21:38

  • oleman

  • Just popping in

  • Posts: 10

  • Since: 2004/1/28


Yes Im sorry antileech

in general settings

Upload Directory (No trailing slash)
currently reads
uploads
change to:
modules/mydownloads/uploads

Before you do this
an uploads directory must be created in the modules/mydownloads folder then chmod to 777

samuels how would I add diff or more mimetypes that are allowed

42
samuels
Re: Mydownloads module modified
  • 2004/2/24 22:30

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@oleman
You must edit xoops_version.php and class\mimetype.php.

For example, if you want to add .torrent extension:

1º Edit xoops_version.php, about line 246 add:

"torrent" => "application/BitTorrent",

2º Edit class/mimetype.php about line 102 add:

"torrent" => "application/BitTorrent",


Now, refresh mydownloads module and you get a new extension.

PLEASE BE CAREFUL WITH EXTENSIONS, and obviously don't add .php .php3 ... extensions, it will create a very big security hole!!!!!

43
tacoco
Re: Mydownloads module modified
  • 2004/2/25 19:01

  • tacoco

  • Just popping in

  • Posts: 6

  • Since: 2004/2/13


Great Work samuels.

I am almost there to build the site which I can manage access rights for each group on what they can see and not in Download pannel.

Well this contributions works like a champ, but "Polupar" and "Top rated" on download category menu shows every file either been popular or top rated. And this is not what I want. I want Group A's contents visable only for GroupA's access grated user.

I know download restriction for each feature works in both "Top rated" and "Popular" pannel section, but I want to control the display itself. I don't need these two ranking related features to begine with, so can someone tell me how to disable them or eliminate from download pannel?

44
samuels
Re: Mydownloads module modified
  • 2004/2/25 20:55

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@tacoco
I'm agree with you, I consider it like a bug, so I'll try to correct it this nigth.
Thks for the advice.

45
bapapapa
Re: Mydownloads module modified
  • 2004/2/25 21:17

  • bapapapa

  • Just popping in

  • Posts: 37

  • Since: 2004/1/2 2


Hi samuels,

it´s me again.
So, your module worked fine (PAST TENSE!).
Then I saw oleman´s idea to move the uploads-directory to /modules/mydownloads/uploads.
I changed everything as I was told.
The upload of every file into the new upload-directory works fine.

I even download it directly by using the correct path like
http://rsalpen.dyndns.org/modules/mydownloads/uploads/80tagen.pdf
No problem.
BUT (- I hate these "buts" by now) I can´t connect to the file directly by hitting the upload/download-link.
By the way the modifying doesn´t work either.

Any ideas? Thanks in advance.
Marc

46
samuels
Re: Mydownloads module modified
  • 2004/2/25 23:26

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@bapapapa
Check in table mydownloads_downloads if url link of this download is correct.

47
CiberEspia
Re: Mydownloads module modified

I have much content in mydownload rc, but I see that when uploader mydowload modified does not show to me,is some script to port the information??

48
percheron
Re: Mydownloads module modified
  • 2004/2/27 18:02

  • percheron

  • Just popping in

  • Posts: 10

  • Since: 2002/9/8 0


Hi Samuels,
I have struggled mightly with this module and obviously I don't know what I'm doing, being new to Xoops. Following this thread and using common sense, I have removed the default downloads module and installed yours. I changed the upload location to "modules/mydownloads/uploads". I increased the max upload size. I checked "Allow user uploads".

The message I get no matter what file type I try to upload is "Mime type not allowed" - I've tried "txt", "gif", "jpg", "rtf" and a few others. Any idea what I've done wrong in the installation process?

Thanks,
jim

Addendum:
I just discovered that I can upload a file from the Admin page, but not from the "Submit" menu using either the Admin login or a registered user login. I still get the mime-type error.


49
samuels
Re: Mydownloads module modified
  • 2004/2/27 18:47

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@percheron
For security reasons you must select the allowed extensions in admin panel, just press "control" key and select the extensions.

@xplorador
If you want to port your actual mydownloads module, you must create new files to some tables.

In mydownloads_cat:
groupid varchar(100)NOT NULL default '1 2 3',

In mydownloads_downloads:
groupid varchar(100)NOT NULL default '1 2 3',

In mydownloads_mod:
groupid varchar(100)NOT NULL default '1 2 3',

50
percheron
Re: Mydownloads module modified
  • 2004/2/27 19:29

  • percheron

  • Just popping in

  • Posts: 10

  • Since: 2002/9/8 0


Thanks, that worked!
I suppose I should have known about the "control key" selection process, but I had no clue.

Now I will try to really exercise the downloads module.

Many thanks for your work.

jim

Login

Who's Online

252 user(s) are online (136 user(s) are browsing Support Forums)


Members: 0


Guests: 252


more...

Donat-O-Meter

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

Latest GitHub Commits