Support » Plugin: Asgaros Forum » goup user in menu

  • Resolved coushub


    Hi all

    I need your help to

    is it possible when we create user groups

    associate visibility with the menu bar

    if the user is:
    -Public or Minecraft,rocket league ,DiabloIII=>
    display of the menu bar:Accueil|page d’…|Forum

    if the user is:
    display of the menu bar:Accueil|page d’…|Forum|serveurs

    because the problem we have tabs that will not be useful to the group concerned.

    Thank you for your help



    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Asgaros


    Hello @coushub

    Basically it should be possible, but it would require a custom-implementation. The problem is, that the usergroups of a forum should influence the main-menu of your theme – which is basically outside of the forum-scope.

    So what basically is required is:
    – create multiple menus which should be used for the different groups
    – modifying the theme or use hooks to output the correct menu based on the usergroup of the current user

    In PHP you can use the following function to get the usergroup of an user:

    $groups = AsgarosForumUserGroups::getUserGroupsOfUser(get_current_user_id());



    hi asgaros

    Thank you for your answer.

    Unfortunately I’m not strong enough in code to do that.

    Do you have any advice or idea of ​​a person who could achieve this?

    thanks for your help


    Plugin Author Asgaros


    I am not sure if it helps but there is at least a plugin which allows you to create dynamic menus based on the login-state:

    Because the menu is not directly a part of the forum, I cannot modify it directly inside of the plugin because its a bit out-of-scope. However, I also offer custom-implementations and you can contact me for further details directly at developer (at)

    Hi asgaros

    Thank you very much for your help with the plugin nav-menu-roles

    after discussion with helgatheviking

    I managed to modify the code to add the groups of asgaros.
    it works, but my coding is less well written than you.

    here is the plugin link

    for me I have what I wanted and it works.

    Thanks again for your help


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘goup user in menu’ is closed to new replies.