WordPress.org

Ready to get started?Download WordPress

Forums

CM Invitation Codes
[resolved] Cannot add any invitation codes (4 posts)

  1. maximinime
    Member
    Posted 1 year ago #

    On the code list, the plugin reports that new codes were saved but they never show up in the list.

    http://wordpress.org/extend/plugins/cm-invitation-codes/

  2. maximinime
    Member
    Posted 1 year ago #

    fixed in lib/CMInvitationCode.php:
    change

    public function getLimit() {
            if ($this->_registrationLimit == self::NO_LIMIT)

    to

    public function getLimit($raw = null) {
            if (!$raw && $this->_registrationLimit == self::NO_LIMIT)

    and change

    'registrationsLimit' => $this->getLimit(),
                'activationNeeded' => $this->isActivationNeeded(),

    to

    'registrationsLimit' => $this->getLimit(true),
                'activationNeeded' => (int) $this->isActivationNeeded(),
  3. CM Plugins
    Member
    Plugin Author

    Posted 1 year ago #

    We updated the plug to version 2.0 and included setting of registration limit so this should also fix the bug. please report if you still have problems using the plug

  4. maximinime
    Member
    Posted 1 year ago #

    We didn't end up needing it for our project, so I don't know. I'm fairly certain this is caused by MySQL 5 not converting the string value to 0. So if you're testing with 5+, you should be fine.

    One more problem: The plugin cannot be uninstalled. It's requireing a premium file without first checking if it exists.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.