tsiedsma Posted December 11, 2009 Share Posted December 11, 2009 I've been a WHMCS user for quite some time and one of the things from day one I've wished WHMCS did was automatically provision some of my addons that I sell on certain hosting accounts. All of my hosting accounts have Shell Access available as an Addon Product. Some accounts also don't include unlimited Addon Domains. I'm sure some of you sell unlimited SQL databases or FTP Accounts as Addons. The Auto Addons plugin ties into to the ActionHook system and also has a cron job that runs. When a user places an order for new hosting, upgrade purchase or addon purchase, the plugin logs information and once the invoice is paid, the upgrade is flagged for provisioning. A cron job runs every 5 minutes and automatically provisions all pending changes for all upgrade orders using the WHM XML-API and data already stored in your WHMCS database. Currently this plugin supports automatic provisioning of the following options as Product Addons: Max FTP Accounts Max Email Accounts Shell Access Max SQL Databases CGI Access Max Subdomains Max Parked Domains Max Addon Domains The following can be provisioned as Configurable Options: Web Space Quota - WHM/cPanel 11.25 only Bandwidth Limit This is not my first plugin / WHMCS modification, but it is the first one i've shared. For the purpose of support, the files are encoded. The plugin is free for now as I really need people to test it out. If you wish to test out the Auto Addons plugin, please post in this thread the following information: Server Type: Dedicated or VPS WHM / cPanel Version: cPanel 11.24.5-R38506 - WHM 11.24.2 Operating System: CENTOS 5.4 x86_64 WHMCS Version: 4.1.2 PHP Version: 5.2.11 MySQL Version: 5.0.85-community-log The last 3 options are found in WHMCS -> Help -> Support Request The first 3 you should know or can be found in cPanel. I need this information to help track issues. All bugs / feature requests and comments can be posted here or via the support ticket system. You may download direct from my site. Feedback is strongly encouraged, criticism is welcome. Download HERE!!! 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 11, 2009 Author Share Posted December 11, 2009 Forgive me but, Does this mean if I install this it will allow me to have configurable options on the order form for the space and bandwidth so users can choose how much they exactly want? Is it possible to make the other addons via configurable options also instead of product addons so they could choose exactly how much they want with drop down box? (Sorry if these a dumb questions just didnt fully understand ) Cheers Yes, if you set a configurable option for Addon Disk Space and Addon Bandwidth for a hosting product, the system will automatically add the bandwidth and disk space to the account after it is created. As for the other options, currently they are only support as Product Addons, not Configurable Options. The way it is configured at Lithium Hosting is each hosting account has 2 configurable options and its the same for each account. Addon Disk Space and Addon Bandwidth. We charge per 1000MB for Disk Space and 10000MB for Bandwidth. This means the customer enters a "2" on the order form for 2000 MB extra or 20000MB extra. The Auto Addons plugin then adds that 2000 or 20000 to the plan default and connects to WHM to apply the change. *Note: Disk Space (Quota) modification is only supported by cPanel 11.25. 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted December 11, 2009 Share Posted December 11, 2009 Yes, if you set a configurable option for Addon Disk Space and Addon Bandwidth for a hosting product, the system will automatically add the bandwidth and disk space to the account after it is created. As for the other options, currently they are only support as Product Addons, not Configurable Options. The way it is configured at Lithium Hosting is each hosting account has 2 configurable options and its the same for each account. Addon Disk Space and Addon Bandwidth. We charge per 1000MB for Disk Space and 10000MB for Bandwidth. This means the customer enters a "2" on the order form for 2000 MB extra or 20000MB extra. The Auto Addons plugin then adds that 2000 or 20000 to the plan default and connects to WHM to apply the change. *Note: Disk Space (Quota) modification is only supported by cPanel 11.25. Cheers for the info tsiedsma For some reason my post was deleted or i cant see it, I'll be trying this module soon Looks good 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 11, 2009 Author Share Posted December 11, 2009 Yeah, thats weird. Just be sure to post your server info so I can keep track of compatible configurations. 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted December 11, 2009 Share Posted December 11, 2009 Yeah, thats weird. Just be sure to post your server info so I can keep track of compatible configurations. Will do, need to update cpanel 1st Currently on 11.24.x - stable 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 11, 2009 Author Share Posted December 11, 2009 Will do, need to update cpanel 1st Currently on 11.24.x - stable All features will work with your current version with the exception of Quota Modification. I don't have a cPanel 11.25 server to test on, so I would really like to know if the quota modification works. It's a very simple command so it won't hurt anything if it doesn't work. 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted December 11, 2009 Share Posted December 11, 2009 All features will work with your current version with the exception of Quota Modification. I don't have a cPanel 11.25 server to test on, so I would really like to know if the quota modification works. It's a very simple command so it won't hurt anything if it doesn't work. The quota modifucation is the bit that really intrests me in this mod as i can allow my customers to select how much they want then, Would you be adding support for 11.24.x anytime soon? or is it using a comand only added in 11.25 ? Cheers8) 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 11, 2009 Author Share Posted December 11, 2009 The quota modifucation is the bit that really intrests me in this mod as i can allow my customers to select how much they want then, Would you be adding support for 11.24.x anytime soon? or is it using a comand only added in 11.25 ? Cheers8) Unfortunately it is a limitation of the cPanel API. Its a new feature in 11.25 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted December 11, 2009 Share Posted December 11, 2009 Unfortunately it is a limitation of the cPanel API. Its a new feature in 11.25 No problem! When i get a chance i'll upgrade our cpanel and give your mod a test Cheers 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 15, 2009 Share Posted December 15, 2009 Cool idea. Does it automatically provision Dedicated IPs? This is one thing we could use 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 15, 2009 Author Share Posted December 15, 2009 Cool idea. Does it automatically provision Dedicated IPs? This is one thing we could use This is a planned feature. I am going to make it work off the IP Manager addon that is included with WHMCS. A client purchases an Addon domain, Auto Addons sends request to cPanel and receives the IP address back. Then the Hosting Product is updated in WHMCS to include the new IP Address. The IP Manager is updated so the IP address now shows the website bound to it. At the same time, I'd like to tie into the action hooks to delete domains from the ip manager after they've been canceled. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 16, 2009 Share Posted December 16, 2009 This is a planned feature. I am going to make it work off the IP Manager addon that is included with WHMCS. A client purchases an Addon domain, Auto Addons sends request to cPanel and receives the IP address back. Then the Hosting Product is updated in WHMCS to include the new IP Address. The IP Manager is updated so the IP address now shows the website bound to it. At the same time, I'd like to tie into the action hooks to delete domains from the ip manager after they've been canceled. Okay, but how would WHMCS know that a product addon is meant to be a "Dedicated IP" addon? 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 16, 2009 Author Share Posted December 16, 2009 Okay, but how would WHMCS know that a product addon is meant to be a "Dedicated IP" addon? Note, this is a cPanel 11.25 option only. I'm working on it and will have it ready to go by the time cPanel Release gets upgraded to 11.25. It will work the same way as the other addons. In the configuration you specify which addon is for dedicated ips. It will then send a request to the server to get a list of IP Addresses: https://example.com:2087/xml-api/listips. It will parse the list and utilize the first available IP address that is not the system IP or used by another domain. Then it will utilize the https://example.com:2087/xml-api/setsiteip function to set the IP address for the domain. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 16, 2009 Share Posted December 16, 2009 Note, this is a cPanel 11.25 option only. I'm working on it and will have it ready to go by the time cPanel Release gets upgraded to 11.25. It will work the same way as the other addons. In the configuration you specify which addon is for dedicated ips. It will then send a request to the server to get a list of IP Addresses: https://example.com:2087/xml-api/listips. It will parse the list and utilize the first available IP address that is not the system IP or used by another domain. Then it will utilize the https://example.com:2087/xml-api/setsiteip function to set the IP address for the domain. That is a quite cool idea. I cannot wait for cPanel 11.25 to go to the Release branch (I am using CURRENT without issues). 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 16, 2009 Author Share Posted December 16, 2009 That is a quite cool idea. I cannot wait for cPanel 11.25 to go to the Release branch (I am using CURRENT without issues). I've released version 1.0.1 with support for automatic Dedicated IP Provisioning. I need someone to test this and report any and all errors or issues. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 16, 2009 Share Posted December 16, 2009 I would be interested in help with this I assume I can just download this from your site? 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 16, 2009 Author Share Posted December 16, 2009 I would be interested in help with this I assume I can just download this from your site? Yes of course. The new version is there for download! 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 16, 2009 Share Posted December 16, 2009 Hi, I just downloaded the addon from your site and noticed it is IonCube-encoded. Why do people do this with free addons seriously? It's extra work for everyone involved, and if you disappear, people may be left high and dry. I could understand if it was a commercial addon and/or had something proprietary in there, but I doubt either is the case here. Besides, IonCube protection is already broken and the files can easily be decoded. It's too bad. I was kinda looking forward to looking at the code and giving some tips/hints. 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 16, 2009 Author Share Posted December 16, 2009 Hi, I just downloaded the addon from your site and noticed it is IonCube-encoded. Why do people do this with free addons seriously? It's extra work for everyone involved, and if you disappear, people may be left high and dry. Besides, IonCube protection is broken and the files can easily be decoded. It's too bad. I was kinda looking forward to looking at the code and giving some tips/hints. I made these addons for my site and decided to share them with the world. I encoded the files because they are mine. I spent the time developing the code to make these addons work. I'm not charging anything for the addons and it helps make supporting them easier. I don't have to worry about people mucking with the code and then complaining because it doesn't work. If you want to use the addon, then use it. If you want to decode them, be my guest. If you need features added or bugs fixed, let me know. Keep your "encoding" comments to yourself. If you want to create your own plugins / addons / modules and release them un-encoded, then fine. Let everyone else do what they want to do. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 16, 2009 Share Posted December 16, 2009 I made these addons for my site and decided to share them with the world.I encoded the files because they are mine. I spent the time developing the code to make these addons work. I'm not charging anything for the addons and it helps make supporting them easier. I don't have to worry about people mucking with the code and then complaining because it doesn't work. If you want to use the addon, then use it. If you want to decode them, be my guest. If you need features added or bugs fixed, let me know. Keep your "encoding" comments to yourself. If you want to create your own plugins / addons / modules and release them un-encoded, then fine. Let everyone else do what they want to do. Nobody is telling you what to do. I was just asking a valid question. I am sorry that you were offended by it. In my experience, anyone who is willing to muck around with code is also willing to solve their own issues or report existing problems. Take my Free Trials addon for example... a user was modding it and found a big mistake that I introduced yesterday. I corrected it and re-uploaded. Everyone wins Regardless, I am glad you have made an addon that does what many people have wanted for some time. I had considered a Dedicated IP addon that worked automatically, but now I do not need to, thanks to you Quick question: does it handle setting a Dedicated IP on upgrades, or just new hosting account orders? 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 16, 2009 Author Share Posted December 16, 2009 Nobody is telling you what to do. I was just asking a valid question. I am sorry that you were offended by it. In my experience, anyone who is willing to muck around with code is also willing to solve their own issues or report existing problems. Take my Free Trials addon for example... a user was modding it and found a big mistake that I introduced yesterday. I corrected it and re-uploaded. Everyone wins Regardless, I am glad you have made an addon that does what many people have wanted for some time. I had considered a Dedicated IP addon that worked automatically, but now I do not need to, thanks to you Quick question: does it handle setting a Dedicated IP on upgrades, or just new hosting account orders? Hey man, no hard feelings and I wasn't offended. Its just frustrating when I see threads about people releasing addons that other people are excited about and then someone comes in and says "Why isn't this open source!!!" Anyways, after I get things working the way I want them and rewrite some code, I'll consider an open source option. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted December 17, 2009 Share Posted December 17, 2009 Hey man, no hard feelings and I wasn't offended. Its just frustrating when I see threads about people releasing addons that other people are excited about and then someone comes in and says "Why isn't this open source!!!" Anyways, after I get things working the way I want them and rewrite some code, I'll consider an open source option. Not a problem. My offer of a free code review still stands Although, after some mistakes I've made recently, I don't recommend taking me up on it lol 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 17, 2009 Author Share Posted December 17, 2009 Not a problem. My offer of a free code review still stands Although, after some mistakes I've made recently, I don't recommend taking me up on it lol LOL, I appreciate the offer. Let me know if / when you've had a chance to test this on cPanel 11.25. 0 Quote Link to comment Share on other sites More sharing options...
equipc Posted December 17, 2009 Share Posted December 17, 2009 I'm very interesting in this addon. Any chance to have / buy an unencoded version ? 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 17, 2009 Author Share Posted December 17, 2009 Quick question: does it handle setting a Dedicated IP on upgrades, or just new hosting account orders? This does new orders and upgrades. I'm very interesting in this addon. Any chance to have / buy an unencoded version ? Yes, this will be an option. I want to keep it free but will likely sell the source. Download it and give it a try. Let me know what you think and sometime soon this option will be available. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.