GithubHelp home page GithubHelp logo

benhuson / expire-users Goto Github PK

View Code? Open in Web Editor NEW
24.0 6.0 16.0 675 KB

Set expiry dates for users in WordPress

Home Page: http://wordpress.org/plugins/expire-users/

PHP 97.78% CSS 0.99% JavaScript 1.22%

expire-users's Issues

Compatibility with Theme my Login

Hey there,

Great plugin. The only issue is that I'm using the Theme My Login plugin to display profile fields on the frontend. With both this plugin and TML active the submit button is removed from the page.

To reproduce, download TML https://wordpress.org/plugins/theme-my-login/ and enable profile module. Next, install and activate Expire Users. You will see that an update Profile button is present when Expire Users is deactivated, but once activate it is removed.

Any help/insight is appreciated.

French Translation

Hi

I made an french translation for your plugin

Copyright (C) 2013 Expire Users

This file is distributed under the same license as the Expire Users package.

msgid ""
msgstr ""
"Project-Id-Version: Expire Users 0.5\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/expire-users\n"
"POT-Creation-Date: 2014-05-15 10:31-0000\n"
"PO-Revision-Date: 2015-03-08 10:47+0100\n"
"Last-Translator: Ben Huson [email protected]\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.7.4\n"
"X-Poedit-KeywordsList: __;_e;_n;_x;_nx;_ex\n"
"X-Poedit-Basepath: ./\n"
"Language-Team: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Language: fr_FR\n"
"X-Poedit-SearchPath-0: ..\n"

: ../admin/expire-user.php:37 ../admin/expire-user.php:120

msgid "Expire Date"
msgstr "Date de fin de validité"

: ../admin/expire-user.php:54

msgid "(expired)"
msgstr "(Expiré)"

: ../admin/expire-user.php:117 ../admin/help.php:36

msgid "User Expiry Information"
msgstr "Informations sur la date d'expiration"

: ../admin/expire-user.php:125 ../admin/expire-user.php:281

msgid "Edit"
msgstr "Modifier"

: ../admin/expire-user.php:131 ../admin/settings.php:111

: ../admin/settings.php:114

msgid "Expiry Date"
msgstr "Date de fin de validité"

: ../admin/expire-user.php:134 ../admin/settings.php:117

msgid "Never"
msgstr "Jamais"

: ../admin/expire-user.php:138 ../admin/settings.php:121

msgid "In"
msgstr "Dans"

: ../admin/expire-user.php:145 ../admin/settings.php:128

msgid "On"
msgstr "Le"

: ../admin/expire-user.php:160 ../admin/settings.php:140

msgid "On Expire, Default to Role"
msgstr "Rôle par défaut à la date de fin de validité"

: ../admin/expire-user.php:164 ../admin/settings.php:143

msgid "Don't change role"
msgstr "Ne pas modifier le rôle"

: ../admin/expire-user.php:171 ../admin/expire-user.php:174

: ../admin/settings.php:149 ../admin/settings.php:152

msgid "Expire Actions"
msgstr "Règles d'expiration"

: ../admin/expire-user.php:177 ../admin/settings.php:155

msgid "Replace user's password with a randomly generated one"
msgstr ""
"Remplacer le mot de passe de l'utilisateur avec un nouveau mot de passe "
"généré aléatoirement"

: ../admin/expire-user.php:181 ../admin/settings.php:159

msgid "Remove expiry details and allow user to continue to login"
msgstr ""
"Effacer la date de fin de validité et permettre à l'utilisateur de continuer "
"à s'identifier"

: ../admin/expire-user.php:187 ../admin/expire-user.php:190

: ../admin/settings.php:165 ../admin/settings.php:168

msgid "Email Notifications"
msgstr "Notifications par email"

: ../admin/expire-user.php:211

msgid "View and configure messages"
msgstr "Voir et configurer les messages"

: ../admin/expire-user.php:226

msgid "days"
msgstr "jours"

: ../admin/expire-user.php:227

msgid "weeks"
msgstr "semaines"

: ../admin/expire-user.php:228

msgid "months"
msgstr "mois"

: ../admin/expire-user.php:229

msgid "years"
msgstr "années"

: ../admin/expire-user.php:243

msgid "Jan"
msgstr "Jan"

: ../admin/expire-user.php:244

msgid "Feb"
msgstr "Fév"

: ../admin/expire-user.php:245

msgid "Mar"
msgstr "Mars"

: ../admin/expire-user.php:246

msgid "Apr"
msgstr "Avr"

: ../admin/expire-user.php:247

msgid "May"
msgstr "Mai"

: ../admin/expire-user.php:248

msgid "Jun"
msgstr "Juin"

: ../admin/expire-user.php:249

msgid "Jul"
msgstr "Juil"

: ../admin/expire-user.php:250

msgid "Aug"
msgstr "Août"

: ../admin/expire-user.php:251

msgid "Sep"
msgstr "Sept"

: ../admin/expire-user.php:252

msgid "Oct"
msgstr "Oct"

: ../admin/expire-user.php:253

msgid "Nov"
msgstr "Nov"

: ../admin/expire-user.php:254

msgid "Dec"
msgstr "Déc"

: ../admin/expire-user.php:280

msgid "Cancel"
msgstr "Annuler"

: ../admin/help.php:37 ../admin/help.php:57

msgid ""
"

Activate and configure default expiry settings for users who register via "
"the registration form.

"
msgstr ""
"

Activer et configurer les paramètres d'expiration par défaut pour les "
"utilisateurs qui se inscrivent via le formulaire d'inscription.

"

: ../admin/help.php:38 ../admin/help.php:58

msgid ""
"

Expiry Date
Set a user to nevr expire, expire after "
"a period of time or on a specific date.

"
msgstr ""
"

Date de fin de validité
Définir un utilisateur à "
"expiration nevr, expire après une période de temps ou à une date précise. </"
"p>"

: ../admin/help.php:39 ../admin/help.php:59

msgid ""
"

Default to Role
When a user expires, you can assign "
"them a different role.

"
msgstr ""
"

Rôle par défaut
Quand un utilisateur expire, vous "
"pouvez leur attribuer un rôle différent.

"

: ../admin/help.php:40 ../admin/help.php:60

msgid ""
"

Expire Actions
Other actions to trigger when a user "
"expires:

"
msgstr ""
"

Règles d'expiration
Autres actions à déclencher "
"quand la date de fin de validité est atteinte :

"

: ../admin/help.php:42 ../admin/help.php:62

msgid "

  • replace user's password with a randomly generated one.
  • "
    msgstr ""
    "
  • Remplacer le mot de passe de l'utilisateur avec un nouveau mot de passe "
    "généré aléatoirement.
  • "

    : ../admin/help.php:43 ../admin/help.php:63

    msgid "

  • remove expiry details and allow user to continue to login.
  • "
    msgstr ""
    "
  • Supprimer la date de fin de validité et permettre à l'utilisateur de "
    "continuer à d'identifier.
  • "

    : ../admin/help.php:45

    , php-format

    msgid ""
    "

    Notification Emails
    These emails are sent if you "
    "have checked the checkboxes on a user's profile. Notification messages are "
    "configured on the <a href="%s">Expire Users settings page.

    "
    msgstr ""
    "

    Notification par email
    Des emails seront envoyés en "
    "fonction des cases cochées sur le profil des utilisateurs. Les messages de "
    "notification sont configurés sur la page <a href="%s">Paramètres "
    "d'expiration des utilisateurs.

    "

    : ../admin/help.php:56

    msgid "Expiry Settings"
    msgstr "Paramètres d'expiration"

    : ../admin/help.php:65

    msgid ""
    "

    Notification Emails
    These emails are sent if you "
    "have checked the checkboxes on a user's profile.

    "
    msgstr ""
    "

    Notification par email
    Des emails seront envoyés en "
    "fonction des cases cochées sur le profil des utilisateurs.

    "

    : ../admin/help.php:80

    msgid "Expire Users Plugin"
    msgstr "Politique d'expiration"

    : ../admin/help.php:82 ../admin/plugin.php:22

    msgid "Documentation"
    msgstr "Documentation"

    : ../admin/help.php:83

    msgid "Support Forum"
    msgstr "Forum d'aide"

    : ../admin/help.php:84

    msgid "Contribute at Github"
    msgstr "Contribuer à GitHub"

    : ../admin/help.php:85

    msgid "Submit an Issue"
    msgstr "Soumettre un commentaire"

    : ../admin/notifications.php:27

    msgid "User Expired Notification"
    msgstr "Activer la notification par email à l'utilisateur"

    : ../admin/notifications.php:28

    msgid "This email is sent to a user when their login details expire."
    msgstr ""
    "Cet email est automatiquement envoyé à l'utilisateur lorsque la date de fin "
    "de validité de son compte est atteinte."

    : ../admin/notifications.php:33

    msgid "User Expired Admin Notification"
    msgstr "Activer la notification par email à l'administrateur"

    : ../admin/notifications.php:34

    msgid ""
    "This email is sent to the WordPress admin email address when a user expires."
    msgstr ""
    "Cet email est automatiquement envoyé à l'administrateur lorsque le compte "
    "d'un utilisateur a atteint la date de fin de validité."

    : ../admin/notifications.php:71

    msgid "Notification"
    msgstr "Notification"

    : ../admin/notifications.php:72

    msgid "Message"
    msgstr "Message"

    : ../admin/notifications.php:149

    msgid "No notification defined."
    msgstr "Aucune notification définie."

    : ../admin/plugin.php:21

    msgid "https://github.com/benhuson/expire-users"
    msgstr "https://github.com/benhuson/expire-users"

    : ../admin/plugin.php:21

    msgid "GitHub"
    msgstr "GitHub"

    : ../admin/plugin.php:22

    msgid "https://github.com/benhuson/expire-users/wiki"
    msgstr "https://github.com/benhuson/expire-users/wiki"

    : ../admin/plugin.php:36

    msgid "Settings"
    msgstr "Paramètres"

    : ../admin/settings.php:14

    msgid "Expire Settings"
    msgstr "Règles d'expiration"

    : ../admin/settings.php:82

    msgid "Expire Users Settings"
    msgstr "Règles d'expiration des comptes utilisateur"

    : ../admin/settings.php:86

    msgid "Options saved"
    msgstr "Les paramètres ont été enregistrés."

    : ../admin/settings.php:101

    msgid "Registered User Expiry Settings"
    msgstr "Réglages des paramètres d'expiration"

    : ../admin/settings.php:105

    msgid ""
    "Automatically set expiry date for new users who register via the "
    "registration form."
    msgstr ""
    "Calculer automatiquement la date de fin de validité pour les nouveaux "
    "utilisateurs qui s'inscrivent via le formulaire d'inscription."

    : ../admin/settings.php:194

    msgid "Notification Emails"
    msgstr "Réglages des notifications par email"

    : ../admin/settings.php:195

    msgid ""
    "These emails are sent if you have checked the checkboxes on a user's profile."
    msgstr ""
    "Des emails seront envoyés en fonction des cases cochées sur le profil des "
    "utilisateurs."

    : ../admin/settings.php:196

    msgid ""
    "You may use the following placeholders in the notification email messages "
    "below:"
    msgstr ""
    "Vous pouvez utiliser les variables suivantes dans les messages de "
    "notification définis ci-dessous :"

    : ../admin/settings.php:200

    msgid "Save Options"
    msgstr "Enregistrer les paramètres"

    : ../includes/expire-user.php:92

    msgid " @ "
    msgstr " @ "

    : ../includes/expire-user.php:93

    , php-format

    msgid "Expires: %s"
    msgstr "Expire : %s"

    : ../includes/expire-user.php:94

    , php-format

    msgid "Expired: <strong class="expire-user-expired">%s"
    msgstr "Expiré : <strong class="expire-user-expired">%s"

    : ../includes/expire-user.php:95

    msgid "Expire: Never"
    msgstr "Expiration : Jamais"

    : ../includes/expire-users.php:96

    , php-format

    msgid "Your login details to %%sitename%% have expired"
    msgstr "Votre accès au site %%sitename%% a expiré"

    : ../includes/expire-users.php:109

    , php-format

    msgid "Login details to %%sitename%% have expired (%%username%%)"
    msgstr "L'accès au site %%sitename%% a expiré pour l'utilisateur %%username%%"

    : ../includes/expire-users.php:160

    , php-format

    msgid "Your access to %%sitename%% has expired."
    msgstr "Votre accès au site %%sitename%% a expiré."

    : ../includes/expire-users.php:167

    , php-format

    msgid ""
    "Access to %%sitename%% has expired for %%name%% (%%username%%) on "
    "%%expirydate%%"
    msgstr ""
    "L'accès au site %%sitename%% a expiré pour l'utilisateur %%name%% (%%username"
    "%%) le %%expirydate%%."

    : ../includes/expire-users.php:185

    msgid "ERROR: Your user details have expired."
    msgstr "Erreur :votre compte utilisateur a expiré !"

    : ../includes/expire-users.php:198

    msgid ""
    "ERROR: Your user details have expired so you are no longer "
    "able to reset your password."
    msgstr ""
    "Erreur :votre compte utilisateur a expiré, c'est pour cela "
    "que vous n'êtes plus en mesure de réinitialiser votre mot de passe."

    : ../includes/shortcodes.php:22

    msgid "M d, Y"
    msgstr "d/m/Y"

    : ../includes/shortcodes.php:23

    , php-format

    msgid "Expires %s"
    msgstr "Expire %s"

    : ../includes/shortcodes.php:24

    , php-format

    msgid "Expired %s"
    msgstr "Expiré %s"

    : ../includes/shortcodes.php:25

    msgid "Never Expire"
    msgstr "N'expire jamais"

    Expiry date not added (Gravity Forms)

    At WordPress 4.9.8 and above, this plugin no longer adds an expiry date to a subscriber created via Gravity Forms membership. All expiry dates now have to be added manually. (Previously it worked fine.)

    Notification emails wrong Texdomain name

    In two places You use wrong translation texdomain name "expired-users".
    The correct name is "expire-users".
    File: expire-users.php
    Send notification email when user expires
    AND
    Send admin notification email when user expires

    Hook expire-users into custom registration forms?

    This plugin does exactly what I need, but is not working with WooCommerce. I have WC configured to register new users when they place their first order. Is there a simple way to connect expire-users to this or other custom forms that use the register-user class? Thanks.

    Add expired role

    Will no capabilities.
    You could assign capabilities to the expired users

    Expired users can still sign in (1.0.2 on WP 4.7.5)

    Seems like the authenticate hook calling Expire_User->authenticate(...) has too low priority. Changing it to 30 blocks expired users again. I made a temporary solution by chaining another call to it in my functions.php.

    function call_expire_users_authenticate($user, $username, $password) {
      global $expire_users;
      return $expire_users->authenticate($user, $username, $password);
    }
    
    add_filter('authenticate', 'call_expire_users_authenticate', 30, 3);
    

    Various Issues

    Hi Ben,

    This plugin seems to have several issues at the moment and it appears that development / maintenance is sadly dead.

    Firstly I just wanted to say thanks for all your hard work on this plugin, it's used by a lot of people and provides functionality that no other plugin appears to provide.

    Secondly, I'd like to BEG you to pick this plugin up again and please get this back to it's former glory.

    Lastly, if you aren't able / willing to resume this thing, then I'd just like to say a final thank you for all your work on it, before asking if you know of any alternative plugin that offers similar functionality?

    Thanks.

    Add expiring soon view

    So you can easily see users who will be expiring.
    Or maybe just sortable will suffice?

    Expire user at particular time on same day

    Hi admin, i want to expire user on same day and change password by random one but i did observe its not expire on same day it take action on next day at 6 am. so what should i do to expire user as per time given.

    multiple expire emais

    It looks like now emails are send every time when a user login after the account expires. Is it possible to limit sending emails only the first time they try to login. I think it was like that earlier, started noticing it after last update.

    Italian Translation

    Hi there,
    I made an italian translation for the plugin (see commit 7f27faf).
    To which branch should I send a pull request?

    Incompatibility with the bbPress plug-in

    When an administrator tries to edit a user's profile from the bbPress front-end (/forums/users/username/edit/) there is an error:

    Fatal error: Call to undefined function wp_dropdown_roles() in \wp-content\plugins\expire-users\admin\expire-user.php on line 182
    

    Non-administrators don't get this error (i.e when a regular user tries to update their own profile).

    Could be related to this.

    Expire Users for Easy Digital Downloads registration form

    I took your code to hook to WooCommerce registration/purchase, I slightly modified the code to work with Easy Digital Downloads

    /**
     * Set expire
     */
    function prefix_user_expire( $payment_id = 0 ) {
    
        global $expire_users;
    
        if ( ! class_exists( 'Expire_User' ) ) {
            return;
        }
    
        $expire_settings = $expire_users->admin->settings->get_default_expire_settings();
        $expire_data = array(
            'expire_user_date_type'         => $expire_settings['expire_user_date_type'],
            'expire_user_date_in_num'       => $expire_settings['expire_user_date_in_num'],
            'expire_user_date_in_block'     => $expire_settings['expire_user_date_in_block'],
            'expire_user_date_on_timestamp' => $expire_settings['expire_timestamp'],
            'expire_user_role'              => $expire_settings['expire_user_role'],
            'expire_user_reset_password'    => $expire_settings['expire_user_reset_password'],
            'expire_user_email'             => $expire_settings['expire_user_email'],
            'expire_user_email_admin'       => $expire_settings['expire_user_email_admin'],
            'expire_user_remove_expiry'     => $expire_settings['expire_user_remove_expiry']
        );
        $user_id = edd_get_payment_user_id( $payment_id );
        $user    = new Expire_User( $user_id );
        $user->set_expire_data( $expire_data );
        $user->save_user();
    
    }
    add_action( 'edd_complete_purchase', 'prefix_user_expire', 10, 3 );
    

    It worked perfectly, but do you know how to expire the login form?

    Remove expire date

    Hi.
    i'm trying to remove the expire date on user by php (like setting "none" in the setting of a user)

    for do this i rite something like this 👍
    $expireUser = new Expire_User( $user->user_id); $expireUser->remove_expiry(); $expireUser->save_user();

    but when the date is reach, the user keep the date in red...
    how i can do this ?
    thanks.

    and thanks for you work on this plugin

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.