To avoid the problem of the View Images option, I would suggest those modifications in the hack :
In spite of doing :
Code:
##### In attachment.php find:
require("./global.php");
##### Below add:
// minimum posts to download attachments hack
if ($minpostattach > $bbuserinfo[posts]) {
eval("standarderror(\"".gettemplate("error_attachmoreposts")."\");");
exit;
}
// end minimum posts to download attachments hack
Just do :
Code:
##### In attachment.php find:
updateuserforum($getforuminfo['forumid']);
##### Just before, add:
// minimum posts to download attachments hack
$extension=strtolower(substr(strrchr($attachmentinfo[filename],"."),1));
if (($minpostattach > $bbuserinfo[posts]) && $minpostattach!=0 && $extension!='gif' && $extension!='jpeg' && $extension!='png') {
eval("standarderror(\"".gettemplate("error_attachmoreposts")."\");");
exit;
}
// end minimum posts to download attachments hack
And if you are perfectionist, you can also suppress the line :
$extension=strtolower(substr(strrchr($attachmentin fo
which appears just after the headers of the attachment.