Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
1. Plugin must be installed in plugin directory (normally /wp-content/plugins/)
2. wp-content/themes/spacious-child/front-end-pm/ can contain any files from front-end-pm-pro/templates directoryShamim HasanKeymasterCurrently there is no direct hook in that place. Next version will be released next week and you will be able to change this with direct hook.
If you need this changed within this week let me know. I can provide some code to change this. But that will be indirect, if you are not too much hurry, i prefer you wait for next release.
March 27, 2018 at 6:41 pm in reply to: Custom language files deleted at update to Pro-version #12726Shamim HasanKeymasterIt should not delete any file.
I will try to investigate it more.
What is your language code?
did you put your language file in wp-content/languages/plugins folder?Shamim HasanKeymaster1. Use
.fep-message-title-heading.participants{font-weight:normal;}
for participant style
2. there is no direct tag for “Read by”. May be next version i will try to add a tag.Shamim HasanKeymasterPlease follow step by step
1. Remove all changes you have made for this plugin.
2. Inside your child theme create a folder called “front-end-pm”. So full path will be /wp-test/wp-content/themes/spacious-child/front-end-pm/
3. in this folder copy “viewmessage.php” and change this file as you need ( do not change file name)Shamim HasanKeymasterAre you trying to customize this plugin’s template in your child theme? Here is instruction https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/
Shamim HasanKeymasteradd following code in your theme’s ( child theme’s if any) functions.php
add_filter('fep_get_user_option', function( $value, $option, $default, $userid ){ global $ultimatemember; if( ! $userid ) $userid = get_current_user_id(); if( 'allow_ann' == $option && ! $ultimatemember->user->is_approved( $userid ) ){ $value = 0; } return $value; }, 10, 4);
March 26, 2018 at 11:15 am in reply to: Problem with message_url and announcement_url in emails sent to users #12657Shamim HasanKeymasterI have updated “Front End PM – Ultimate Member Integration”. Please update that extension and remove this custom code. Then use original
{{message_url}}
and{{announcement_url}}
. try and let me know.March 25, 2018 at 10:18 am in reply to: Problem with message_url and announcement_url in emails sent to users #12638Shamim HasanKeymasterI have corrected above code. Please use this code and try.
Let me know.March 24, 2018 at 4:37 pm in reply to: Problem with message_url and announcement_url in emails sent to users #12630Shamim HasanKeymasterPlease 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; });
-
AuthorPosts