Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
December 14, 2018 at 12:32 am in reply to: How to deny upgrade: 'Front End PM PRO needs to database update' #19725Shamim HasanKeymaster
Sorry for late reply.
i will be available from now.
about my solution to update to latest version i think you missed no.2 (Use a mysql backup copy where you never updated to latest version. If you update to 10.x version then role back, it may fail update. So ensure you never updater to 10.x version in that backup.) because before 10.x version some tables you mentioned never used.Please confirm if you have ever updated to latest version in that backup. If you updated to 10.x version then again role back to 8.x version then there need some extra step and code. I will give you. Please let me know.
Please check
FEP_admin_optionsandfep_db_versionoption in db (do not change manually). in FEP_admin_options you will get version in serialized array. Please let me know both.November 30, 2018 at 4:48 am in reply to: How to deny upgrade: 'Front End PM PRO needs to database update' #19401Shamim HasanKeymasterAs you are mysql and sql command familiar, that will help a lot.
1. Backup your database first.
2. Use a mysql backup copy where you never updated to latest version. If you update to 10.x version then role back, it may fail update. So ensure you never updater to 10.x version in that backup.
3. Go to db and delete any table starting withfep_.
4. Then update to latest version, latest version is 10.1.4
5. Then click “Proceed” when shows database update notice. Then start update. Wait until it finish.Let me know.
November 30, 2018 at 4:23 am in reply to: How to deny upgrade: 'Front End PM PRO needs to database update' #19396Shamim HasanKeymasterIf you want to use latest version i can assist you, latest version is so much improved in performance.
If you still want to use 8.4 follow following
only admin have 0 message issue? try sending a test message to any user then see if that solve your issue. let me know.Shamim HasanKeymasterNovember 30, 2018 at 3:06 am in reply to: How to deny upgrade: 'Front End PM PRO needs to database update' #19376Shamim HasanKeymasterIt is always recommend to use latest version.
Which version you want to use? I will explain you accordingly.Shamim HasanKeymasterYes, it is possible.
add following code in your theme’s (child theme’s if any) functions.phpadd_filter( 'fep_filter_before_email_send', function( $content, $mgs ){ $content['headers']['reply-to'] = 'Reply-To: ' . fep_get_userdata( $mgs->mgs_author, 'user_email', 'id' ); return $content; }, 10, 2 );Shamim HasanKeymasterYou can google it. Here is an example how you can achieve https://stackoverflow.com/a/5346855
Shamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_filter_show_which_name', function( $which ){ return 'first_name'; });Shamim HasanKeymasterMay be i did not understand you question properly. You want to send emails to users in their preferred language?
You need some php knowledge for that. I can guide you if you have some knowledge in php.Did you set https://www.shamimsplugins.com/docs/front-end-pm/integration/multilingual/ for WPML?
Shamim HasanKeymasterShamim HasanKeymasteradd following code in your theme’s (child theme’s if using) functions.php
add_filter( 'fep_filter_to_roles_to_create_announcement', function( $roles ) { $access_roles = fep_get_option( 'userrole_access', array() ); $wp_roles = wp_roles()->roles; $roles = array(); foreach( $wp_roles as $role => $role_info ){ if ( in_array( $role, $access_roles ) ) { $roles[ $role ] = translate_user_role( $role_info['name'] ); } } return $roles; });Shamim HasanKeymasterWe cannot send email from an email address which we do not own. You do not own your user email address, so you can not send email from that email address. We can try but most of the cases it will fail.
Shamim HasanKeymasterTo get latest messages you can use
FEP_Message_Queryclass.
To change notification bar, textarea you need some css knowledge. You can use browser developer feature to know css selectors of your desire html markup. for firefox see https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_toolsShamim HasanKeymasteradd following code in your theme’s (child theme’s if using) 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);Shamim HasanKeymasteradd following code in your theme’s (child theme’s if using) functions.php
add_action( 'fep_message_table_column_content_avatar', function(){} ); -
AuthorPosts