Author |
Message |
manoe
Client

Joined: Aug 14, 2005
Posts: 151
|
Posted:
Thu Sep 15, 2005 11:36 pm |
|
Hey all, I downloaded a Module called SSUploader.zip from the Nuke4gamers site that is linked on Ravens homepage or a post in the forums. I have done everything but in the instructions it said this:
Nice script if you want to have a form to have visitors or
only members upload screenshots to your site and a e-mail notification will
be sent to you with the persons e-mail, screenshot uploaded, and message .
Then the screenshots can be viewed with the block-ScreenShot.php
1. Edit lines in modules/SSUploader/index.php & modules/SSUploader/upload.php
2. Upload the SSUploader folder to your module directory
3. Upload the block-ScreenShot.php to your blocks folder
4. Edit the index.php & upload.php file
5. Give the folder called file chmod 777 or read write access.
6. Log in to your site administrator and activate the module and block
7. Your all set.
The 5th step loses me. What folder called FILE? Then if I try to upload a file for testing i get this error.
Warning: copy(http://www.armedwarriorsonline.com/nuke/modules/SSUploader/screenshots/): failed to open stream: HTTP wrapper does not support writeable connections. in /home/haagt/public_html/nuke/modules/SSUploader/upload.php on line 35
Couldn't copy file.
Anyone help me through this? |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Fri Sep 16, 2005 4:45 am |
|
well thats the issue allways.
when something has to be uploaded(this often happens with galleries) then the target folder (where uploaded stuff goes) needs the proper rights...
like ...allowed to upload and store or not.
in this case you have to look in the script/readme or whatever where you should define the folder where uploaded images go.. |
|
|
|
 |
manoe

|
Posted:
Fri Sep 16, 2005 10:43 am |
|
Here is the error again and the upload.php code. I dont know what needs to be done. I have been playing with the permissions on that upload file and it makes no difference if they are 755, 766 or 777...
Warning: copy(http://www.armedwarriorsonline.com/nuke/modules/SSUploader/screenshots/): failed to open stream: HTTP wrapper does not support writeable connections. in /home/haagt/public_html/nuke/modules/SSUploader/upload.php on line 35
Couldn't copy file.
<?php
/************************************************************************/
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* compiled from PD sources and snippets on the web */
/* NUKE4GAMERS http://www.nuke4gamers.com */
/************************************************************************/
// Module Configuration
//
//$sitename = "Your Site Name";
$sitename = "Armed Warriors OnLine";
//$adminemail = "Email Address you wish to recieve the notice of an upload";
$adminemail = "manoe31@hotmail.com";
//$path = "http://www.armedwarriorsonline.com/nuke/modules/SSUploader/screenshots/$superdat_name"
$path = "http://www.armedwarriorsonline.com/nuke/modules/SSUploader/screenshots/";
/////////////////////////////////////////////////////////////////////////
if (!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$",$sender_email)) {
die("<center>No email address specified or invalid Email address!<br></center>");
}
if ($sender_name =="") {
die("<center>Your Name is Required!<br></center>");
}
if ($message =="") {
die("<center>A Description of your ScreenShot is required!<br></center>");
}
if ($superdat_name != "") {
copy("$superdat", "$path")or
die("Couldn't copy file.");
} else {
die("<center>No ScreenShot specified.<BR></center>");
}
$msg = "==============================================================\n";
$msg .= "Someone uploaded to $sitename\n";
$msg .= "Name: $sender_name\n";
$msg .= "Sender Email: $sender_email\n";
$msg .= "Name of File: $superdat_name\n";
$msg .= "File Size: $superdat_size bytes\n";
$msg .= "Type of File: $superdat_type\n";
$msg .= "IP: $REMOTE_ADDR\n";
$msg .= "Description of uploaded file: $message\n";
$msg .= "==============================================================\n";
$to = "$adminemail";
$mailheaders = "From: $sender_email";
$subject = "Someone uploaded to $sitename";
$mailheaders = "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders,"-f $sender_email");
print "<CENTER>";
print "<div align=center><b><u>Uploaded to $sitename </u></b>";
print "<table border=\"1\" width=\"45%\" id=\"table1\">";
print " <tr>";
print " <td>Your Name:</td>";
print " <td>$sender_name</td>";
print " </tr>";
print " <tr>";
print " <td>Your Email:</td>";
print " <td>$sender_email</td>";
print " </tr>";
print " <tr>";
print " <td>Name of ScreenShot:</td>";
print " <td>$superdat_name</td>";
print " </tr>";
print " <tr>";
print " <td>ScreenShot Size:</td>";
print " <td>$superdat_size bytes</td>";
print " </tr>";
print " <tr>";
print " <td>Type of ScreenShot:</td>";
print " <td>$superdat_type</td>";
print " </tr>";
print " <tr>";
print " <td>Description of uploaded ScreenShot:</td>";
print " <td>$message</td>";
print " </tr>";
print "</table>";
print " <b>Your ScreenShot and Information has been uploaded and emailed to the Site Administrator.</b>";
print " <p><font size=\"4\">$REMOTE_ADDR</font></p>";
print "<p><input type=\"button\" value=\"Close Window\" onClick=\"window.close()\"><BR></font></p>";
print "</CENTER></div>";
?> |
|
|
|
 |
hitwalker

|
Posted:
Fri Sep 16, 2005 12:10 pm |
|
well the code looks familiar but the following isnt right i think..
Code:
//$path = "http://www.armedwarriorsonline.com/nuke/modules/SSUploader/screenshots/$superdat_name"
$path = "http://www.armedwarriorsonline.com/nuke/modules/SSUploader/screenshots/";
|
when a path has to be entered usualy it starts like...
/home/public_html/etc...
and see if you can use a upload folder in the root.. |
|
|
|
 |
manoe

|
Posted:
Fri Sep 16, 2005 12:45 pm |
|
Another error. I made the path simply /home/public_html/screens
Warning: copy(/home/public_html/screens/MoE_circle.png): failed to open stream: No such file or directory in /home/haagt/public_html/nuke/modules/SSUploader/upload.php on line 69
Couldn't copy file.
Line 69 contains the following.
copy("$superdat", "$path")or
I do not understand this superdat stuff. I dont know what the hell I am doing.. ARGH. this shouldnt be this nuts. I also installed Vwar lol.. cant wait to get that into a block  |
|
|
|
 |
hitwalker

|
Posted:
Fri Sep 16, 2005 12:48 pm |
|
well otherwise pm me the ftp login... |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Sep 16, 2005 2:33 pm |
|
I'm glad Hitwalker is trying to help you . But, have you contacted the author? That should Always be your first avenue. |
|
|
|
 |
hitwalker

|
Posted:
Fri Sep 16, 2005 2:35 pm |
|
sorry raven,forgot to post...
its solved..he gave me access so its solved..
Completely forgot it... |
|
|
|
 |
|