by SilverHand » Thu May 29, 2008 10:42 am
I think that it is better to disable the item by PHP code while preparing the page.
I remade the SCRIPTS suplemented by MENU maker to include option with -1, 0, 1 state and when prpearing menu items by PHP on basis of rights and others possibilities I put these option to every menu item and/or button. -1 means for me DONT DISPLAY, 0 DISPLAY BUT DISABLED, 1 ENABLED and WORKING.
But do not forget in any case that you must to check when entering the HREF given by menu command, if user is supposed to neter this link. Becouse only menu disabeling doesnt means that user cant enter the link manually in address box!
I think good idea is to put into MENU maker some option for menu/button state adn this state will be handled by PHP code whle preparing page with menu.
With regards Tomas
Cya Silver
Every problem has its solution! But sometimes we can't find it!
PC info: Core 2 Extreme 3Ghz, 8Gb DDR 3, System HDD: RAID 0 - 2x raptor 150, Vista Ultimate 64bit