Results 1 to 2 of 2

Thread: controlling who see what in the drop down menu

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default controlling who see what in the drop down menu

    1) Script Title: AnyLink JS Drop Down Menu v2.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try using Anylink CSS Menu 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:
    Code:
    <!--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">
    <ul>
    <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>
    </ul>
    </div>
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •