• Plugin Contributor Machine IT Services

    (@machineitsvcs)


    This is a great plugin! Thank you so much! I had to edit the ispconfig.php file for a couple things, and obviously creating additional shortcode functions requires some PHP coding knowledge, but I finally got a setup perfect for me! I would like to make one small recommendation though. If you are to release a new version (not that you need to in my opinion), could you replace the mail() function with wp_mail() for those of us that require SMTP to send out the confirmation emails, and possibly include an update client function that uses the username to modify the existing user. I’m including the function I used below in case you’d like to implement it. Then I’d only have to backup my additional PHP scripts! Here’s the update function:

    public function UpdClient($options = [], $c_id){
            $defaultOptions = array(
                'locked' => 'n',
                'canceled' => 'n'
            );
            $options = array_merge($defaultOptions, $options);
            if(!array_key_exists('username', $options)) throw new Exception("Error missing or invalid username");
    
            $this->client_id = $this->soap->client_update($this->session_id, $c_id, $this->reseller_id, $options);
            return $this;
    }

    Thank you again for this amazing plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Machine IT Services

    (@machineitsvcs)

    As an additional note, I included the “locked” and “canceled” options to allow for a previously locked or canceled user account to be reactivated. I actually decided to integrate the shortcode into checkout instead of using a form, so you can see where this would be practical in a WooCommerce Subscriptions environment. Let me know if you need any assistance with development! This is a plugin I’d love to help expand on in my free time!

    Plugin Author ole1986

    (@ole1986)

    Thank you very much for your reply.

    It really sounds like you had the chance to customize several things related to this plug-in.

    What if you take part of this project on GitHub.com?

    I can also add you as contributor, so you can change the code directly and we can deploy new versions quicker.

    I do have many other projects and would be happy about having another developer in my team.

    PS: if you have code related issues I prefer to have such requests on GitHub instead: https://github.com/ole1986/wp-ispconfig3/issues

    PPS: I fully agree with the change from mail to wp_mail especially for security reasons.

    Regards
    Ole

    Plugin Contributor Machine IT Services

    (@machineitsvcs)

    I would love to be a part of your team and contributor to this plugin! My GitHub handle is MachineITSvcs as well.

    Plugin Contributor Machine IT Services

    (@machineitsvcs)

    I require at least one approval from you before I can commit changes on my own. I have a pull request pending.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Email Confirmation’ is closed to new replies.