Add AdminCP-menu link
From Game Section
NOTE THAT THIS PAGE IS ABOUT GAME SECTION 1.1.x
In this tutorial, you can read how to add a menu in the AdminCP menu of the Game Section.
Code
In your plugin, you must to add a hook like this:
$plugins->add_hook("admin_index_navigation_end", "plugin_admin_nav");
And, of course, you must to add a function like this:
function plugin_admin_nav()
{
global $menu, $lang;
foreach($menu as $key => $val)
{
foreach($menu[$key] as $key2 => $val2)
{
if($menu[$key]['title'] == $lang->gamesection && !$found)
{
$menu[$key]['items'][] = array("title" => "Your new link", "url" => "yourfile.php?".SID);
$found = true;
}
}
}
}
Example plugin
There is an example plugin of this tutorial made. Click here to download.

