MyBB Community Forums

Full Version: ACP Class_page suggestions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In class_page.php output_header function, can we get an "extra_header" type variable that is output at the end of the function?

public $extra_messages = "";

function output_header($title="")
{
    <snip current code>
    echo $this->extra_messages;
}

there have been a few times that I have needed to output a message and don't really want to overwrite/intercept flash_message.
any feedback?
I think it's a good idea. Smile
I definitely think this is a good idea. It would make life a fair deal easier. I'd like to see the variable take an array so one could pass multiple messages such as the following:

$extra_messages = array(
	0	=>	array(
		'message'	=>	'My message',
		'type'		=>	'error',
		),
	1	=>	array(
		'message'	=>	'Another message',
		'type'		=>	'notify',
		),
	);

Then the messages would be styled by the ACP to ensure all messages looked the same and stuff.
an array is a slightly more complex modification, but I am for that.