Ну тогда заместо
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->else if ($this->ipsclass->input['view'] == 'getpost')
{
if( !is_object( $this->parser ) )
{
//-----------------------------------------
// Load and config the post parser
//-----------------------------------------
$_load = $this->ipsclass->memory_debug_make_flag();
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
$this->parser = new parse_bbcode();
$this->parser->ipsclass = $this->ipsclass;
$this->parser->allow_update_caches = 1;
$this->parser->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
$this->ipsclass->memory_debug_add( "TOPIC: Loaded han_parse_bbcode.php", $_load );
}
//-----------------------------------------
// Get jax firstpost
//-----------------------------------------
@header( "Content-type: text/plain;charset={$this->ipsclass->vars['gb_char_set']}" );
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
'from' => 'posts',
'where' => "pid=".intval($this->ipsclass->input['pid'] > 0 ? $this->ipsclass->input['pid'] : $this->topic['topic_firstpost']),
));
$this->ipsclass->DB->simple_exec();
$row = $this->ipsclass->DB->fetch_row();
$this->parser->parse_html = ( $this->forum['use_html'] and $row['post_htmlstate'] ) ? 1 : 0;
$this->parser->parse_nl2br = $row['post_htmlstate'] == 2 ? 1 : 0;
$input = $this->parser->pre_display_parse( $row['post'] );
$macros = unserialize(stripslashes($this->ipsclass->skin['_macro']));
if ( is_array( $macros ) )
{
foreach( $macros as $i => $row )
{
if ($row['macro_value'] != "")
{
$input = str_replace( "<{".$row['macro_value']."}>", $row['macro_replace'], $input );
}
}
}
$input = str_replace( "<#IMG_DIR#>", $this->ipsclass->skin['_imagedir'], $input );
$input = str_replace( "<#EMO_DIR#>", $this->ipsclass->skin['_emodir'] , $input );
die($input);
}<!--c2--></div><!--ec2-->
Вот это вставте
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--> else if ($this->ipsclass->input['view'] == 'getpost')
{
if( !is_object( $this->parser ) )
{
//-----------------------------------------
// Load and config the post parser
//-----------------------------------------
$_load = $this->ipsclass->memory_debug_make_flag();
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
$this->parser = new parse_bbcode();
$this->parser->ipsclass = $this->ipsclass;
$this->parser->allow_update_caches = 1;
$this->parser->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
$this->ipsclass->memory_debug_add( "TOPIC: Loaded han_parse_bbcode.php", $_load );
}
//-----------------------------------------
// Get jax firstpost
//-----------------------------------------
@header( "Content-type: text/plain;charset={$this->ipsclass->vars['gb_char_set']}" );
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
'from' => 'posts',
'where' => "pid=".intval($this->ipsclass->input['pid'] > 0 ? $this->ipsclass->input['pid'] : $this->topic['topic_firstpost']),
 
);
$this->ipsclass->DB->simple_exec();
$row = $this->ipsclass->DB->fetch_row();
$this->parser->parse_html = ( $this->forum['use_html'] and $row['post_htmlstate'] ) ? 1 : 0;
$this->parser->parse_nl2br = $row['post_htmlstate'] == 2 ? 1 : 0;
$input = $this->parser->pre_display_parse( $row['post'] );
$macros = unserialize(stripslashes($this->ipsclass->skin['_macro']));
if ( is_array( $macros ) )
{
foreach( $macros as $i => $row )
{
if ($row['macro_value'] != "")
{
$input = str_replace( "<{".$row['macro_value']."}>", $row['macro_replace'], $input );
}
}
}
$input = str_replace( "<#IMG_DIR#>", $this->ipsclass->skin['_imagedir'], $input );
$input = str_replace( "<#EMO_DIR#>", $this->ipsclass->skin['_emodir'] , $input );
die($input);
}<!--c2--></div><!--ec2-->