Home › Forums › Front End PM PRO › Autocomplete and Send Message from Directory not working
- This topic has 11 replies, 2 voices, and was last updated 6 years, 10 months ago by Shamim Hasan.
-
AuthorPosts
-
February 5, 2018 at 9:33 am #10643Kevin ManleyParticipant
Hello again. Neither the Autocomplete function nor the “Send Message” from the Directory listing are working. In fact, I can’t send a message to anyone other than the admin. I can only reply as an admin to someone that has messaged me.
The fep_to is properly filled in the URL but the TO box is empty. If I manually enter the same username it tells me it is invalid.
Please advise.
Kevin
February 5, 2018 at 1:59 pm #10651Shamim HasanKeymasterPlease check Front End PM PRO > Settings > Security > Role to Role block, if your role is blocked.
Are you using any custom code for this plugin in your website?
Can you please deactivate all plugins and change theme to default theme and try?February 5, 2018 at 10:36 pm #10676Kevin ManleyParticipantThe roles aren’t blocked. The directory listing correctly lists all those that I can send to. I’ve not written any custom code for this. Just installed it last night.
I’m using Optimizepress. It works if I put the shortcode on a plain wordpress page, but not if I put it on an Optimizepress page. Any advice on how to make this work with OptimizePress?
Thanks,
Kevin
February 5, 2018 at 11:16 pm #10680Shamim HasanKeymasteri do not have that plugin. If you can send me i can try to find a way if possible.
February 9, 2018 at 8:33 am #10819Kevin ManleyParticipantI just created that page without OptimizePress instead and it worked. Thanks for offering to look into it.
I almost bought another messaging system because it had a feature I really wanted and, possibly, you could add it. I’d like to be able to count the total number of messages my users send and set limits by user level. I’d like to tell users that they will be able to send the admin (support) 10, 20, 100 messages. Right now, it is unlimited and could overwhelm the admin quickly.
Thanks,
Kevin
February 9, 2018 at 9:19 am #10823Shamim HasanKeymasterYou can set limit from Dashboard > Front End PM PRO > Settings > Misc
You can set limit as per role.February 9, 2018 at 9:52 am #10826Kevin ManleyParticipantThat’s just the number of messages they can keep in the box. I need to limit the total number they are able to send. I want to limit their access to the “expert” in a guided online course.
Thanks for the reply,
KevinFebruary 9, 2018 at 10:13 am #10829Shamim HasanKeymasterYou can add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_current_user_can', function( $can, $cap, $id ){ if( 'delete_message' == $cap ) return false; return $can; }, 10, 3);
This will prevent user to delete their messages from front-end. So they will only be able to send message what is set in that limit page.
February 9, 2018 at 11:20 am #10833Kevin ManleyParticipantThat does have the same effect. Thanks. However, I’ll still need to go change some of the error messages like “Error: Your message box is full. Please delete some messages.” and I’ll need to remove the “Delete” option from the dropdown or I’ll just annoy my users. Lastly, I need to keep the “Delete” option for the admin role or this will be impossible to manage.
Thanks for your help. It’s a great plugin!
Kevin
February 9, 2018 at 2:57 pm #10851Shamim HasanKeymasterYou can add following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_action_validate_form', function( $where, $errors, $fields ){ if( 'newmessage' != $where ) return; if ( $errors->get_error_message( 'MgsBoxFull' ) ){ $errors->remove( 'MgsBoxFull' ); $errors->add('MgsBoxFull', __( "Your custom error message here.", 'front-end-pm' )); } }, 99, 3); add_filter( 'fep_message_table_bulk_actions', function( $actions ){ unset( $actions['delete'] ); return $actions; });
Change error message as you like.
Admin can delete message from Back-end. Go to Dashboard > Front End PM PRO > All MessagesFebruary 9, 2018 at 10:30 pm #10898Kevin ManleyParticipantShamim:
Wow. You’ve been incredibly helpful. Thank you.
I do have one last item. How can I disable the search recommendations? Even though I have it set up under “Security” that users are unable to message anyone other than the ADMIN, it’s still listing recommendations. Ideally, I would just set “MAX RECIPIENTS” to 0 so the “TO” box disappears. However, if I do that, then I can no longer initiate messages from the ADMIN to my users.
Do you follow that?
Thanks!
KevinFebruary 9, 2018 at 11:08 pm #10907Shamim HasanKeymasterYou can set “Role to Role Block”. Instruction in https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/role-to-role-block/
-
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.