Jump to content

Archived

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

hungryfrank

change admin tools box

Recommended Posts

@@hungryfrank

 

To rearrange the majority of them go to: public_html/admin/includes/boxes/tools.php. In there you will see similar to the examples below. Adjust the arrays to the order you need them and save the file. Go back to your admin and refresh the page and they'll appear in the order you need. The whole array has to be moved. See the example of a complete array below and then reorganize your arrays.

 

array(
        'code' => FILENAME_ACTION_RECORDER,
        'title' => BOX_TOOLS_ACTION_RECORDER,
        'link' => tep_href_link(FILENAME_ACTION_RECORDER)
      ),

=======================================================

 

Leave this part alone.

 

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_TOOLS,
    'apps' => array(

=======================================================

 

The last array cannot have a comma at the end.

 

      array(
        'code' => FILENAME_WHOS_ONLINE,
        'title' => BOX_TOOLS_WHOS_ONLINE,
        'link' => tep_href_link(FILENAME_WHOS_ONLINE)
      )

========================================================

 

Reorganize these and more.

 

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_TOOLS,
    'apps' => array(
      array(
        'code' => FILENAME_ACTION_RECORDER,
        'title' => BOX_TOOLS_ACTION_RECORDER,
        'link' => tep_href_link(FILENAME_ACTION_RECORDER)
      ),
      array(
        'code' => FILENAME_BANNER_MANAGER,
        'title' => BOX_TOOLS_BANNER_MANAGER,
        'link' => tep_href_link(FILENAME_BANNER_MANAGER)
      ),
      array(
        'code' => FILENAME_CACHE,
        'title' => BOX_TOOLS_CACHE,
        'link' => tep_href_link(FILENAME_CACHE)
      ),
      array(
        'code' => FILENAME_CHECK_PERMISSIONS,
        'title' => BOX_TOOLS_CHECK_PERMISSIONS,
        'link' => tep_href_link(FILENAME_CHECK_PERMISSIONS)
      ),
      array(
        'code' => FILENAME_CLEAR_DB,
        'title' => BOX_TOOLS_CLEAR_DB,
        'link' => tep_href_link(FILENAME_CLEAR_DB)
      ),
      array(
        'code' => FILENAME_CONTRIB_TRACKER,
        'title' => BOX_TOOLS_CONTRIB_TRACKER,
        'link' => tep_href_link(FILENAME_CONTRIB_TRACKER)
      ),
      array(
        'code' => FILENAME_BACKUP,
        'title' => BOX_TOOLS_BACKUP,
        'link' => tep_href_link(FILENAME_BACKUP)
      ),
      array(
        'code' => FILENAME_DATABASE_CHECK,
        'title' => BOX_TOOLS_DATABASE_CHECK,
        'link' => tep_href_link(FILENAME_DATABASE_CHECK)
      ),
      array(
        'code' => 'database_optimizer.php',
        'title' => BOX_TOOLS_DATABASE_OPTIMIZER,
        'link' => tep_href_link('database_optimizer.php')
      ),
      array(
        'code' => FILENAME_DEFINE_LANGUAGE,
        'title' => BOX_TOOLS_DEFINE_LANGUAGE,
        'link' => tep_href_link(FILENAME_DEFINE_LANGUAGE)
      ),
      array(
        'code' => FILENAME_FAQ,
        'title' => BOX_TOOLS_FAQ,
        'link' => tep_href_link(FILENAME_FAQ)
      ),
      array(
        'code' => 'mailbeez.php',
        'title' => 'MailBeez',
        'link' => tep_href_link('mailbeez.php')
      ),

===========================================

 

For the tools_database_tables.php and tools_security_checks.php they look like this:

  foreach ( $cl_box_groups as &$group ) {    if ( $group['heading'] == BOX_HEADING_TOOLS ) {      $group['apps'][] = array('code' => 'security_checks.php',                               'title' => MODULES_ADMIN_MENU_TOOLS_SECURITY_CHECKS,                               'link' => tep_href_link('security_checks.php'));      break;    }  }?>

I'm not sure how to make them alphabetical because they're in separate files. But the rest you can adjust easily.

 

Take care

 

Bill

Share this post


Link to post
Share on other sites

thanks. i had added another box and although i had the arrays in the right order, but it was displaying them in alphabetical order.

anyhow i put an invisable span for them in the language part and put the order there. 


you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Share this post


Link to post
Share on other sites

×