1
DutchMan
User upload
  • 2004/3/26 11:10

  • DutchMan

  • Just popping in

  • Posts: 22

  • Since: 2003/11/20


Is there an alternative for the downloads module which let members uploads their files and how to host the files on my own server? I ask this because when i put a file on the server where XOOPS is installed, it wont download, only from another domain!

DutchMan

2
cuckston
Re: User upload
  • 2004/3/26 13:36

  • cuckston

  • Quite a regular

  • Posts: 268

  • Since: 2004/1/19


Do a search for mydownloads => install it => go to preferences => select allow members upload or something like that and then all members can upload to a designated folder within your sites hosting.

3
tamerlo
Re: User upload
  • 2004/3/26 14:48

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


mydownloads module is in starndard XOOPS package but don't have any field in configuration that cite "upload"... or I'm blind?

4
DutchMan
Re: User upload
  • 2004/3/26 16:03

  • DutchMan

  • Just popping in

  • Posts: 22

  • Since: 2003/11/20


I can't find it either!

DutchMan

5
domineaux
Re: User upload
  • 2004/3/26 18:19

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


Look for XOOPS Brasil modules pak in downloads section of this site. It is one of the mods in the pak.

You'll have to edit the config.php file in the Uploader module or you'll get some surprises after you load it.

I think it's pretty worthless unless you just plan to use it yourself. Actually, most any good FTP program is a quantum leafp above it.

--------------------------

6
cuckston
Re: User upload
  • 2004/3/26 18:41

  • cuckston

  • Quite a regular

  • Posts: 268

  • Since: 2004/1/19


Sorry, my mistake. I dont know how then that i got it but i definatly downloaded a module and it now allows me to upload however it says that it is called mydownloads. Wierd.

I will keep looking though.

7
carnuke
Re: User upload
  • 2004/3/26 18:58

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Have a look at This Thread

Richard

8
tamerlo
Re: User upload
  • 2004/3/27 12:55

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


Don't seems a very good module. Uploader don't support themes, don't have a standard configuration window and need of many customs to the code to work

An hack with upload function to the standard mydownloads seems better, exists?

9
tamerlo
Re: User upload
  • 2004/3/27 17:41

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


I'm trying a little hacks:

add to the submit template the html code at the end



Carica il file:




then in submit.php:

# line 41
$file_url = "http://";
if (!empty($_FILES['fileutente'])) {
$file_name = basename($_FILES['fileutente']['tmp_name']);
$file_info = pathinfo($_FILES['fileutente']['name']);
# add extension
if ($file_info['extension']) {
$file_name = $file_name.".".$file_info['extension'];
}
# compose url path
$file_url = XOOPS_URL."/modules/mydownloads/updates/".$file_name;

if (move_uploaded_file($_FILES['fileutente']['tmp_name'],"uploads/".$file_name)) {
$debug_txt = "File uploaded";
}
else {
$debug_txt = "Error while upload file:
".$_FILES['fileutente']['error'];
}
}

The template have also another variable with the new name of uploaded file.

What you think?

10
DutchMan
Re: User upload
  • 2004/3/27 20:31

  • DutchMan

  • Just popping in

  • Posts: 22

  • Since: 2003/11/20


Quote:

tamerlo wrote:
I'm trying a little hacks:

add to the submit template the html code at the end



Carica il file:





In which file, do i have to add the above code?

DutchMan

Login

Who's Online

252 user(s) are online (149 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