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

Home » FUDforum Development » Plugins and Code Hacks » adding a 'simple' thing to FUD
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: adding a 'simple' thing to FUD [message #20282 is a reply to message #20199] Wed, 06 October 2004 07:54 Go to previous messageGo to previous message
johed802 is currently offline  johed802   Sweden
Messages: 24
Registered: September 2004
Karma:
Junior Member
Hi!

Now I'm interested in creating a reply to a given thread. I have this code so far:
 $reply_msg = new fud_msg_edit;
 $reply_msg->poster_id = $id;
 $reply_msg->subject = "a reply";
 $reply_msg->body = "body of msg";
 $reply_msg->add_reply(151, 118, "", "", TRUE); //118=thread_id, 151=msg id
 $result = uq("select max(id) from {SQL_TABLE_PREFIX}msg");
 $var = db_rowarr($result);      
  if(isset($var[0])){
      $reply_msg->approve($var[0], FALSE);	
  } 


The problem is that it creates a separate thread for this, not a reply. Any ideas on how to create a simple reply to a thread?

[Updated on: Wed, 06 October 2004 12:40]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon10.gif
Read Message icon5.gif
Read Message
Read Message icon5.gif
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: New script: fudbox.php
Next Topic: How do I get error messages?
Goto Forum:
  

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

Current Time: Sat Nov 23 17:31:45 GMT 2024

Total time taken to generate the page: 0.04277 seconds