• Resolved anemos2k

    (@anemos2k)


    Hi Tom,

    I am thinking of implementing your plugin on my site and I have a small question that I was hoping you could answer.

    Is there a possibility to detect a flag like active/inactive on the external database and deactivate/activate accordingly the users created on the local WordPress database? Or if I assign a specific user role in the external db, can this be used to disallow access locally in WordPress? If any of the above scenarios are not possible, any ideas how I could prevent a deactivated user on the external database to login in WordPress?

    Please let me clarify: On the external database, users never get deleted, they are only marked as deactivated and this leads me to question the fact that since a user account and a password DO EXIST in the external database how do I prevent that this user gets created and be allowed to log in locally in WordPress?

    By the way, the suggestion that you made on another user to allow adding/modifying part of the SQL query on the external database is very, very interesting!

    Thanks in advance for your input!
    Panos

Viewing 5 replies - 46 through 50 (of 50 total)
  • Hi,

    I’ve got some questions.
    Today i’ve seen, that you release update for your plugin. I update my plugin, but what with changes, that you posted here about 4 months ago?

    I see, that in new version of plugin there is no some important changes, i.e.
    $decoded_option_data = json_decode($option_data, true); // after update to 1.7.1
    $decoded_option_data = json_decode(base64_decode($option_data), true); // in code pasted here about 4 months ago
    Tell me, is it all right? When i was using plugin 1.6.0 there were an issue with exclude user repeater. After I applied your code you pasted above, then starts running.
    Did you solve above issue in latest version of plugin (1.7.1)?

    Another thing that I saw is non-working repeater in Exclude Users options panel. I’ve checked checkbox “Enable Excluding Users”, after that field name and value. After saving form i see checkbox checked, field name filled, but value is blank. Could you tell me what is wrong?

    Third little issue is notice in php logs, maybe you can fix that.
    “[11-Jun-2019 09:45:04 UTC] PHP Notice: wp_localize_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /wp-includes/functions.php on line 4773″

    I’ve checked, and after change below in file /wpconfig_options.php:11 it run.

    Changed from:
    $decoded_option_data = json_decode($option_data, true);

    Changed to:
    $decoded_option_data = json_decode(base64_decode($option_data), true);

    Plugin Author tbenyon

    (@tbenyon)

    Hey @mainpagepl,

    Thanks for the detailed posts.

    Just wanted to let you know I’m not ignoring you and am just struggling to find the time to properly look into this.

    I’m hoping to get this resolved this weekend.

    Will keep you posted but feel free to chase me on Monday if you haven’t heard back ??

    Tom

    Thanks ??

    Plugin Author tbenyon

    (@tbenyon)

    Hey @mainpagepl and @anemos2k,

    I’m just releasing V1.7.3.

    I really appreciate you taking the time to flag issues and raise questions.

    Makes the work put into the plugin worthwhile.

    If you don’t mind I’d be really grateful if you could take the time to write a review for the plugin.

    Alternatively, buying me a beer would be much appreciated.

    Thanks,

    Tom

Viewing 5 replies - 46 through 50 (of 50 total)
  • The topic ‘Active/Inactive Users’ is closed to new replies.