MyBB Community Forums

Full Version: Plugin doesn't show on plugin config page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've recently coded a new plugin based off "Poll On Index" but when I go to activate to try it out, it isn't listed on the page. The page doesn't die. It just doesn't show.

I've tried commenting out everything but the _info() function. The plugin is based off of a completely working plugin. Just stripped down a lot.

I've tried it with JUST the following:

if(!defined("IN_MYBB")) {
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

// Plugin info
function thread_header_info() {
	return array(
		"name"					=> "Thread in Header",
		"description"		=> "Displays the contents of a thread on the index page.",
		"website"				=> "http://www.jazzza001.com",
		"author"				=> "Jazzza001",
		"authorsite"		=> "http://www.jazzza001.com",
		"version"				=> "1.0",
    "compatibility" => "14*"
	);
}

(yes it's designed for my MyBB 1.4 forum, don't tell me to update, and the other plugin works perfectly in 1.4)
What's the file name of the plugin? It should be thread_header.php if you're using those function names.
Also, does it have opening and closing <?php ?> tags?
(2011-11-24, 08:57 PM)Paul H. Wrote: [ -> ]Also, does it have opening and closing <?php ?> tags?

Never even noticed the PHP tags were missing there - nice catch Wink
Yes the php tags are there. I just cut and paste the _info() function for slimming it down.

I don't think the file name is the same, thanks guys Smile
the file name should be the same as of the function or else it won't display.
Yep I fixed it, thanks guys