Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
You can use any domain you want. But email must forward to php script as mentioned in https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/email-piping/ . So if your piping email is pm@privatemessagedomain.com then from this email forward email to mentioned php script.
Shamim HasanKeymasteruse
[front-end-pm fepaction="announcements"]
in page contentShamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_menu_buttons', function( $menu ){ unset( $menu['newmessage'], $menu['message_box'], $menu['settings'], $menu['directory'] ); return $menu; }, 99 );
Shamim HasanKeymasterThank you for being with us.
we cannot delay 10 seconds, it is not possible. We can use cron, but that is full another chapter.A good news is that i am re-designing this plugin. New version will be so much performance improved.
Shamim HasanKeymasterYes.
Add following code in your theme’s (child theme’s if any) functions.phpadd_filter( 'fep_get_option', function( $value, $option ){ if( 'can-send-to-group' == $option ){ if( in_array( 'supervisors', wp_get_current_user()->roles ) ){ $value = true; } else { $value = false; } } return $value; }, 10, 2 );
Change
supervisors
with your supervisors user’s role.Shamim HasanKeymasterIt is recommended not to change any php code in plugin. When you will update plugin you will lose your changes.
Sorry, i do not have any recommendation on that.
Shamim HasanKeymasterYou should not need to change any php code to hide directory for non admin. What php you had changed? i can correct if anything wrong in the plugin for that feature. let me know.
Shamim HasanKeymasterWhen non admin user use “New Message” That is already filled. They do not need to type anything to send message to admin.
Shamim HasanKeymasterAlso what php code you had changed to hide directory? Please remove that code so that we can investigate what is wrong with directory.
Shamim HasanKeymasterI see you set “Max recipients” to 0(zero) which restrict all new message sent to user.
If you want any role not to send new message (but admin can) then use role to role block to block that role.Set “To Role” as “All Roles” and “Block For” as “New Message”.
If you set Admins in Front End PM PRO > Settings > Recipient > Can send to admin Then these feature is exempted. So users can send message using this feature if they are blocked by “Role to Role block” featureShamim HasanKeymasterShamim HasanKeymasterCan admin send message from “New Message” (not from directory)?
are you using default theme or any other theme?
Can you give me access to your site so that i can try?Shamim HasanKeymasterwhat is the nicename of that admin user the message is sending to? who is sender of that message?
please deactivate all plugins and change theme to default theme then try.
Let me know.Shamim HasanKeymasterDid you change any code or use any custom code for this plugin?
If you unchecked that will hide directory for non admin users.Shamim HasanKeymasterplease go to Front End PM PRO > Settings > General > Show Directory
-
AuthorPosts