Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Please add following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_directory_table_column_content_name', function( $user ){ $shop_name = get_user_meta( $user->ID, 'pv_shop_name', true ); if( $shop_name ) echo $shop_name; else echo $user->display_name; });
Shamim HasanKeymasterwhat is meta name of that field? Did you use any plugin to create that field?
November 19, 2017 at 12:33 pm in reply to: Aggregate messages related to a single receiver or a group #8083Shamim HasanKeymasterCurrently there is no feature like that in this plugin. You may do it by custom code, but that will be complicated.
November 19, 2017 at 12:28 pm in reply to: Special character displayed as Unicode in the email subject #8080Shamim HasanKeymasterNext version will be published this week. This fix is included in next version.
Shamim HasanKeymasterAre they receiving announcement emails?
Was it working before? From when it is not working?
Please give me screenshot of Front End PM PRO > Settings > Emails page.Shamim HasanKeymasterAnnouncement only for admin to users. So there is no option for users to send reply.
But i think it can be a nice feature to add this. I will try to add this in next major version.
Shamim HasanKeymasterYou 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/
-
AuthorPosts