Hi again!
This doesn't seem to be okay:
// skip_non_forum_users is set
if (!$msg_post->poster_id && $this->nntp_opt & 256) {
return;
}
It doesn't write the file with the last posting and it seems to write only one posting every time - every time the same posting.
I changed the code a little bit. I deactivated the lines above and changed some lines below this:
if (!(!$msg_post->poster_id && $this->nntp_opt & 256)) {
$msg_post->add($frm->id, $frm->message_threshold, 0, 0, false);
// Handle File Attachments
if (isset($this->attachments) && is_array($this->attachments)) {
foreach($this->attachments as $key => $val) {
if (!($nntp_adm->nntp_opt & 8) && (strlen($val) > $frm->max_attach_size || (isset($attach_list) && count($a
continue;
}
$tmpfname = tempnam($GLOBALS['TMP'], 'FUDf_');
$fp = fopen($tmpfname, 'wb');
fwrite($fp, $val);
fclose($fp);
$id = attach_add(array('name' => basename($key), 'size' => strlen($val), 'tmp_name' => $tmpfname), $msg_pos
$attach_list[$id] = $id;
}
if (isset($attach_list)) {
attach_finalize($attach_list, $msg_post->id);
}
}
if (!($nntp_adm->nntp_opt & 1)) {
fud_msg_edit::approve($msg_post->id);
}
}
This now seems to work.
Michael