MyBB Community Forums

Full Version: Plugin problem with 1.6.5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Thanks a lot, I think I can do that. Just one last question:
If a line looks like this (I found several lines with 2 or more $ between de "()".)

function undodelete_backup_afile($attachname,$thumbnail)

Do I have to put an ampersand before both $ like this:

function undodelete_backup_afile(&$attachname,&$thumbnail)


or just in front of the first one like this:

function undodelete_backup_afile(&$attachname,$thumbnail)
Thanks again,

Ger
postrep plugin problem in line 168

if(!$mybb->settings['postrep_outline'])
	{									
		if($playout == "classic")
		{
			eval("\$post['postrep_inline'] .= \"".$templates->get("postrep_postbit_inline_classic")."\";");
		}
		else
		{
			eval("\$post['postrep_inline'] .= \"".$templates->get("postrep_postbit_inline")."\";");
		}
	}
	else
	{	
		eval("\$post['postrep_outline'] .= \"".$templates->get("postrep_postbit_outline")."\";");
	}
}
I upgrading from 1.6.4 to 1.6.5.
Everything is seems to be ok, except the Board Messages plugin, http://mods.mybb.com/view/board-messages, he not longer appear in Administration Panel, but the board message in forum set before the forum upgrading is stil present.
Any idea how to fix this?
(2011-11-26, 08:21 AM)wageral Wrote: [ -> ]Thanks a lot, I think I can do that. Just one last question:
If a line looks like this (I found several lines with 2 or more $ between de "()".)

function undodelete_backup_afile($attachname,$thumbnail)

Do I have to put an ampersand before both $ like this:

function undodelete_backup_afile(&$attachname,&$thumbnail)


or just in front of the first one like this:

function undodelete_backup_afile(&$attachname,$thumbnail)
Thanks again,

Ger

You only have to do it for functions for hooks on the list in the 1.6.5 wiki page. No plugin hook uses multiple variables.

(2011-11-26, 01:29 PM)vlahul Wrote: [ -> ]I upgrading from 1.6.4 to 1.6.5.
Everything is seems to be ok, except the Board Messages plugin, http://mods.mybb.com/view/board-messages, he not longer appear in Administration Panel, but the board message in forum set before the forum upgrading is stil present.
Any idea how to fix this?

Please read the giant sticky about plugin changes for 1.6.5
Board Messages plugin, http://mods.mybb.com/view/board-messages, modified to work with the latest version of mybb, 1.6.5 (work for my):
[attachment=24786]
Download the plugin (http://mods.mybb.com/view/board-messages) and then replace board_messages.php.
If you are the plugin already installed, replace the board_messages.php, it is in inc/plugins folder.
Pages: 1 2