So I am wanting to have a user option where they can choose to have their Menu items open in a Tab or not.
I would rather do this than have to make two different menu pages.
I created a menu page with the “Open Items in a Tab” selected, and ran the source code.
Then I unchecked the option, regenerated and ran the source code again.
using DiffChecker.com this is the difference between the two.
///PHP with TABS ENABLED
function Gera_sc_init($apl_menu)
{
$_SESSION[‘scriptcase’][‘admin_menu2’][‘sc_init’][$apl_menu] = rand(2, 10000);
$_SESSION[‘sc_session’][$_SESSION[‘scriptcase’][‘admin_menu2’][‘sc_init’][$apl_menu]] = array();
$this->menu_sc_init = $_SESSION[‘scriptcase’][‘admin_menu2’][‘sc_init’][$apl_menu];
return $this->menu_sc_init;
}
////////
PHP with TABS DISABLED
function Gera_sc_init($apl_menu)
{
$this->menu_sc_init = 1;
return 1;
}
////
I have tried to do: [menu_sc_init] =2; in the OnScriptInit but it didn’t work.
Anyone have any ideas?