Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
August 30, 2019 at 10:38 pm in reply to: Make the email and phone black out in the message content. It's possible? #28693Shamim HasanKeymaster
It is working fine here.
Please recheck if you have any more code which can do this.Shamim HasanKeymasterFor email troubleshooting you can follow https://www.shamimsplugins.com/docs/front-end-pm-pro/troubleshoot/email-notification-not-receiving/
To change email subject/content please follow https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/email-beautify/
Shamim HasanKeymasterYou want to hide full message system from some roles or some of the features?
From group users you can visit Front End PM PRO > All Groups. It is not possible and unselect any user from front end. You will have to create separate group without those users so that you can send message to those users to whom you want.
Shamim HasanKeymaster1. Set “To Role” also as student role. Others are same as above. That way students will not be able to send message to other students. For more instruction about this please see https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/role-to-role-block/
2. Add following code in your theme’s (child theme’s if you are using) functions.php.
add_filter( 'fep_get_option', function( $value, $option ){ if( 'can-send-to-group' == $option ){ if( array_intersect( [ 'administrator', 'teacher' ], wp_get_current_user()->roles ) ){ $value = true; } else { $value = false; } } return $value; }, 10, 2 );
Change
teacher
with your teacher user role. After this administrators and teachers will be able to send group message. students will not be able to send group message.3. For only admin setup please see https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/only-admin/
Shamim HasanKeymaster1. Please go to Front End PM PRO > Settings > Security > Role to Role Block > Add New and set “From Role” as student role, “To Role” and teacher role and “Block For” as “New Message”. Then save changes. After this settings students will not be able to send message to teacher.
2. Add following code in your theme’s (child theme’s if you are using) functions.php.
add_filter( 'fep_get_option', function( $value, $option ){ if( 'can-send-to-group' == $option ){ if( in_array( 'teacher', wp_get_current_user()->roles ) ){ $value = true; } else { $value = false; } } return $value; }, 10, 2 );
Change
teacher
with your teacher user role. After this only teachers will be able to send group message.Shamim HasanKeymasterHow to know which user is teacher or student? are they in different role?
August 29, 2019 at 2:16 pm in reply to: How can I have the messages from woocommerce sent to Front End PM Pro? #28631Shamim HasanKeymasterThere is a integration extension in https://wordpress.org/plugins/front-end-pm-woocommerce-integration/ where buyer can send message to seller.
But to send other emails to Front End PM PRO, it needs to be custom coded.
August 27, 2019 at 1:42 am in reply to: How can I change the font sizes of the different texts? #28555Shamim HasanKeymasterYou can see https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector#How_to to know how to use developer tool to change any size/color etc of any text.
Or follow following gif (using Firefox browser) to change size or any css value of any text and copy that value. You can paste that in Front End PM PRO > Settings > Appearance > Custom CSS if that css is this plugin specific. Or add in your child theme’s style.css file or in Dashboard > Appearance > Customize > Additional css if that css is not this plugin specific. With this easy steps you can change any css value of your website.
August 27, 2019 at 1:22 am in reply to: How can I increase the maximum text length limit in the subject line? #28551Shamim HasanKeymasterUse same code just change
minlength
tomaxlength
Shamim HasanKeymasterYou asked to show un footer of “MessageBox”, that’s why i write that code for you.
To show under all pages of message system you can usefep_footer_note
action hook.Shamim HasanKeymasterYou can use
fep_messagebox
filter to add anything bellow message box.
add following code in your theme’s (child theme’s if you are using) functions.phpadd_filter( 'fep_messagebox', function( $box ) { $box = $box . do_shortcode('[xyz-ips snippet="privacytel"]'); return $box; });
Shamim HasanKeymasterYou can use this plugin lifetime but update and support for one year. (see again https://www.shamimsplugins.com/terms-and-conditions/ which you agreed during purchase )
It will not be auto renewed, After expire if you want you can renew, otherwise you can use this plugin lifetime without renew your license.
If you still want a refund just contact me using https://www.shamimsplugins.com/contact-us/
August 21, 2019 at 7:34 pm in reply to: Make the email and phone black out in the message content. It's possible? #28358Shamim HasanKeymasterYou can add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_filter_message_before_send', function( $message ) { // The @ symbol must be surrounded by character on both sides $message['message_content'] = preg_replace( '/[^@\s]*@[^@\s]*\.[^@\s]*/', '[EMAIL]', $message['message_content'] ); # for emails // Take any string that contains only numbers, spaces and dashes, // Can optionally have a + before it. $message['message_content'] = preg_replace( '/\+?[0-9\-]{5,}/', '[PHONE]', $message['message_content'] ); # for phone numbers return $message; });
It will work most of the time.
August 20, 2019 at 11:54 pm in reply to: Make the email and phone black out in the message content. It's possible? #28324Shamim HasanKeymasterIt will be possible but will not be accurate. There are many ways to write email and phone number. I can provide just simple way to replace.
-
AuthorPosts