+ Reply to Thread
Results 1 to 7 of 7

Thread: See a page in menu only if logged in?

  1. #1

    Question See a page in menu only if logged in?

    Hello,

    Is there a qucik way to allow only connected user to see a link in the menu?
    I know it is possible to restrict the access to a page, but visitor can still see the button.

    I would like to create pages that only logged user can see in the menu.

    Some small code to change in the template?

  2. #2
    Hello Matthieu,

    Open file: ftp://includes>>classes>>rlCommon.class.php
    find method: buildMenus()

    and after:
    PHP Code:
    Only registered members can view the code
    add new code:

    PHP Code:
    Only registered members can view the code
    save and check again. I think it should work
    Last edited by Viktor; February 27, 2014 at 04:01 AM.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Thanks, I'll try this.

  4. #4
    Let me know about results,
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #5
    Hello,

    No, it is not working. Nothing is happening.

    menu_hide.JPG

  6. #6
    Hello Matthieu,

    I have changed a bit condition please replace it. Sorry for 1-st wrong code.
    I have tested it and it works good for me.
    Viktor,
    Flynax technical department,
    Best wishes.

  7. #7
    Hello,

    Yes, this seems to be ok.
    Thx

+ Reply to Thread