MyBB Community Forums

Full Version: Sidebos sidebar as on xda-developer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I am looking for sidebar, sidebox plugin etc.
Looking plugin:
http://forum.xda-developers.com/index.php

Plugin sidebox (Author: Nayar) has a problem with the template Apart

No plugin Sidebox is OK
[Image: di-UNY0.png]

With Plugin Sidebox
[Image: di-HM23.png]


Advanced Sidebox v1.6.2 is problem
[Image: di-5JXD.png]
Try this: http://community.mybb.com/thread-131633.html

EDIT: oh didn't notice the other screen, I don't understand your problem based on these arrows though. If you want to move the button, you need to edit adv_sidebox_class_template_handler.php unfortunately.
This code specifically:
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();
	}
}

I'd change it to:
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();
	}
}

Not sure if it will work, haven't tested.
Button NEW REPLY (Dodaj temat) is displaced
[Image: di-NIKN.png]
Have you tried the code I provided?
Spróbowałeś powyższy kod?
(2013-05-13, 09:32 PM)Destroy666 Wrote: [ -> ]Have you tried the code I provided?

thanks,
I have not tested