vmops Posted April 9, 2010 Share Posted April 9, 2010 I created a custom module by following instructions from the Module Dev Kit. Essentially, I created my module "modulename" and put it as follows modules/servers/modulename/modulename.php Question is I do not see this new "modulename" in the dropdown for list of modules. What am I missing? If there another config/property that I need to modify elsewhere? 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted April 10, 2010 Share Posted April 10, 2010 Are you using the sample server mod code or the addon mod code ? There is a difference. 0 Quote Link to comment Share on other sites More sharing options...
vmops Posted April 10, 2010 Author Share Posted April 10, 2010 The sample server mod code 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted April 10, 2010 Share Posted April 10, 2010 well unless you post your code no one can tell what you did wrong or missed. If you don't want to have it public you can make a support ticket and have Matt look and help you out. 0 Quote Link to comment Share on other sites More sharing options...
vmops Posted April 12, 2010 Author Share Posted April 12, 2010 Here is what I have done so far: 1. create a new directory "vmops" under "/var/www/whmcs/modules/servers/" with 755 perms 2. cp the example template.php into the above folder. rename it to vmops.php and replace all instances of "template_" with "vmops_" in this file In the above, template.php is what comes in the zip file that you can get here: http://www.whmcs.com/members/dl.php?type=d&id=14 I guess my question is more related to missing information. Question being, once I do what I have done in steps 1 and 2, is there a documented way of testing the new module? Note: I have not yet gone as far as putting actual code where it says "# Code to perform action goes here..." in the sample file Should I expect a new module "vmops" to show up in the list of values for modules? I am not trying to build the module myself and not a PHP expert. I am just looking into establishing a basic handshake between WHMCS and an external system as a POC. Help much appreciated. If you still need the actual code of vmops.php to help answer, please let me know. Thanks a lot! 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.