Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,081 through 1,095 (of 2,487 total)
  • Author
    Posts
  • in reply to: POP3 not working #27588
    Shamim Hasan
    Keymaster

    Did you change any other settings in your website? (eg. debug code, cron settings)?

    Please do following
    1. add error_log( 'pop3 event init' ); just after function pop3_event() {
    2. Go to Front End PM PRO > Settings > Emails > Email Piping/POP3 then set Enable as “None” then save changes and again set as POP3 and again save changes. Then wait at least 15 minutes and refresh your website couple of times then see error log.

    3. If still no log shows please install any cron plugin (eg. https://wordpress.org/plugins/wp-crontrol/ ) then go to Tools > Cron Events and see if fep_pop3_event showing under hook name. If yes give me that row screenshot. Also click “Run Now” and see again error log if any log there.

    Let me know.

    in reply to: Messaging to a Group #27586
    Shamim Hasan
    Keymaster

    Please use only following code

    add_filter( 'fep_filter_groups_to_send_message', function( $groups ){
    	return Fep_Group_Message::init()->get_all_groups();
    });
    

    Remove other code.

    Let me know.

    in reply to: POP3 not working #27541
    Shamim Hasan
    Keymaster

    Did you change error_log code what i suggested previously (remove // before error_log)? this code runs every after 15 minutes. So after 15 minutes refresh your website couple of times then see error log. When this code runs it at least show “pop3 event start” in error log if there is no error also.

    Let me know.

    in reply to: message notifications on mobile phone #27495
    Shamim Hasan
    Keymaster

    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.

    in reply to: POP3 not working #27491
    Shamim Hasan
    Keymaster

    It 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 certificates

    Then try again and let me know.

    in reply to: POP3 not working #27455
    Shamim Hasan
    Keymaster

    Please 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.

    in reply to: Is there Divi Integration #27379
    Shamim Hasan
    Keymaster
    in reply to: POP3 not working #27291
    Shamim Hasan
    Keymaster

    Can 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 // before error_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.

    in reply to: POP3 not working #27284
    Shamim Hasan
    Keymaster

    No 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?

    in reply to: POP3 not working #27254
    Shamim Hasan
    Keymaster

    Is 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=13273

    Let me know.

    Shamim Hasan
    Keymaster

    You 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);
    
    Shamim Hasan
    Keymaster

    You 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.

    in reply to: Question /wp-json/front-end-pm/v1/notification #27148
    Shamim Hasan
    Keymaster

    There 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

    in reply to: Question /wp-json/front-end-pm/v1/notification #27140
    Shamim Hasan
    Keymaster

    Please 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.

    in reply to: Invalid Licence Key adventure #27067
    Shamim Hasan
    Keymaster
Viewing 15 posts - 1,081 through 1,095 (of 2,487 total)