The Admin Menu is completely user editable! The admin menu is generated "on the fly" using separate text files located in the “EZUser_Support_Files/admin_menu” directory. Each text file represents one menu item that is displayed in the Main Admin Menu. By simply uploading a new text file to this directory, you can create a new menu item in the “Main Admin Menu”. You can remove any menu item by simply deleting it's corresponding file. You can edit any menu item by editing the corresponding text file.
Here is an example. Take a look at the contents of the
EZUser_Support_Files/admin_menu directory. The first file located there is
called “0100 Main Configuration.txt”. Also notice that when you access the admin
section with your browser and go to the admin main menu, the first item there is
“Main Configuration”.
Now open the file “0100 Main Configuration.txt” with a plain text editor (like
windows notepad). There is one line of text that looks similar to this:
100|Main Configuration|admin_main_configuration.php|Global Configuration.
*Note – Each item (or “field”) in the line above is separated by the “|” character. This is called a “delimiter” and it is used by the script to tell when one item stops and the next item begins.
Here is what each item (or “field”) means:
EXAMPLES
Let’s say you wanted to create a new admin menu item. You found a great script
called “foobar.php” that allows you to do something really special. You want to
make this item appear in the main admin menu list right after the “main
Configuration” menu item described above. Here’s how you would add this to the
admin menu:
Now access the “Admin Main Menu” and you will now see a new menu item listed
right after “Main Configuration”. The menus item says;
Foo Bar – Click here to do something special.
When you click the link, it will attempt to open the file “foobar.php” located
in the “EZUser_Support_Files” directory. If the file isn’t there – you will get
a 404 error.
A Word About File Names Used For Menu Items…
You can name these files anything you want as long as they have the “.txt”
extension. I like to name them using the sort number followed by the menu item
like this:
120 Some menu item.txt
That way the directory will sort itself (on a windows machine anyway) to the
same order that the menu items are displayed and you have an idea what each text
file is for so you can edit them easily later.
You can name these file any way you want as long as the file extension remains
“.txt”.