MyBB Community Forums

Full Version: Announcements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
You know those yellow and green banners that appear over the MyBB forum main page? I want to get those in my forum, but when I make an announcement, it shows up in a forum style, and you can only see it if you go into a forum.
How do I get those banners up there? Answer please?
You can use the hello world application which is installed by default on the mybb forum install then just add some custom inline css to the text you write to give it background colors, font styles, color etc
How do I edit the text that it displays? and how do I stop it from appending "hello World" to each post?
open ftp and navigate to /public_html/forums/inc/plugins then open the file name hello.php and edit the part where it says hello world with what you want to say if you look below if you only want it displayed on the header change $page to $header



function hello_world($page)
{
	$page = str_replace("<div id=\"content\">", "<div id=\"content\"><p>Hello World!<br />This is a sample MyBB Plugin (which can be disabled!) that displays this message on all pages.</p>", $page);
	return $page;
}

function hello_world_postbit($post)
{
	$post['message'] = "<strong>Hello world!</strong><br /><br />{$post['message']}";
}
These coloured messages are from this plugin: http://mods.mybb.com/view/emergency-message-system
(2011-07-14, 12:17 PM)linguist Wrote: [ -> ]These coloured messages are from this plugin: http://mods.mybb.com/view/emergency-message-system

Thank you