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:23

Re: Permissions based menu


Poster: Ruth
Dated: Thursday January 17 2008 - 17:19:01 GMT

Hi,

I'm sorry, but you'll have to contact Milonic directly. There isn't any volunteer on the forum now that knows things like cookie and js functions and such. I do know that there have been posts and solutions about using cookies and also other ways to do things like get special menus.

viewtopic.php?p=13544#p13544

viewtopic.php?p=33682#33682

viewtopic.php?p=32723#32723

viewtopic.php?p=37758#p37758

viewtopic.php?p=13946#p13946

To contact Milonic you would go to the main site http://www.milonic.com/

Also, if you have a professional or above license with current support you can click the Tech Support text link at the bottom

Ruth

Permissions based menu


Poster: jgreeno
Dated: Wednesday January 16 2008 - 15:40:43 GMT

I have a need to display certain menus to certain people based on a grouping scheme within my site.
I use PHP to output the call the JS and I need the PHP to structure my permissions.
Basically this is the layout I need:

Code:
// Show everyone this menu
$menu[]="<script type=\"text/javascript\" src=\"js/milonic_src.js\"></script>";
$menu[]="<script type=\"text/javascript\" src=\"js/mmenudom.js\"></script>";
$menu[]="<script type=\"text/javascript\" src=\"js/alluser_menu_data.js\"></script>";

// Show bob his own menu along with the all user menu
if(user="bob"){
$menu[]="<script type=\"text/javascript\" src=\"js/milonic_src.js\"></script>";
$menu[]="<script type=\"text/javascript\" src=\"js/mmenudom.js\"></script>";
$menu[]="<script type=\"text/javascript\" src=\"js/bob_menu_data.js\"></script>";
}

// Show bob his own menu along with the all user menu but not bob's menu
if(user="dave"){
$menu[]="<script type=\"text/javascript\" src=\"js/milonic_src.js\"></script>";
$menu[]="<script type=\"text/javascript\" src=\"js/mmenudom.js\"></script>";
$menu[]="<script type=\"text/javascript\" src=\"js/bob_menu_data.js\"></script>";
}


When I write my code like that I get nothing, no menu at all.. So, how can I get multiple menus onto the page simultaneously?

Thanks,

Justin

Re: Permissions based menu


Poster: Ruth
Dated: Thursday January 17 2008 - 17:28:07 GMT

Also, have you considered using the php menu, or changing your menu_data.js file to menu_data.php. I know this site uses menu_data.php And if you have any kind of php statements you need to have that ending since it would then process the data file through the php processor or whatever it is called.

Ruth

Re: Permissions based menu


Poster: jgreeno
Dated: Thursday January 17 2008 - 19:01:11 GMT

I tried changing it to menu_data.php and coding an if statement but it never evaluated correctly.. At any rate, after separating the menu into different parts, it works great.. I was even able to integrate the styling into my site's current style set.

What's funny is, I searched for a DHTML/JS menu solution for months and after many failed attempts, I just happened across Milonic.
After about 7 hours of coding and testing, I was able to put the menu into production and it works beautifully..

Re: Permissions based menu


Poster: Ruth
Dated: Thursday January 17 2008 - 19:58:48 GMT

Well, I really like this menu, it's why I volunteer on the forum. It really is very easy to use and you can design it in so many ways.

I'm sure there is an easy way to do this, I just don't happen to have the knowledge. If you are a professional license or above user I suggest you fill out a support ticket at http://www.milonic.com/support/ You have to be logged in under the name used when you purchased the menu.

Ruth