Create_module_met_ACP_menulink.
0
114
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Create_module_met_ACP_menulink.
[For 1.8] - [Tutorial] - Create ACP module meta for plugin link


* Tutorial credits: ic_myXMB
* The tutorial is free to re-share as long as you retain any mentioned credits



This simple little tutorial was created by request in response to a user asking how they could create a quick module for menu item link in the ACP top menu for a "Config Plugins" link.

As such, let us begin that simple task.

Ok, you can simply go into your forum root directory:

and navigate inside to:

Quote:admin/modules

and say for example create a dir called:
Quote:/config_plugs

in such newly created directory create a meta file called:

Quote:module_meta.php


Add the following in that file:

<?php

if(!defined("IN_MYBB")){
 die("Direct initialization of this file is not allowed.");
}

function config_plugs_meta(){

global $page, $plugins;

    $page->add_menu_item("Config Plugins", "config-plugins", "index.php?module=config-plugins", 101);
}


Now, for this example as you see in the images I used "Config Plugins" as the link text (you should notice the only text that has capitalization?), but you could simply change that to "Plugins" if desired.

Best of luck.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.

Forum Jump:


Users browsing this thread:
1 Guest(s)