2013-07-28, 10:31 AM
I have a problem with the plug.
Why is that?
UPDATE: solution to the problem http://community.mybb.com/thread-131633-...pid1011787
Question 2
How to make this effect?
Question 3
This can be corrected in such a way?
Code:
Replace:
Is OK?
Why is that?
UPDATE: solution to the problem http://community.mybb.com/thread-131633-...pid1011787
Question 2
How to make this effect?
Question 3
This can be corrected in such a way?
Code:
class Forumdisplay_template_handler extends Simple_template_handlers
{
/*
* make_edits()
*
* set the script and a custom replacement then call Simple_template_handler::make_edit()
*/
public function make_edits()
{
global $templates;
// more than one {$multi_page} so we have to be sure we have the right one
$newthread_div_open_pos = strpos($templates->cache['forumdisplay_threadlist'], '<div class="float_right">');
$newthread_div_close_pos = strpos($templates->cache['forumdisplay_threadlist'], '</div>', $newthread_div_open_pos);
$this->find_top = substr($templates->cache['forumdisplay_threadlist'], $newthread_div_open_pos, ($newthread_div_close_pos - $newthread_div_open_pos) + 6);
$this->find_bottom = '{$inline_edit_js}';
$this->template_name = 'forumdisplay_threadlist';
parent::make_edits();
}
}
Replace:
class Forumdisplay_template_handler extends Simple_template_handlers
{
/*
* make_edits()
*
* set the script and a custom replacement then call Simple_template_handler::make_edit()
*/
public function make_edits()
{
$this->template_name = 'forumdisplay';
parent::make_edits();
}
}
Is OK?