View Issue Details

IDProjectCategoryView StatusLast Update
0015431phpList 3 applicationInterface - Frontendpublic12-07-19 13:02
Reporteradrian15 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionno change required 
Product VersionFuture developments 
Target VersionFixed in Version 
Summary0015431: Simple menu patch
DescriptionThis patch simplies the lateral menu for non superadmin administrators so that they only see most used options (at least in my opinnion) which are: Send a message, process message queue, lists, templates, users and configure.

The option is set as a new option in the config.php which comes disabled by default so that the patch does not change the default phplist behaviour.

I attach a patch agains revision 1703 which I think it can't be applied to 2.10.10.

adrian15
TagsNo tags attached.

Activities

12-04-10 19:30

 

C02_simple_menu.patch (2,260 bytes)
diff -urN linkaadmin_menu_simple_before/lists/admin/connect.php linkaadmin_menu_simple_after/lists/admin/connect.php
--- linkaadmin_menu_simple_before/lists/admin/connect.php	2010-04-09 19:05:44.000000000 +0200
+++ linkaadmin_menu_simple_after/lists/admin/connect.php	2010-04-10 07:07:45.000000000 +0200
@@ -373,6 +373,24 @@
 }
 
 
+if (ENABLE_SIMPLE_SIDEBAR_MENU) {
+
+$main_menu = array(
+  "div1" => "<hr />",
+  "send"=>"Send a message",
+  "processqueue"=>"Process Queue",
+  "div2" => "<hr />",
+  "list" => "Lists",
+  "templates" => "Templates",
+  "users" => "Users",
+  "div3" => "<hr />",
+  "configure" => "Configure",
+  "div4" => "<hr />",
+  "home" => "( + + + ) ..."
+);
+
+} else {
+
 $main_menu = array(
   "configure" => "Configure",
   "community" => "Help",
@@ -396,6 +414,9 @@
   "eventlog"=>"Eventlog"
 );
 
+
+}
+
 function newMenu() {
 	if (isset ($GLOBALS["firsttime"])) {
 		return;
diff -urN linkaadmin_menu_simple_before/lists/admin/init.php linkaadmin_menu_simple_after/lists/admin/init.php
--- linkaadmin_menu_simple_before/lists/admin/init.php	2010-04-09 19:05:47.000000000 +0200
+++ linkaadmin_menu_simple_after/lists/admin/init.php	2010-04-09 20:49:19.000000000 +0200
@@ -127,6 +127,7 @@
 if (!defined('MANUALLY_PROCESS_BOUNCES')) define('MANUALLY_PROCESS_BOUNCES',1);
 if (!defined('ENCRYPT_ADMIN_PASSWORDS')) define('ENCRYPT_ADMIN_PASSWORDS',0);
 if (!defined('PASSWORD_CHANGE_TIMEFRAME')) define('PASSWORD_CHANGE_TIMEFRAME','1 day');
+if (!defined('ENABLE_SIMPLE_SIDEBAR_MENU')) define('ENABLE_SIMPLE_SIDEBAR_MENU',0);
 
 ## fairly crude way to determine php version, but mostly needed for the stripos
 if (function_exists('stripos')) {
diff -urN linkaadmin_menu_simple_before/lists/config/config.php linkaadmin_menu_simple_after/lists/config/config.php
--- linkaadmin_menu_simple_before/lists/config/config.php	2010-04-09 19:05:52.000000000 +0200
+++ linkaadmin_menu_simple_after/lists/config/config.php	2010-04-09 20:49:23.000000000 +0200
@@ -699,6 +699,9 @@
 #$adodb_inc_file = '/path/to/adodb_inc.php';
 #$adodb_driver = 'mysql';
 
+# Simple sidebar menu
+define("ENABLE_SIMPLE_SIDEBAR_MENU",0);
+
 # if you want more trouble, make this 63 (very unlikely you will like the result)
 $error_level = error_reporting(0);
 
C02_simple_menu.patch (2,260 bytes)