Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 87
7 members and 80 guests
ass6reetmanageb, getzw5tridofy6n, gratoiduat5kmes, res3sawumewotg4, roofrepairoa, stozlx2ragegq7q, zcchenenxiop
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > General > Open topics

Reply
 
LinkBack Thread Tools Display Modes
Help with upload mod im making
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Dec 2002
Help with upload mod im making - 12-12-2002, 12:01 AM

Hey guys! im new here..and i hope this is the right place to get helpw ith nuke mods... or atleast u guys could try mine out.

First here is the url if you wanna check the source.

http://www.nonnudegirls.org/User_Upload.zip

anyways, this script is supposed to let a user upload a file to the upload dir.

you can change the script the upload any type of file(s). right now its image files and zips/rars. (thats how i have it configured in the zip)

BUT when you try to upload, it says that modules.php cant be accessed directly...
im nto sure why this happend.
the script outside from the module version works fine... if anybody can help me iw ould REALLY appreciate it...and hopefully you can use it too?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
12-12-2002, 02:04 PM

Not sure if this is the right track but did you use the http://www.nonnudegirls.org/modules....me=User_Upload ?

Well I did and I got the page and it said "Sorry, this Module isn't active!" :!:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-12-2002, 02:47 PM

I got it working. At least the first one specified in this post.

Try changing in theform.php

Line 44:
Code:
          <form method=\"POST\" action=\"$PHP_SELF?upload=doupload\" enctype=\"multipart/form-data\">
to this

Code:
          <form method=\"POST\" action=\"modules/Uploader/theform.php?upload=doupload\" enctype=\"multipart/form-data\">
Also make sure you set your Absolute path to the uploads fodler in the config.php. I am using it as a Module. I created a folder in my Modules folder called Uploader. Then placed the language, uploads directories and three files in the Uploader folder. The line I posted above wil only work if you do the same as I did and make a folder in your modules folder called Uploader. OR change to correspond with what you want to call it.

Unfotunatley, I don't see the point of this MOD. Great, I can upload a file to my server, but what then? There is also no return link on the File upload confirmation page. I had to hardcode a link back to my index page once you submit your file so the user can get the heck out of there :?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-12-2002, 02:51 PM

Here's my hacked all to he** version if you can't figure it out

http://phpbbport.fauxpas.org/mycrap/Uploader.zip

OH, and to add a return to home page link on the page that follows after you upload a file, I changed in

theform.php

this
Code:
$endresult = "<font size=\"2\">File Was Uploaded</font>";
to this

Code:
$endresult = "<font size=\"2\">File Was Uploaded</font>
Return to the <a href=\"../../index.php\">HOME</a> page.";
you could always make it a rediredt or create a Content page thanking them for the upload etc. and point it to that after the upload is complete...all possibilties

mikem

man I hope this helps..hehe
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Dec 2002
12-12-2002, 07:53 PM

Quote:
Originally Posted by Martin
Not sure if this is the right track but did you use the http://www.nonnudegirls.org/modules....me=User_Upload ?

Well I did and I got the page and it said "Sorry, this Module isn't active!" :!:
yeah, i dont have it active right now because i dont want visitors to see something that isnt working !
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Dec 2002
12-12-2002, 07:56 PM

Quote:
Originally Posted by mikem
I got it working. At least the first one specified in this post.

Try changing in theform.php

Line 44:
Code:
          <form method=\"POST\" action=\"$PHP_SELF?upload=doupload\" enctype=\"multipart/form-data\">
to this

Code:
          <form method=\"POST\" action=\"modules/Uploader/theform.php?upload=doupload\" enctype=\"multipart/form-data\">
Also make sure you set your Absolute path to the uploads fodler in the config.php. I am using it as a Module. I created a folder in my Modules folder called Uploader. Then placed the language, uploads directories and three files in the Uploader folder. The line I posted above wil only work if you do the same as I did and make a folder in your modules folder called Uploader. OR change to correspond with what you want to call it.

Unfotunatley, I don't see the point of this MOD. Great, I can upload a file to my server, but what then? There is also no return link on the File upload confirmation page. I had to hardcode a link back to my index page once you submit your file so the user can get the heck out of there :?
hey mike! i didnt post my topic in 302093 forums this time! hehe j/k

thanx for adding that line, im gonna try it out.

The mod is useful to me personally because my site consists of user uploaded pictures of just your everyday hot girls (no porn or anything like that... just pretty girls)
BUT i would like to filter out files that people upload and then run them throught he script 'gallery' (u probably know what that is im assuming) so i can have differnet albums specfically for different surfers who upload lots of content.

Anyways this script/mod/halfass thing is my first time attempting at even touching PHP and was made from combining 2 other scripts as well as looking @ how other people coded things to get my desired results.

maybe you can find some use for it?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Dec 2002
12-12-2002, 07:58 PM

Quote:
Originally Posted by mikem
man I hope this helps..hehe
im gonna try it out right now.. regardless if it works correctly though... i learned something jsut by reading this post... thanx a lot man
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Dec 2002
12-12-2002, 08:05 PM

mike im putting you in the credits... Do you want me to post ur url?
and if so, http://www.nukemods.com/, or http://www.mbdc.net/ ?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-12-2002, 08:13 PM

Quote:
Originally Posted by zigx
mike im putting you in the credits... Do you want me to post ur url?
and if so, http://www.nukemods.com/, or http://www.mbdc.net/ ?
oh, hey you don't have to put me in any credits..that's ok..thanks though.

I prefer to keep a low profile... 8)
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Dec 2002
12-12-2002, 08:33 PM

k im taking you out then lol

One last thing...
Do you know how to get it to show the correct file types that are allowed?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
making my own theme megtell Other "stuff" 0 05-22-2006 01:26 PM
Help Making Theme Look Better In IE omega13a Nuke 7.x - Themes 2 09-22-2005 04:20 PM
Making someone a Mod LunaFaye Nuke 7.x - General 2 08-08-2005 06:00 PM
Mod-Making Sternzy Nuke 6.5 to 6.9 - Modules 1 07-27-2003 08:04 AM
making buttons scotty Site design 6 05-29-2003 06:35 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31