Should be simple.. create a new template called attachment_mustlogin, fill it with some text about having to be logged in to grab attachments, then place the following code in attachment.php, right after
PHP Code:
require("./global.php");
PHP Code:
if(!$bbuserid) {
eval("standarderror(\"".gettemplate('attachment_mustlogin')."\");");
exit;
}
it
should work, but i haven't tested it