Grizzlyware Josh Posted June 18, 2010 Share Posted June 18, 2010 WHMCS Devs (3rd Party), I don't know if you have the same issues I have, but when I'm making a GUI Config Panel for a module, it seems to take ages to add the HTML here, there etc etc... Then there's the PHP Code to validate & save the setting in the DB... I spent a fair few hours the other day trying to come up with a more suitable approach to this and what I come up with was... easy to use for Devs & Users. It just replicates the HTML for the settings pages, but it will grab all the settings from your modules configuration table, and then create HTML Inc a form element, descriptions etc. It formats it like you would manually. It uses a 3rd Field in the config table (option, value & type). In the type field you will have the params for the field, whether it is a Yes/No, Select box (Can state range to generate numbers eg 1-100%), Radio groups & text boxes. That's all I managed to write, but if there is a demand from other developers for this, then I will be happy to make it a bit more featured. It saved me 3 hours of coding a HTML form, when I had to keep going back to add new items, check the types/validation etc. With this, when I create a new setting during development, it will get added automatically. Giving you more time to concerntrate on the module! It might be useless to you, but I just want to know if there would be any call for something like this as I know there are hundreds of WHMCS Devs out there... Best Regards, Josh 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.