ajithp Posted October 15, 2015 Share Posted October 15, 2015 Hi , I'm new to whmcs development. Pardon me , if my question seems silly,and direct me to right path My question is : I've made a provisioning module in my dev license. I've added a sample client area function to it I'll paste it here function sqprovision_ClientArea($params) { 131 133 134 $code = '<form action="" method="post" target="_blank"> 135 <input type="hidden" name="user" value="'.$params["username"].'" /> 136 <input type="hidden" name="pass" value="'.$params["password"].'" /> 138 <input type="button" value="Login to Webmail" onClick="window.open(\'http://'.$serverip.'/webmail\')" /> 139 </form>'; 147 return $code; 148 149 } I've linked this to product with id=4 how would I render this in front end ? what will be its url ?? please help me out :: 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 15, 2015 Share Posted October 15, 2015 check this: https://github.com/WHMCS/sample-provisioning-module/blob/master/modules/servers/provisioningmodule/provisioningmodule.php search for "provisioningmodule_ClientArea" and read the description it will help you! 0 Quote Link to comment Share on other sites More sharing options...
ajithp Posted October 16, 2015 Author Share Posted October 16, 2015 Hi sentq, Thanks a lot for the reply. I've added those codes from git. It didn't worked out well. I tried to change my theme to default, then it worked fine. so it was problem, with custom theme , that was not properly build (Someone else did it ) Thanks for support Sentq 0 Quote Link to comment Share on other sites More sharing options...
ajithp Posted October 16, 2015 Author Share Posted October 16, 2015 I got one more doubt , how to render custom functions in provisioning module 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 16, 2015 Share Posted October 16, 2015 I got one more doubt , how to render custom functions in provisioning module Please check the sample provisioning module file, it has all examples in place with their description. both of your questions has examples in there. like the one I mentioned early. 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.