Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Attachment is attached to message by message id. So before sending message we can not know message id.
Why you need upload attachment before sending message? Attachment check (size, amount etc) is done before sending message. So if that check fail that will automatically fail message sending.Also it seems you are not using latest version of this plugin. It is always recommended to use latest version.
Shamim HasanKeymasterCurrently there is no direct way. You can copy paste message to forward.
May 7, 2018 at 10:46 pm in reply to: How to remove Minimum characters requirement in "Subject" #14076Shamim HasanKeymasterYou cannot have multiple function as same. You can change function name OR use anonymous function.
Add following code insteadadd_filter( 'fep_form_fields',function( $fields ){ unset( $fields['message_title']['minlength'] ); return $fields; });
May 7, 2018 at 10:43 pm in reply to: For User name and Nick name is "CV24" what will be the shortcode for New messag #14073Shamim HasanKeymaster<a href="http://YOUR_MESSAGE_PAGE_URL/?fepaction=newmessage&message_title=HERE_IS_YOUR_SUBJECT&fep_mr_to=1,2">Message</a>
May 7, 2018 at 7:45 pm in reply to: How to remove Minimum characters requirement in "Subject" #14064Shamim HasanKeymasterShamim HasanKeymasterCurrently it is not possible.
But logged for consideration to add in next version.Shamim HasanKeymasterI have logged it for consideration.
Shamim HasanKeymasterHere is instruction of creating custom email tag. https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/add-own-email-tag/
May 2, 2018 at 10:06 am in reply to: For User name and Nick name is "CV24" what will be the shortcode for New messag #13938Shamim HasanKeymasterinstead of this shortcode use
<a class="fep-button" href="http://YOUR_MESSAGE_PAGE_URL/?fepaction=newmessage&fep_mr_to=1,2">Message</a>
(change YOUR_MESSAGE_PAGE_URL with your message page url and 1,2 with your actual user ids)May 2, 2018 at 10:02 am in reply to: Paste directly multiple recipients names in the recipient box #13935Shamim HasanKeymasterjust add
&fep_mr_to=1,2
end of your url and press enter. It will fill your “To” field with those users. Remember to use user id (CV24 cannot be user id, user id is a number)Shamim HasanKeymasterMessage can be sent only one group at a time.
Shamim HasanKeymasterdid you replace code exactly what i gave you? Please recheck.
If still not working please give me screenshot of what you have changed.
Also let me know your PHP version.Shamim HasanKeymasterI have updated above code. Please use this code.
Then add following CSS in your theme’s style.css.fep-column-cus_count { width: 50px; } .fep-column-cus_date { width: 100px; }
Shamim HasanKeymasterPlease go to class-fep-group-message.php line 320 and change
return $user_groups;
toreturn apply_filters( 'fep_get_user_groups', $user_groups, $user_id );
(this hook will be added to next version, so you will not be needed this change for next version)Then add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_get_user_groups', function( $user_groups, $user_id ){ $groups = fep_get_option('gm_groups', array()); if( $groups && is_array( $groups) ){ foreach ( $groups as $group ) { $user_groups[ $group['slug'] ] = $group['name']; } } return $user_groups; }, 10, 2);
This will allow you to send message to any group without joining that group.
Shamim HasanKeymasterYou can pass “text” attribute to shortcode. So if you pass
text="Message"
that will change button name -
AuthorPosts