MyBB Community Forums

Full Version: [MyBB ACP] Hide sub_tabs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

You can define the tabs shown for a plugin like this:
Quote:$sub_tabs['mysc_newitem']=array
(
'title'=>'New Item',
'link'=>'index.php?module=config-test&action=newitem',
'description'=>'Create a new announcement based on the specifications given below.'
);

But I rather prefer to have one tab not listed, but only use it for the description given to it on a certain page.

For example, I have made a page to make new updates for an item. When you click on the tab, it does nothing because there's no ID given as input. In an item, I've created a link with ID so the input is succesfully passed to the 'make new item' page.

I hope someone does understand what I'm actually trying to achieve :$

Thanks,
Bump, is this possible?
> I hope someone does understand what I'm actually trying to achieve :$

You want to add a tab. That tab should be hidden and show description at the same time. Smile

I can't answer, but related to tabs - class DefaultPage in admin\inc\class_page.php has hook(s), e.g.
	function output_nav_tabs($tabs=array(), $active='')
	{
		global $plugins;
		$tabs = $plugins->run_hooks("admin_page_output_nav_tabs_start", $tabs);
		...
Hey,

thanks for your reply! I'll try that out later today, for now I've found another work around which is rather messy though..

Thanks so far!