Открыть файл ./<b>sources/action_public/topics.php</b>
<u>найти:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--> else if ($this->ipsclass->input['view'] == 'findpost')
{
//-----------------------------------------
// Find a post
//-----------------------------------------<!--c2--></div><!--ec2-->
<u>Добавить перед:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->else if ($this->ipsclass->input['view'] == 'getpost')
{
//-----------------------------------------
// 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-->
Открыть файл ./<b>jscripts/ipb_forum.js</b>
<u>найти:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->var _this_select_all = 0;
var tid_date = new Array();
var click_delay = 1200; //microseconds (1.2 seconds)<!--c2--></div><!--ec2-->
<u>Добавить после:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->/*-------------------------------------------------------------------------*/
// AJAX FIRST post
/*-------------------------------------------------------------------------*/
function getData(str,fld,textfield){
field = document.getElementById(fld);
do_request_function = function()
{
if (!xmlobj.readystate_ready_and_ok())
{
xmlobj.show_loading();
return;
}
xmlobj.hide_loading();
field.innerHTML = xmlobj.xmlhandler.responseText;
}
xmlobj = new ajax_request();
xmlobj.onreadystatechange( do_request_function );
xmlobj.process( ipb_var_base_url + Math.random() + "&" + str);
return false;
}<!--c2--></div><!--ec2-->
<b>Админцентр > ВНЕШНИЙ ВИД > ваш стиль > Изменить CSS(расширенный режим), в самое начало вставляем:</b>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->.topicpreview{border:1px solid #000;position:absolute;width:500px;padding:3px 5px 3px 3px;background: #EEF2F7;text-align:left;margin-left:0px}<!--c2--></div><!--ec2-->
<u>Далее </u>
<b>Админцентр > ВНЕШНИЙ ВИД > стиль > Изменить HTML > skin_forum > render_forum_row</b>
<u>найти:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--><span id='tid-span-{$data['tid']}'><a id="tid-link-{$data['tid']}" href="{$this->ipsclass->base_url}showtopic={$data['tid']}" title="{$this->ipsclass->lang['topic_started_on']} {$data['start_date']}">{$data['title']}</a></span><!--c2--></div><!--ec2-->
<u>Добавить после:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--><span onmouseout='toggleview("{$data['tid']}_preview");' onmouseover='toggleview("{$data['tid']}_preview");getData("act=st&t={$data['tid']}&view=getpost","{$data['tid']}_preview")'>[?]</span><div id='{$data['tid']}_preview' class='topicpreview' style='display:none'></div><!--c2--></div><!--ec2-->
<u>найти:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--> else if ($this->ipsclass->input['view'] == 'findpost')
{
//-----------------------------------------
// Find a post
//-----------------------------------------<!--c2--></div><!--ec2-->
<u>Добавить перед:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->else if ($this->ipsclass->input['view'] == 'getpost')
{
//-----------------------------------------
// 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-->
Открыть файл ./<b>jscripts/ipb_forum.js</b>
<u>найти:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->var _this_select_all = 0;
var tid_date = new Array();
var click_delay = 1200; //microseconds (1.2 seconds)<!--c2--></div><!--ec2-->
<u>Добавить после:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->/*-------------------------------------------------------------------------*/
// AJAX FIRST post
/*-------------------------------------------------------------------------*/
function getData(str,fld,textfield){
field = document.getElementById(fld);
do_request_function = function()
{
if (!xmlobj.readystate_ready_and_ok())
{
xmlobj.show_loading();
return;
}
xmlobj.hide_loading();
field.innerHTML = xmlobj.xmlhandler.responseText;
}
xmlobj = new ajax_request();
xmlobj.onreadystatechange( do_request_function );
xmlobj.process( ipb_var_base_url + Math.random() + "&" + str);
return false;
}<!--c2--></div><!--ec2-->
<b>Админцентр > ВНЕШНИЙ ВИД > ваш стиль > Изменить CSS(расширенный режим), в самое начало вставляем:</b>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1-->.topicpreview{border:1px solid #000;position:absolute;width:500px;padding:3px 5px 3px 3px;background: #EEF2F7;text-align:left;margin-left:0px}<!--c2--></div><!--ec2-->
<u>Далее </u>
<b>Админцентр > ВНЕШНИЙ ВИД > стиль > Изменить HTML > skin_forum > render_forum_row</b>
<u>найти:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--><span id='tid-span-{$data['tid']}'><a id="tid-link-{$data['tid']}" href="{$this->ipsclass->base_url}showtopic={$data['tid']}" title="{$this->ipsclass->lang['topic_started_on']} {$data['start_date']}">{$data['title']}</a></span><!--c2--></div><!--ec2-->
<u>Добавить после:</u>
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--><span onmouseout='toggleview("{$data['tid']}_preview");' onmouseover='toggleview("{$data['tid']}_preview");getData("act=st&t={$data['tid']}&view=getpost","{$data['tid']}_preview")'>[?]</span><div id='{$data['tid']}_preview' class='topicpreview' style='display:none'></div><!--c2--></div><!--ec2-->