Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:18

Administration Menu


Poster: Donovan
Dated: Monday June 23 2008 - 16:31:06 BST

Hey everyone. Nice menus... glad I stumbled across this site.

I have a PHP/MySQL application written by others that I am wanting to enhance. First thing is to make the interface more user friendly. It is all template based using the phpBB template engine. I want a tabbed menu instead of the cookie-crumb menu that appear across the top. I also need a way to display only those tabs that a user is authorized to see. I like the mac and the amazon tabbed style. I have seen threads wanting ways to hid or suppress menu from displaying. If anybody has examples or has done this and can share it will be most appreciated.

I will have 3-4 levels of administrators. Since this is a university I will have admin/teacher/student... possibly more.

Re: Administration Menu


Poster: Donovan
Dated: Monday June 23 2008 - 18:49:39 BST

Is it possible to use these same files but rename them each to something like milonic_admin_menu_code.js and milonic_teacher_menu_code.js and milonic_student_menu_code.js

Same with the others?

So then...

Code:
if( $userdata['session_logged_in'] ) {

   // include the common header file
   include($root_path . 'includes/page_header.'.$phpEx);
   $template->set_filenames(array('body' => 'index_body.tpl'));
   
   if ($userdata['user_level'] == ADMIN) {
include($somCBT_root_path . 'milonic_admin_menu_code.js');

Re: Administration Menu


Poster: Ruth
Dated: Monday June 23 2008 - 19:02:26 BST

Hi,

I've posted to get some help for this since I don't know the answers. I know that you can call a menu dependent upon login information. I believe it uses cookies and some js coding. You can also parse the data file through whatever you're using like php, cold fusion etc. You do that by changing the .js to .php etc.

You can rename the data file, that is the file with menus in it: menu_data.js. The other files are the actual program files.

You might try contacting Milonic with your question. Please read the information before using either.

http://www.milonic.com/contactus.php
or
http://www.milonic.com/support/

Ruth

Re: Administration Menu


Poster: Donovan
Dated: Monday June 23 2008 - 20:58:51 BST

Ruth wrote:
Hi,

I've posted to get some help for this since I don't know the answers. I know that you can call a menu dependent upon login information. I believe it uses cookies and some js coding. You can also parse the data file through whatever you're using like php, cold fusion etc. You do that by changing the .js to .php etc.

You can rename the data file, that is the file with menus in it: menu_data.js. The other files are the actual program files.

You might try contacting Milonic with your question. Please read the information before using either.

http://www.milonic.com/contactus.php
or
http://www.milonic.com/support/

Ruth


It would be neat to port the js to a php funtion.

menus.php

then..
Code:
function milonic_admin_menu () {

}

function milonic_teacher_menu () {

}

function milonic_student_menu () {

}

Re: Administration Menu


Poster: Ruth
Dated: Monday June 23 2008 - 22:22:11 BST

Hi,

This is beyond my abilities. The php change is only made to the menu_data file, not the program files. There is a php menu and asp and php/mysql and other such things in your download. There is a folder, I think it's called extras and it has a bunch of different things in it.

I don't know what you mean by port, as I said, it's beyond what I know to help. I just know from numerous posts that many people change the menu_data.js to the ending they need to use particular functions, so, menu_data.php, cfm, asp, etc.

Hopefully, I'll get a response from Milonic pretty quick. They are very client oriented which is why I like the menu so much, besides it is so very flexible, not only for use but for designing and easy to use once you learn the basics

Ruth