I am using a javascript menu system which is totally independent of IntegraMOD menus, including Qbar. At first I created a singular generic menu which sufficed for all log states. Now, I have decided to create separate menus for visitors, members and administrators. I felt that the best way to handle this was with switches, as previously demonstrated by:
<BEGIN>
INSERT CODE HERE
<END>
This code handles the member state well, as it only executes the code if the visitor is logged in.
I found a small mod which allows for the same function relative to administrators:
[url=http]Admin View Only[/url]
My problem is how do I do the same for visitors not logged in? Right now, I have a sequential series of menu calls. The first calls a visitor menu (without a test), the second calls for a member menu (logged in test), and the third calls for the admin menu (admin test). This actually works, since the first menu is always called each subsequent successful menu call creates a javascript menu over the previous one. If you have a good broadband connection, the stacking of menus is hardly noticeable. My concern is that dial-up users may experience a considerable lag as the menus are called, especially since this menu cycle is a part of overall_header.tpl and is called with every page. I also noticed a horrendous lag when Opera encountered this section of code. Opera seems to behave with a singular menu.
You can have a look at the result here:
[url=http]THOMAS LIGOTTI ONLINE[/url]
I need a way to define a single menu selection for each state. A successive if, then...else statement would be ideal. I know very little PHP, however.
Basically, the logic would be
If ADMIN then AdminMenu
---> else if USER then UserMenu
-------->else VisitorMenu
Note that I am using generic variables for the logic. The above is not my feeble attempt at coding, though it may not be far from the mark! I may be totally off base on my approach here. I would greatly appreciate any help!