sptoolkit/sptoolkit — Issue #24: In sidebar.php, reorder module list
Author: 42spt
Created: 2012-03-02 01:18:21+00:00
State: open
Labels: 0.6, Enhancement

Above this code:

**include '../spt_config/mysql_config.php';
$results = mysql_query ( 'SELECT * FROM modules WHERE name != "Dashboard" ORDER BY name' ) or die ( '

There is a problem with the database...please try again later

' );
while ( $row = mysql_fetch_assoc ( $results ) ) {
echo "
" . $row['name'] . "
\n";
}**

Statically build a list of the core modules in the correct order they should be listed.

**1 - Targets
2- Templates
3 - Education
4 - Editor
5 - Campaigns
6 - Users
7 - Modules**

Perhaps also include something above targets -- "Quick 5 step get started guide"???

Insert a divider line, then....

Change the existing code (above) to be

**include '../spt_config/mysql_config.php';
$results = mysql_query ( 'SELECT * FROM modules WHERE core != "1" ORDER BY name' ) or die ( '

There is a problem with the database...please try again later

' );
while ( $row = mysql_fetch_assoc ( $results ) ) {
echo "
" . $row['name'] . "
\n";
}**