Quote:
Originally posted by Mike11212
I need help
I installed the hack fine with out any problems
but when someone clicks the attachments in the PM
they get the following error
Parse error: parse error in /home/mike1121/public_html/board/attachment.php on line 100
here are lines 89 to 102 in my attachments.php file
Code:
if ($extension=='gif') {
header('Content-type: image/gif');
} elseif ($extension=='jpg' or $extension=='jpeg') {
header('Content-type: image/jpeg');
} elseif ($extension=='png') {
header('Content-type: image/png');
} elseif ($extension=='pdf') {
header('Content-type: application/pdf');
} else {
header('Content-type: unknown/unknown');
}
echo $attachmentinfo[filedata];
?>
|
Mike, I was having the same exact problem, but when I double checked to see that I had all the code work right, I really didn't. I was missing a '}' at the end of one of the lines. I think this is the same problem that you might be encountering. try doing this, with the modifications that you already have.
open- attachment.php
REPLACE
PHP Code:
updateuserforum($getforuminfo['forumid']);
WITH
PHP Code:
if ($privateok==0) {
updateuserforum($getforuminfo['forumid']);
}
BE SURE TO INCLUDE THE } at the end of that line. that should do the trick, let me know how it goes.

working great with 2.2.9.