Quote:
Today at 09:12 PM 350Chevy said this in Post #62
BTW... Thnx for the fix for the editpost.php.. Works fine on posts with single attachments or no attachments..
|
Whoops...
Change
PHP Code:
if(isset($qry)) {
$qry .= " OR attachmentid='$value'";
} else {
$qry = "attachmentid='$value'";
}
To
PHP Code:
$att = explode(",",$postinfo[attachmentid]);
foreach($att as $value) {
if(isset($qry)) {
$qry .= " OR attachmentid='$value'";
} else {
$qry = "attachmentid='$value'";
}
}
Even still, when I submit the edited post, it gives me a blank page and I look at the post and it is now completely blank...
EDIT: Whoops, I made anopther mistake in the above code. Re-apply that change if you have already applied it.