Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
That is not my plugin. I am not connected to that plugin in any way. So i do not know what they support.
This plugin already support notification which should work in iOS/Android also if user access your website in their browser.
Shamim HasanKeymasterIt seems it is certificate issue. Please follow following steps
1. Setup your gmail for pop3 access. See https://support.google.com/mail/answer/7104828?hl=en
2. Allow less secure apps in https://myaccount.google.com/lesssecureapps for your same email address which you set as POP3 email.
3. Check Front End PM PRO > Settings > Emails > No validate certificatesThen try again and let me know.
Shamim HasanKeymasterPlease go to class-fep-email-pop3.php and add following code after error_log( ‘imap mail stream not available’ );
error_log( imap_last_error() );
Then try again and let me know error message.
Shamim HasanKeymasterShamim HasanKeymasterCan your website run cron?
Please follow step by step
1. Send a message from UserA to UserB.
2. Access UserB email and see if he received email notification. If yes, does that email subject contain [MESSAGE KEY-XXXXXX] ?
3. Reply to that email.
4. Access to your email address (which email you setup in POP3), Did you receive that email which is sent from UserB email ?
5. Wait at least 15 minutes then refresh your website couple of times.
6. Check if replied email from UserB imported in messagebox of UserA?If any steps failed, let me know which steps it is.
If only step-6 failed, please go to class-fep-email-pop3.php and remove all
//
beforeerror_log
and again start from step-1 and after finishing all steps see your server error log and see any error there.Let me know.
Shamim HasanKeymasterNo email client is needed.
I see in your screenshot that your email address is not in gmail domain. Please recheck if that email address is a gmail address.If still not working let me know if you are comfortable editing php code. if i give you some debug php code, can you add that to further debug?
Shamim HasanKeymasterIs your email address correct? It should be email address of your pop3 email. In your case it is gmail.
Please see
https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/pop3-feature/
http://support.google.com/mail/bin/answer.py?hl=en&answer=13273Let me know.
July 23, 2019 at 7:39 pm in reply to: Need to hide or disable the buttons for settings and announcements #27181Shamim HasanKeymasterYou can use following code instead
add_filter( 'fep_menu_buttons', function( $menu ){ if ( array_intersect( [ 'external-user-student', 'external-user-teacher' ], wp_get_current_user()->roles ) ){ unset( $menu['settings'], $menu['announcements'] ); } return $menu; }, 99);
July 23, 2019 at 10:57 am in reply to: Need to hide or disable the buttons for settings and announcements #27159Shamim HasanKeymasterYou can add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_menu_buttons', function( $menu ){ unset( $menu['settings'], $menu['announcements'] ); return $menu; }, 99);
It will remove for all users. If you want to hide for certain role you can let me know from which role you want to hide.
Shamim HasanKeymasterThere are so many performance improved in 11.x version. Before this version if a user open multiple tab this produce multiple requests but in this version no matter how many tabs are open in same browser it will just make 1 request per interval.
Also previous versions it used admin ajax but now use wp-json which is also a performance improved. It use less resources.After adding that code wait couple of hours. Next time user refresh their browser will load that code and reduce call.
I suggest you use 11.x version. It is better in performance. After changing that code just wait couple of hours to load in users browser. You can change to 10 minutes more if required. This notification call is present in 10.x version also. But it use admin ajax thats why you may not find it. But for ajax call wp-json in better for performance
Shamim HasanKeymasterPlease add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_filter_ajax_notification_interval', function( $interval ){ $interval = 5 * MINUTE_IN_SECONDS * 1000; return $interval; });
You can change 5 to any number. It will call every after that many minutes.
Shamim HasanKeymasterShamim HasanKeymasterInstead of
post_author
usemgs_author
Let me know.
Shamim HasanKeymasterYou can use following code, it will redirect user to messagebox page after message sent.
add_action( 'fep_posted_action_after', function( $action ){ if ( 'newmessage' == $action && count( fep_success()->get_error_messages() ) > 0 ) { $_POST['fep_redirect'] = fep_query_url( 'messagebox' ); } });
-
AuthorPosts