Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
You can use like
<a href="http://example.com/message/?fepaction=newmessage&fep_mr_to=1,2,5">Send Message</a>
Change example.com/message/ with your message page url
Shamim HasanKeymasterThis feature supports now.
Use fep_mr_to instead of fep_to and user ids separated by comma. egfep_mr_to=1,2,5
Shamim HasanKeymasterPlease go to Dashboard > Front End PM PRO > Settings > General and set “Time delay” as 0
Then add following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_action_validate_form', 'fep_cus_diff_time_delay_for_roles', 10, 2); function fep_cus_diff_time_delay_for_roles( $where, $errors ) { if( 'newmessage' != $where ) return; $args = array( 'post_type' => 'fep_message', 'post_status' => array( 'pending', 'publish' ), 'posts_per_page' => 2, 'author' => get_current_user_id(), 'date_query' => array( 'after' => '-1 week' ) ); if( 'threaded' == fep_get_message_view() ) $args['post_parent'] = 0; $posts = get_posts( $args ); if( ! $posts ) return; $roles = wp_get_current_user()->roles; if( array_intersect( array( 's2member_level1', 's2member_level2'), $roles ) ) { $errors->add('time_delay', __( 'You can send maximum 1 message a week.', 'front-end-pm' ) ); } elseif( count( $posts ) >= 2 && array_intersect( array( 's2member_level3', 's2member_level4'), $roles ) ){ $errors->add('time_delay', __( 'You can send maximum 2 messages a week.', 'front-end-pm' ) ); } }
November 12, 2017 at 3:32 pm in reply to: Special character displayed as Unicode in the email subject #7923Shamim HasanKeymasterThank you for letting me know.It seems the_title filter was creating issue here. It is fixed now.
Shamim HasanKeymasterLicense data is cached for 1 week. You can deactivate and activate again to get latest expiry date.
Shamim HasanKeymasterYou can use https://www.shamimsplugins.com/docs/front-end-pm/customization/remove-minlength-message-title/
(replaceunset( $fields['message_title']['minlength'] );
with$fields['message_content']['minlength'] = 2;
)November 8, 2017 at 9:07 pm in reply to: Add announcement to the new message count in shortcode #7853Shamim HasanKeymasterShamim HasanKeymasterThere is a notification in website title, like facebook notification.
Also you can check https://www.shamimsplugins.com/docs/front-end-pm/getting-started/show-unread-message-count-in-menu/ to set unread message count in menuShamim HasanKeymasterYou can set “Use Current Page” in Dashboard > Front End PM PRO > Settings > General > Front End PM Page.
With this setup message system may not work correctly, also link in emails will be broken, you have to hardcode message links in email.Prev: https://www.shamimsplugins.com/support/topic/can-i-add-mulitple-pages-for-frontend-pm/
Shamim HasanKeymasterI didn’t find any issue last time. Can you please compare plugins in both sites?
Also please Set same settings as previous site, especially Email settings.Let me know.
Shamim HasanKeymasterYou can easily upgrade with pay only rest amount. Go to https://www.shamimsplugins.com/checkout/purchase-history/ and click “View Licenses > View Upgrades”
Shamim HasanKeymasterI see you have created an announcement but did not select Roles (Admin and Vendors). Please go to Front End PM PRO > All Announcements and see there is no “To”.
Please create a new announcement and select roles during announcement creation (right sidebar). Let me know.
Shamim HasanKeymasterIf you use poedit please use “Catalog > Update From Sources”.
More details see https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/translate/Shamim HasanKeymasterNo where is used “username”. Everywhere is use “display_name” which is make in the wordpress core to use publicly.
You can change display_name of your desire users in back-end user profile edit page (Change Display name publicly as).There are many places to show name in this plugin and everywhere there is filter to change also. But you need code to change where you want. eg. If you want to change in directory use
fep_directory_table_column_content_name
hook.
My suggestion, you can create your company profile separately to use so that you can name it how you like without coding.Shamim HasanKeymasterIt is highly recommended NOT to modify any core plugin code. When you will update this plugin you will loss all your modification.
Same result can be achieved using
add_action( 'fep_message_table_column_content_avatar', 'your_function' );
Also if you want to remove own avatar you can useif (($key = array_search(get_current_user_id(), $participants)) !== false) { unset($participants[$key]); }
just after
$participants = fep_get_participants( get_the_ID() );
line.I am planing to add a filter to remove own avatar in next release.
-
AuthorPosts