blr044 Posted September 12, 2010 Posted September 12, 2010 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.
chadcloman Posted September 12, 2010 Posted September 12, 2010 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.
blr044 Posted September 12, 2010 Author Posted September 12, 2010 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
blr044 Posted February 18, 2011 Author Posted February 18, 2011 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.