Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

How to create plugin for MYBB?

Ads
banner
banner
banner
whatsapp Offline referral

Posts: 83
Joined: Mar 2014
Reputation: 1

#1
Member
Guys could you please explain how plugins for MYBB forum are created? I don't really know much about PHP but I only need a plugin template without any PHP in it because I will add it later on?
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
Well to create any kind of plugin you need to know a bit of PHP coding but I will post a template that you can use for creating simple MYBB Plugins.

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

$plugins->add_hook("location_of_this_hook""the_name_of_this_plugin");


function 
the_name_of_this_plugin_info()

{

    return array(
        
"name"        => "The name of your plugin",
        
"description"    => "Description of your plugin",
        
"website"    => "Any website URL for more info",
        
"version"    => "Plugin version",
        
"author"    => "Author's name",
        
"authorsite"    => "Author website URL",

    );
}


function 
the_name_of_this_plugin()
{
    global 
$mybb;

    
// PHP code goes here
}
?>

Remember the plugin file name has to be the same as the name in the hook section and for the functions.





User(s) browsing this thread: 1 Guest(s)