FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Newsgroup Manager - How to sychronize only postings from known users?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
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 Go to previous messageGo to previous message
icarus is currently offline  icarus   Germany
Messages: 52
Registered: May 2005
Karma:
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help! Yahoo! Sent my confirmation mail to Bulk!
Next Topic: Will FUDforum do what I want?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 11:41:31 GMT 2024

Total time taken to generate the page: 0.04854 seconds