Jump to content

Config Panel Code

Recommended Posts

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,



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated