threadGet($thread_id,0,999); $thread_name = $tp->toHTML($thread_info[0]['thread_name'], TRUE); $text = "".$thread_name."
".$thread_info[0]['user_name'].", ".$gen->convert_date($thread_info[0]['thread_datestamp'], "forum")."

".$tp->toHTML($thread_info[0]['thread_thread'], TRUE); $count = 1; unset($thread_info[0], $thread_info['head']); foreach($thread_info as $reply) { $text .= "

Re: ".$thread_name."
".$reply['user_name'].", ".$gen->convert_date($reply['thread_datestamp'], "forum")."

".$tp->toHTML($reply['thread_thread'], TRUE); } // return "
".print_r($thread_info,TRUE)."
"; return $text; } function email_item($thread_id) { global $tp; $gen = new convert; include_once(e_PLUGIN.'forum/forum_class.php'); $forum = new e107forum; $thread_info = $forum->threadGet($thread_id,0,999); $thread_name = $tp->toHTML($thread_info[0]['thread_name'], TRUE); $text = "".$thread_name."
".$thread_info[0]['user_name'].", ".$gen->convert_date($thread_info[0]['thread_datestamp'], "forum")."

".$tp->toHTML($thread_info[0]['thread_thread'], TRUE); $count = 1; unset($thread_info[0], $thread_info['head']); foreach($thread_info as $reply) { $text .= "

Re: ".$thread_name."
".$reply['user_name'].", ".$gen->convert_date($reply['thread_datestamp'], "forum")."

".$tp->toHTML($reply['thread_thread'], TRUE); } return $text; } ?>