
12-10-2000, 04:53 AM
|
|
Quote:
Originally posted by Herb
conan - I uploaded the new zip with the correct create table fields.. sorry about that..
Quote:
How can I remove this option, so users can upload pictures whenever they want?
|
Ok in newthread.php find this code that you added for the hack..
Code:
if (isset($fileupload)){
and change it to
Code:
if (isset($fileupload) and $fileupload != "none") {
Then below the above should be
Code:
if ($fileupload == "none") {
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_filenone")."\");");
exit();
}
Remove that check..
Then find
Code:
// ##### Image Upload Hack (update image table) #####
if (isset($fileupload)) {
$DB_site->query("INSERT INTO imagegal (imagegalid,postid,upimage,username,userid) VALUES ('NULL','$mypostid','$TheFileNameIs','".addslashes($username)."','$userid')");
}
// ##### Image Upload Hack (update image table) #####
and change it to:
Code:
// ##### Image Upload Hack (update image table) #####
if (isset($fileupload) and $fileupload != "none") { {
$DB_site->query("INSERT INTO imagegal (imagegalid,postid,upimage,username,userid) VALUES ('NULL','$mypostid','$TheFileNameIs','".addslashes($username)."','$userid')");
}
// ##### Image Upload Hack (update image table) #####
I think that should do it for ya..
Herb
[Edited by Herb on 09-29-2000 at 10:25 AM]
|
There were 2 { in your code above in case anyone tries this...
|