Sindbad~EG File Manager
# Administration Menu Setup Guide
## β
Automatic Menu Integration
The Administration module is **automatically** added to both the **sidebar** and **dashboard** when you install it!
---
## π Where Administration Appears
### **1. Sidebar Menu** (Left Navigation)
Administration will appear **BEFORE** Membership in the sidebar menu:
```
π Sidebar Order:
- Home
- Dashboard
β¨ β Administration (NEW! - Appears HERE)
- Membership
- Events
- [Other modules...]
```
### **2. Dashboard Quick Access** (Main Dashboard)
Administration will appear in the "Quick Access" section:
```
π Dashboard Layout:
- Welcome Banner
- Stats Cards (Members, Areas, etc.)
- Quick Access Modules Grid:
β¨ β Administration Card (NEW!)
β Membership Card
β Events Card
β [Other module cards...]
```
---
## π§ How It Works
### **Dynamic Loading:**
Both the sidebar and dashboard load modules **dynamically** from the `module_management` database table.
**Module Order Determined By:**
- `display_order` field (Lower number = Appears first)
- Administration: `display_order = 0`
- Membership: `display_order = 1`
- Therefore: **Administration appears BEFORE Membership** β
---
## π Setup Instructions
### **Option 1: Fresh Installation**
If you haven't installed Administration yet:
1. Visit: `http://localhost/copmadinaarea/install_administration.php`
2. Click "Install Administration Module"
3. β
Done! Check your sidebar and dashboard
### **Option 2: Already Installed**
If you installed Administration before this update:
1. Visit: `http://localhost/copmadinaarea/fix_administration_order.php`
2. Click to run the fix
3. β
Done! Refresh your sidebar and dashboard
### **Option 3: Re-run Installation**
Simply re-run the installation:
1. Visit: `http://localhost/copmadinaarea/install_administration.php`
2. Click "Install Administration Module" again
3. β
The UPDATE query will fix the order automatically
---
## π¨ Visual Appearance
### **In Sidebar:**
```
βββββββββββββββββββββββββββββββ
β π Home β
β π Dashboard β
β βοΈ Administration β NEW! β
β π₯ Membership β
β π
Events β
βββββββββββββββββββββββββββββββ
```
### **On Dashboard:**
```
ββββββββββββββββββββββββββββββββββββββββ
β Quick Access β
β ββββββββββ ββββββββββ ββββββββββ β
β β βοΈ Adminβ β π₯ Membβ β π
Evntβ β
β β NEW! β β β β β β
β ββββββββββ ββββββββββ ββββββββββ β
ββββββββββββββββββββββββββββββββββββββββ
```
---
## π Access Control
**Who Can See Administration:**
- β
Superusers ONLY
- β Regular users (area/district/assembly admins) will NOT see it
**Icon:** βοΈ (cogs icon)
**Color Theme:** Blue-Mauve-Orange gradient
---
## π Files Modified
1. β
`sql/admin_location_assignments.sql`
- Set `display_order = 0` for Administration
- Added UPDATE query for existing installations
2. β
`fix_administration_order.php` (NEW)
- Quick fix script for display order
3. βΉοΈ `includes/sidebar.php` (No changes needed - already dynamic)
4. βΉοΈ `dashboard.php` (No changes needed - already dynamic)
---
## β
Verification
After installation/fix, verify Administration appears correctly:
### **Check Sidebar:**
1. Look at left navigation
2. Administration should be listed BEFORE Membership
3. Should have βοΈ cogs icon
### **Check Dashboard:**
1. Look at "Quick Access" section
2. Administration card should appear in the grid
3. Should be one of the first cards
4. Click it to go to Administration dashboard
---
## π― Summary
**No manual configuration needed!** π
The system automatically:
- β
Loads modules from database
- β
Orders them by `display_order`
- β
Displays in both sidebar AND dashboard
- β
Respects access level (superuser only)
Just run the installation or fix script, and Administration will appear in the correct position!
---
## π Troubleshooting
**Don't see Administration?**
1. **Check if installed:**
- Go to `install_administration.php`
- If you see "Installation Successful", it's installed
2. **Check display order:**
- Run `fix_administration_order.php`
- This ensures correct order
3. **Check access level:**
- Administration is superuser-only
- Log in as superuser to see it
4. **Clear cache:**
- Logout and login again
- Hard refresh browser (Ctrl+F5)
**Still don't see it?**
- Check database: `SELECT * FROM module_management WHERE module_name = 'Administration'`
- Verify `display_order = 0` and `is_active = 1`
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists