Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Can you please recheck you had added correct code?
Which line is 434 line?
Can you please give me a screenshot of your added code and before and after 2 lines?Shamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_action( 'wp_enqueue_scripts', function(){ wp_deregister_script( 'fep-replies-show-hide' ); });
Update:
add following code in your theme’s (child theme’s if any) functions.phpadd_filter( 'fep_filter_hide_message_initially_if_read', '__return_false' );
June 4, 2018 at 11:40 pm in reply to: How to Link the conversation thread subject to original post? #14711Shamim HasanKeymasterI assume you are using fep_shortcode_new_message_form shortcode to create form
1) You can add
.fep-form-shortcode-newmessage .fep-form-field-message_title {display:none;}
in Front End PM PRO > Settings > General > Custom CSS. It will hide Subject field so user will not be able to edit subject. Please Note: If any user edit subject in source code those edit will be accepted.
2) User can copy original post link and paste in message content to refer back.Shamim HasanKeymasterShamim HasanKeymasterIf you go to Dashboard > Front End PM PRO > All Messages then take cursor to message title you can see message id.
If you do not need explicitly add message id to the subject, i prefer not to add id to the subject. We can not get id before message save. So we have to add id after message save that will save every message twice which will stress your server.
After that also if you want to add id to message subject then let me know. I will give you code to achieve that.Shamim HasanKeymaster1. Please see https://www.shamimsplugins.com/docs/front-end-pm/getting-started/basic-front-end-walkthrough/
2. Please go to Dashboard > Front End PM PRO > All Messages
3. May i know the purpose of message id in subject? You can enable email piping (https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/email-piping/) which will add a unique id in subject in email.Shamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_filter_user_name', function( $name, $id ){ if( isset( $_GET['fepaction'] ) && 'viewmessage' == $_GET['fepaction'] && function_exists( 'um_fetch_user' ) ){ um_fetch_user( $id ); $name = '<a href="' . um_user_profile_url() . '">' . $name . '</a>'; } return $name; }, 10, 2);
Shamim HasanKeymasteryou want your users can send only one line message? If presses “Enter” send the message then users will not be able to create newline.
Let me know. If you need then i can provide you some code.Shamim HasanKeymasterBy default wordpress doesn’t have a user profile page. Which page you want to link? author posts page?
June 2, 2018 at 11:32 am in reply to: Unable to remove "maxlength" and "minlength" requirements #14637Shamim HasanKeymasterTo remove minlength and maxlength from both message title and message content add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_form_fields', function( $fields ){ unset( $fields['message_title']['minlength'], $fields['message_title']['maxlength'], $fields['message_content']['minlength'], $fields['message_content']['maxlength'] ); return $fields; });
June 2, 2018 at 11:26 am in reply to: How to use fep_autosuggestion_arguments to show only users in Subscriber role #14635Shamim HasanKeymasterShamim HasanKeymasterThis may help a little https://stackoverflow.com/a/16974066/8285659
Shamim HasanKeymasterin your .forward file use
|php /home/xxx/xxx/fep-email-piping.php
(change file permission and enter correct path)
This should workShamim HasanKeymasterIf your host doesn’t support piping of emails to a program then your users need to go to your website to reply messages. You can send message link in notification email so that user can follow that link to go to your website to reply his messages.
Shamim HasanKeymasterDate not fixed yet. May be end of the next month.
-
AuthorPosts