<div align="center"><!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo--><b>Предпросмотр темы 2.3.х</b><!--sizec--></span><!--/sizec--></div>
<b>Открыть файл ./sources/action_public/topics.php</b>
Найти:
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--> else if ($this->ipsclass->input['view'] == 'findpost')
{
//-----------------------------------------
// Find a post
//-----------------------------------------<!--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-->
<b>Открыть файл ./jscripts/ipb_forum.js</b>
Найти:
<!--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-->
Добавить после:
<!--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-->
<b>Далее Админцентр > ВНЕШНИЙ ВИД > стиль > Изменить HTML > skin_forum > render_forum_row</b>
Найти:
<!--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-->
Добавить после:
<!--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-->