Ok, here goes the fix to the fix:
Where the instructions read:
Quote:
Search for this:
attachment.counter
and replace it with:
attachment.counter,attachment.hash
|
it actually means:
Quote:
Search for the second occurance of this:
attachment.counter
and replace it with:
attachment.counter,attachment.hash
|
And then, where it reads:
Quote:
scroll down a little bit and right after:
if (!$getperms['cangetattachment']) {
$viewattachedimages=0;
}
add:
$post[attachmentid]
$filepath="$attachpath/$post[hash].file";
if ($post[attachmentid] && is_file($filepath)) {
$post[attachsize] = sprintf('%.2f',filesize($filepath)/1024);
} else {
$post[attachsize] = "";
}
|
it should read:
Quote:
scroll down a little bit and right after:
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
add:
//$post[attachmentid]
$filepath="$attachpath/$post[hash].file";
if ($post[attachmentid] && is_file($filepath)) {
$post[attachsize] = sprintf('%.2f',filesize($filepath)/1024);
} else {
$post[attachsize] = "";
}
|
notice that the first line of the code to be added is
now commented out. it was causing a parse error in the script, thus the blank page experienced by some users which had php error reporting disabled. (there's a setting in php.ini). I really don't know what that line was supposed to do, but the code works fine now, even without it.
that's it. it works fine for me