Group message with password


Home Forums Front End PM PRO Group message with password

This topic is: Resolved

Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #36480
    Jan Sørensen
    Participant

    On my site I have several different roles on members all into a dynamic setup. Board members, managers, members and guest.
    I want members to have to possibility to sign up on one or several groups I have made. (based on interests and location)
    On the “highest” level, board members, I have set a password.
    But when members will sign up for any group I have made, they can see and sign up for that “board level” group that has password.
    Q: How can I hide this group for regular members? To set it as privat?
    How and when will that password be used? When someone try to send something to that group? (not in my test)

    Hope to have some smart solution.

    #36485
    Shamim Hasan
    Keymaster

    1. Which membership plugin you are using?
    2. This plugin’s group feature does not have any option to add password. Are you creating groups from this plugin? Eg. Dashboard > Front End PM PRO > All Groups
    3. When and from where your users are added themselves in groups?

    #36487
    Jan Sørensen
    Participant

    Hi Shamim

    I am not sure what you are asking for, but here is something:

    1.) on my site I use Elementor, Toolset, Woocommerce +++
    2.) When I generate a new group ( I see at the right hand side these options) ; Official, Password Protrected, Privat (se picture)
    Sorry I have translated most of your plugin
    3.) I have made the users sign up for a group from the front end / Setup. There the users can sign up for the groups I have made ready

    JanB

    Attachments:
    You must be logged in to view attached files.
    #36491
    Shamim Hasan
    Keymaster

    This setup for wordpress page level setup and does not have any impact for group.

    By default user can assign themselves to a group from settings page of the plugin. See https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/group-messaging/

    In your website how users assign themselves to a group from signup? Did you change any code for this plugin?
    Which group you want to hide from your members? Are your users logged in when they signup for groups?

    #36499
    Jan Sørensen
    Participant

    I use the system you linked to, when they assigning the groups they want.
    I have not add any code in the plugin
    All persons who goes into the Front End for PM are alle logged into the site up front to have access to PM
    JanB

    #36503
    Shamim Hasan
    Keymaster

    Thank you.
    So now you want to hide some groups from some users, right? Which groups you want to hide (give me group id) from which users (give me those users role)?

    #36505
    Jan Sørensen
    Participant

    where do I find the Group ID?

    #36541
    Shamim Hasan
    Keymaster

    Please go to Front End PM PRO > All Groups, then click “Edit” of the group whose id you want to know. Then see in address bar. Please see screenshot attached.

    Attachments:
    You must be logged in to view attached files.
    #36548
    Jan Sørensen
    Participant
    This reply has been marked as private.
    #36555
    Shamim Hasan
    Keymaster

    add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_get_all_groups', function( $groups ){
        if( ! fep_is_user_admin() ){
            unset( $groups[ 7930 ] );
        }
        return $groups;
    });
    

    This group will be hidden for users who are not admin.
    If you want to hide for other user also let me know their user id or role.

    Let me know.

    #36558
    Jan Sørensen
    Participant
    This reply has been marked as private.
    #36561
    Shamim Hasan
    Keymaster

    With the above code users will not see that group in settings page. So they cannot add them to that group. But if you add them to group (from back-end) then they can send message to that group.

    Please test and let me know.

    #36563
    Jan Sørensen
    Participant

    Copied into function.php
    Tested with several different roles of people in the system.
    Worked perfectly well as designed.

    I am very happy for the perfect job you have done.

Viewing 13 posts - 1 through 13 (of 13 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.