Purchase Credits 2.0.1 released and NewPoints 2.1.2 released .
Important info for developers
#1
Plugin files

Plugin files must go in inc/plugins/newpoints


Language files
Language files should go in inc/plugins/newpoints/languages/LANGUAGENAME/
(if it's an admin language file, should go under inc/plugins/newpoints/languages/LANGUAGENAME/admin)

To load a language file, run this function:
PHP Code:
newpoints_lang_load("plugincodename"); 


Add option to menu
If you want to add an option to the menu in the NewPoints page, make sure you hook to 'newpoints_default_menu' and use the function you want to be used, like this:
PHP Code:
function plugincodename_menu(&$menu)
{
    global $mybb$lang;
    newpoints_lang_load("plugincodename");
    
    if 
($mybb->input['action'] == 'plugincodename')
        $menu[] = "&raquo; <a href=\"{$mybb->settings['bburl']}/newpoints.php?action=plugincodename\">".$lang->plugincodename."</a>";
    else
        $menu
[] = "<a href=\"{$mybb->settings['bburl']}/newpoints.php?action=plugincodename\">".$lang->plugincodename."</a>";

To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply





Users browsing this thread: 1 Guest(s)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2020 MyBB-Plugins Forums.

Statistics

  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here