Home › Forums › Front End PM PRO › Group message with password
Tagged: Group Message
- This topic has 12 replies, 2 voices, and was last updated 5 years ago by Jan Sørensen.
-
AuthorPosts
-
April 12, 2020 at 4:54 pm #36480Jan SørensenParticipant
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.
April 12, 2020 at 5:57 pm #36485Shamim HasanKeymaster1. 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?April 12, 2020 at 6:10 pm #36487Jan SørensenParticipantHi 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 readyJanB
Attachments:You must be logged in to view attached files.April 12, 2020 at 7:54 pm #36491Shamim HasanKeymasterThis 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?April 12, 2020 at 9:32 pm #36499Jan SørensenParticipantI 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
JanBApril 12, 2020 at 10:28 pm #36503Shamim HasanKeymasterThank 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)?April 12, 2020 at 11:27 pm #36505Jan SørensenParticipantwhere do I find the Group ID?
April 13, 2020 at 12:22 pm #36541Shamim HasanKeymasterPlease 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.April 13, 2020 at 5:27 pm #36548Jan SørensenParticipantThis reply has been marked as private.April 13, 2020 at 9:12 pm #36555Shamim HasanKeymasteradd 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.
April 13, 2020 at 10:21 pm #36558Jan SørensenParticipantThis reply has been marked as private.April 13, 2020 at 11:29 pm #36561Shamim HasanKeymasterWith 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.
April 14, 2020 at 3:35 am #36563Jan SørensenParticipantCopied 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.
-
AuthorPosts
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.