View Full Version : controlling who see what in the drop down menu

08-30-2009, 04:44 PM
1) Script Title: AnyLink JS Drop Down Menu v2.0

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: I have used the earlier version of anylink drop down menu with my forum (phpbb3). I am trying to upgrade my styles. Understand the new version is pretty straight forward. You folks have done a great job. One of the items I need to be able to do is depending on certain sets who gets to see certain parts of the menu.

Ex. I could have a drop down menu with 5 items. The first item only the admin can see. I use to put <!-- IF U_ACP -->before the line and <!-- ENDIF --> after the line and only admins could see then. Well I can not seem to get this to work.

Any advice would be appreciated.

08-30-2009, 08:25 PM
Try using Anylink CSS Menu (http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm) instead, which is different mainly in that the contents of the menu is defined as just plain HTML. That way, you can easily apply server side conditioning to certain parts of the menu contents, ie:

<!--1st anchor link and menu -->

<p><a href="http://www.dynamicdrive.com" class="anchorclass" rel="submenu1">Default Example</a></p>

<div id="submenu1" class="anylinkcss">
<li><a href="http://www.dynamicdrive.com/">Dynamic Drive</a></li>
<li><a href="http://www.cssdrive.com">CSS Drive</a></li>
<li><a href="http://www.javascriptkit.com">JavaScript Kit</a></li>
<!-- IF U_ACP -->
<li><a href="http://www.codingforums.com">Coding Forums</a></li>
<!-- ENDIF -->
<li><a href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a></li>