• I recently bought a plugin called eMember which allows me to secure pages and posts according to a users ID and membership group.

    It doesn’t allow the protection on individual menu items, and this is where I would appreciate some help.

    The following sample code from the developers checks that the user is logged in. Can the code for displaying an individual menu item can be amended to include this check in conjunction with some added property on each menu item?

    <?php
    global $auth;
    $user_id = $auth->getUserInfo('member_id');
    if (!empty($user_id))
    {
        //pleace code that only members can see
    }
    ?>

    I’m not a developer, so I have no way of doing this myself. When I asked the developers they gave me this code sample (Link to sample article) and some links they thought might help me understand how things worked.

    Any help will be greatly appreciated!!

    Thanks
    Andy

  • The topic ‘Looking for help customising Menus’ is closed to new replies.