|
|
|
|
|
Re: Newsgroup Manager - How to sychronize only postings from known users? [message #27885 is a reply to message #27880] |
Thu, 29 September 2005 13:28 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I see what you're saying, I think doing this would be a bad idea. Putting a fake address in the from header for mailing lists and nntp is generally frowned upon and could get you banned. Additionally it prevents people from directly replying to the user via e-mail.
So, I'm afraid I must decline this feature request.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Newsgroup Manager - How to sychronize only postings from known users? [message #27936 is a reply to message #27933] |
Fri, 30 September 2005 22:01 |
icarus
Messages: 52 Registered: May 2005
Karma: 0
|
Member |
|
|
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
|
|
|
|