mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 21:32:09 +02:00
#220 - First batch of forum LAN rewrite: forum, viewforum, viewtopic and post are done. Work in progress! (#6)
This commit is contained in:
@@ -8,10 +8,10 @@ function print_item($thread_id)
|
||||
include_once(e_PLUGIN.'forum/forum_class.php');
|
||||
$forum = new e107forum;
|
||||
$thread_info = $forum->thread_get($thread_id,0,999);
|
||||
$thread_name = $tp -> toHTML($thread_info[0]['thread_name'], TRUE);
|
||||
$thread_name = $tp->toHTML($thread_info[0]['thread_name'], TRUE);
|
||||
$text = "<b>".$thread_name."</b><br />
|
||||
".$thread_info[0]['user_name'].", ".$gen->convert_date($thread_info[0]['thread_datestamp'], "forum")."<br /><br />
|
||||
".$tp -> toHTML($thread_info[0]['thread_thread'], TRUE);
|
||||
".$tp->toHTML($thread_info[0]['thread_thread'], TRUE);
|
||||
|
||||
|
||||
$count = 1;
|
||||
@@ -21,7 +21,7 @@ function print_item($thread_id)
|
||||
{
|
||||
$text .= "<br /><br />Re: <b>".$thread_name."</b><br />
|
||||
".$reply['user_name'].", ".$gen->convert_date($reply['thread_datestamp'], "forum")."<br /><br />
|
||||
".$tp -> toHTML($reply['thread_thread'], TRUE);
|
||||
".$tp->toHTML($reply['thread_thread'], TRUE);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,10 +37,10 @@ function email_item($thread_id)
|
||||
$forum = new e107forum;
|
||||
$thread_info = $forum->thread_get($thread_id,0,999);
|
||||
|
||||
$thread_name = $tp -> toHTML($thread_info[0]['thread_name'], TRUE);
|
||||
$thread_name = $tp->toHTML($thread_info[0]['thread_name'], TRUE);
|
||||
$text = "<b>".$thread_name."</b><br />
|
||||
".$thread_info[0]['user_name'].", ".$gen->convert_date($thread_info[0]['thread_datestamp'], "forum")."<br /><br />
|
||||
".$tp -> toHTML($thread_info[0]['thread_thread'], TRUE);
|
||||
".$tp->toHTML($thread_info[0]['thread_thread'], TRUE);
|
||||
|
||||
$count = 1;
|
||||
|
||||
@@ -49,7 +49,7 @@ function email_item($thread_id)
|
||||
{
|
||||
$text .= "<br /><br />Re: <b>".$thread_name."</b><br />
|
||||
".$reply['user_name'].", ".$gen->convert_date($reply['thread_datestamp'], "forum")."<br /><br />
|
||||
".$tp -> toHTML($reply['thread_thread'], TRUE);
|
||||
".$tp->toHTML($reply['thread_thread'], TRUE);
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
Reference in New Issue
Block a user