Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
March 24, 2018 at 4:37 pm in reply to: Problem with message_url and announcement_url in emails sent to users #12630Shamim HasanKeymaster
Please add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_eb_email_legends', function( $legends, $post, $user_email ){ if( ! function_exists( 'um_fetch_user' ) || ! function_exists( 'fep_get_userdata' ) || ! function_exists( 'um_user_profile_url' ) ) return $legends; if( is_object( $post ) ) um_fetch_user( fep_get_userdata( $user_email, 'ID', 'email') ); $legends['um_message_url'] = array( 'description' => __('URL of message if UM enabled', 'front-end-pm'), 'where' => array( 'newmessage', 'reply' ), 'replace_with' => ! empty( $post->ID ) ? esc_url_raw( add_query_arg( array( 'profiletab' => 'fep-um', 'fepaction' => 'viewmessage', 'fep_id' => $post->ID ), um_user_profile_url() ) ) : '' ); $legends['um_announcement_url'] = array( 'description' => __('URL of announcement if UM enabled', 'front-end-pm'), 'where' => 'announcement', 'replace_with' => ! empty( $post->ID ) ? esc_url_raw( add_query_arg( array( 'profiletab' => 'fep-um', 'fepaction' => 'view_announcement', 'fep_id' => $post->ID ), um_user_profile_url() ) ) : '' ); return $legends; }, 10, 3);
Then use
{{um_message_url}}
and{{um_announcement_url}}
respectively.
Let me know if it works. i will update plugin accordingly.Shamim HasanKeymasterYou can override
newmessage_form.php
template (instruction in https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/ ) to change header OR use shortcode https://www.shamimsplugins.com/docs/front-end-pm/shortcode/fep_shortcode_new_message_form/ in any page/post from where any user can send message to admin (use “to” as admin nicename and “heading” as “Contact Admin” in this shortcode)Shamim HasanKeymasterYou can add
position: fixed; bottom: 0px;
and remove
top: 80px;
Shamim HasanKeymasterPlease select your admins in Front End PM PRO > Settings > Recipient > FEP Admins (more details in https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/only-admin/)
This list will be available when users send message. If you want your users can send message only to those admins please block them by “Role to Role Block” feature so that they can not send to any other role. Please see more details in https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/role-to-role-block/Let me know if you have any doubt.
Shamim HasanKeymasterBleeding edge update is beta update. Please see more details in https://en.wikipedia.org/wiki/Bleeding_edge_technology
Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_form_fields', function( $fields ){ unset( $fields['allow_messages'] ); return $fields; });
Shamim HasanKeymasterSettings form in nonce protected. So we cannot change any option without submitting form from there. You can redirect users to settings page, then users can set as they want.
Or you can use
fep_update_user_option( 'allow_emails', 0 )
to uncheck option programmatically.Shamim HasanKeymaster2 options are available now. You can add one by one and/or all members of a role. You can also remove some members from the role.
Eg. you have added subscriber role, after save all members of the subscriber role will be added. Then you can remove some members from there also.Shamim HasanKeymasterShamim HasanKeymasterAnswer-1: Currently there is no direct class to hide. You can override header.php template to hide that line. Follow https://www.shamimsplugins.com/docs/front-end-pm/customization/change-templates-2/ to change template.
or wait for next version. I will add a class there so that you can easily hide that line with css.Answer-2:
It will automatically redirect you to message page where you can read that message. Redirect to any other page add following code in your theme’s (child theme’s if any) functions.php (Change YOUR CURRENT MESSAGE PAGE URL and YOUR DESIRE PAGE URL accordingly)add_filter( 'fep_header_notification', function( $show ){ $show = str_replace( 'YOUR CURRENT MESSAGE PAGE URL', 'YOUR DESIRE PAGE URL', $show); return $show; });
March 21, 2018 at 10:26 am in reply to: Make "Send Message" and "Reply" button show spinner animation on send. #12447Shamim HasanKeymasterThis plugin uses one time key. So it will send only one message at a time. If you click multiple times also, only one message will be sent.
Shamim HasanKeymasterYou can download from https://www.shamimsplugins.com/checkout/purchase-history/
Shamim HasanKeymasterPlease go to class-fep-group-message.php line 370
before $group = get_post_meta( $id, ‘_fep_group’, true );
addif( 'threaded' == fep_get_message_view() ){ $id = fep_get_parent_id( $id ); }
Let me know if this works.
Shamim HasanKeymasterYou can use
fep_before_form_fields
to show before form fields orfep_after_form_fields
to show after form fields.Shamim HasanKeymasterPlease select “Front End PM Page” from dropdown and save.
-
AuthorPosts