Thread Rating:
  • 44 Vote(s) - 3.36 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Plugin Changes coming in 1.6.5
#27
Not Solved
Make it clear for me , what exactly changes in it?
$plugins->add_hook("pre_output_page", "hello_world");
$plugins->add_hook("postbit", "hello_world_postbit");

function hello_info()
{
	/**
	 * Array of information about the plugin.
	 * name: The name of the plugin
	 * description: Description of what the plugin does
	 * website: The website the plugin is maintained at (Optional)
	 * author: The name of the author of the plugin
	 * authorsite: The URL to the website of the author (Optional)
	 * version: The version number of the plugin
	 * guid: Unique ID issued by the MyBB Mods site for version checking
	 * compatibility: A CSV list of MyBB versions supported. Ex, "121,123", "12*". Wildcards supported.
	 */
	return array(
		"name"			=> "Hello World!",
		"description"	=> "A sample plugin that prints hello world and prepends the content of each post to 'Hello world!'",
		"website"		=> "http://mybb.com",
		"author"		=> "MyBB Group",
		"authorsite"	=> "http://mybb.com",
		"version"		=> "1.0",
		"guid" 			=> "",
		"compatibility" => "*"
	);
}



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']}";
}
?>
www.vubscs.com ( A new way of Mybb)


Messages In This Thread
Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-27, 06:36 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-27, 08:21 PM
RE: Plugin Changes coming in 1.6.5 - by labrocca - 2011-10-27, 08:25 PM
RE: Plugin Changes coming in 1.6.5 - by Jaketfg - 2011-10-27, 11:51 PM
RE: Plugin Changes coming in 1.6.5 - by enhu - 2011-10-28, 03:47 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 02:28 AM
RE: Plugin Changes coming in 1.6.5 - by Rukbat - 2011-10-28, 03:09 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 03:33 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 04:08 AM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 06:40 AM
RE: Plugin Changes coming in 1.6.5 - by Euan T - 2011-10-28, 09:12 AM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-28, 04:11 PM
RE: Plugin Changes coming in 1.6.5 - by Tomm M - 2011-10-28, 07:45 AM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 02:23 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 03:28 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 03:29 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 04:23 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-28, 04:29 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 06:03 PM
RE: Plugin Changes coming in 1.6.5 - by sunjava1 - 2011-10-28, 06:44 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 06:46 PM
RE: Plugin Changes coming in 1.6.5 - by sunjava1 - 2011-10-28, 06:58 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 07:13 PM
RE: Plugin Changes coming in 1.6.5 - by adbrad - 2011-10-28, 07:37 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 07:38 PM
RE: Plugin Changes coming in 1.6.5 - by Solidus - 2011-10-28, 10:56 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 11:14 PM
RE: Plugin Changes coming in 1.6.5 - by Maj - 2011-10-29, 12:00 AM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-29, 12:30 AM
RE: Plugin Changes coming in 1.6.5 - by Maj - 2011-10-29, 05:15 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-29, 06:00 AM
RE: Plugin Changes coming in 1.6.5 - by crazy4cs - 2011-10-29, 10:54 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-29, 02:42 PM
RE: Plugin Changes coming in 1.6.5 - by Solidus - 2011-10-29, 05:04 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-29, 10:41 PM
RE: Plugin Changes coming in 1.6.5 - by Alan S. - 2011-10-30, 06:18 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-29, 04:56 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-30, 04:05 AM
RE: Plugin Changes coming in 1.6.5 - by Solidus - 2011-10-30, 02:13 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-30, 02:37 PM
RE: Plugin Changes coming in 1.6.5 - by pdtrx - 2011-10-30, 02:22 PM
RE: Plugin Changes coming in 1.6.5 - by FBI - 2011-10-30, 02:51 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-30, 03:11 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-30, 03:23 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-30, 03:28 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-30, 04:57 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-30, 06:46 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-31, 01:40 AM
RE: Plugin Changes coming in 1.6.5 - by qwertyx - 2011-11-01, 07:43 PM
RE: Plugin Changes coming in 1.6.5 - by qwertyx - 2011-11-01, 08:00 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-11-01, 07:56 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-11-01, 08:01 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-11-01, 08:03 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-11-02, 04:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)