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

Home » FUDforum » How To » Marking messages read in database
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Marking messages read in database [message #25408 is a reply to message #25371] Wed, 08 June 2005 11:35 Go to previous messageGo to previous message
Art Wolf is currently offline  Art Wolf   Ireland
Messages: 16
Registered: May 2005
Location: Dublin, Ireland
Karma:
Junior Member
Another quick question please ^_^;;

I've parsed the msg ids and am trying to add these to the fud26_msg table along with everything else. I could only find the insert statement in imsg_edt.inc.t

I added a variable to fud_msg - $msg_number and in nntp.inc I have

$tmp_msg_number = explode(":", $this->headers['xref']);
$this->msg_number = $tmp_msg_number[1];

to parse the number out. Directly after $msg_post = new fud_msg_edit; I have

$msg_post->msg_number = $this->msg_number;

In fud_msg_edit's add function I extended the insert to insert also into msg_number with the value $this->msg_number.

I have also ofcourse altered the table fud26_msg to have a column msg_number.

Problem with running nntp.php is that msg_number column always returns null. So my only thoughts are that either $msg_post->msg_number = $this->msg_number; is not saving it to the variable which is referenced in the add function or there is another INSERT method that I've missed :/

Any hints would be most appreciated ^_^;
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Posting URLs
Next Topic: Make a field in the registration form required
Goto Forum:
  

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

Current Time: Fri Nov 22 17:45:45 GMT 2024

Total time taken to generate the page: 0.04193 seconds