Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin->configuration expanded after log in


blr044

Recommended Posts

Posted

I posted this question back in August, but never received a reply. After days of searching Google, haven't found a solution. Looking for a way to edit admin->configuration.php so that whenever one logs into admin, configuration is collapsed instead of being expanded? I have even tried various things, but all failed.

 

Is this even possible?

 

Thank you.

Posted

The code you are looking for is in admin/includes/application_top.php:

 

// default open navigation box
if (!tep_session_is_registered('selected_box')) {
 tep_session_register('selected_box');
 $selected_box = 'configuration';
}

if (isset($HTTP_GET_VARS['selected_box'])) {
 $selected_box = $HTTP_GET_VARS['selected_box'];
}

I believe that setting $selected_box to the empty string ('') instead of 'configuration' will have the effect you desire. You may also need to clear your session before the change will show up.

 

.

Check out Chad's News.

Posted

The code you are looking for is in admin/includes/application_top.php:

 

I believe that setting $selected_box to the empty string ('') instead of 'configuration' will have the effect you desire. You may also need to clear your session before the change will show up.

 

.

 

Thank you for the great suggestion. Just what I been looking for.

 

Bennett

  • 5 months later...
Posted

The code you are looking for is in admin/includes/application_top.php:

 

// default open navigation box
if (!tep_session_is_registered('selected_box')) {
 tep_session_register('selected_box');
 $selected_box = 'configuration';
}

if (isset($HTTP_GET_VARS['selected_box'])) {
 $selected_box = $HTTP_GET_VARS['selected_box'];
}

 

 

This worked great when previous versions of osc were used. But using ver 2.3.1, the above code is not in admin/includes/application_top.php. Also searched in configuration.php, and still no luck. So am asking if any member out there recognizes this code. What am trying to do is, whenever i open admi, the configuration section is collapsed when open, not expanded.

 

Thank you.

 

Bennett

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...