Scolpy Posted October 19, 2009 Share Posted October 19, 2009 Hello! I bought License Key Manager from WHMCS add-ons section and I saw that in portal template the product details(such as Valid IP, Valid Domains and etc - as you can see there, in client area -> product details). in "clientareaproductdetails.tpl" there is condition that check if that normal hosting product or product integrate license code(by importing the info from the database). this section: {php} $serviceid = $this->_tpl_vars['id']; $result = full_query("SELECT mod_licensing.licensekey,mod_licensing.validdomain,mod_licensing.validip,mod_licensing.validdirectory,mod_licensing.status,tblproducts.configoption3 FROM tblhosting,tblproducts,mod_licensing WHERE tblhosting.packageid=tblproducts.id AND tblhosting.id=mod_licensing.serviceid AND tblproducts.servertype='licensing' AND tblhosting.id='$serviceid'"); $data = mysql_fetch_array($result); $licensekey = $data["licensekey"]; $validdomain = $data["validdomain"]; $validip = $data["validip"]; $validdirectory = $data["validdirectory"]; $status = $data["status"]; $allowreissues = $data["configoption3"]; if ($licensekey) { {/php} work great in default template and if I using in the same .tpl file in portal I see just normal hosting product(so probably that database import doesn't work). There is idea to resolve that problem? Thanks, Thanks Thanks! Yonatan 0 Quote Link to comment Share on other sites More sharing options...
boostplatform Posted October 23, 2009 Share Posted October 23, 2009 You need to modify more than just that on the template. There are quite a few lines of code besides that one. 0 Quote Link to comment Share on other sites More sharing options...
Scolpy Posted October 23, 2009 Author Share Posted October 23, 2009 You need to modify more than just that on the template. There are quite a few lines of code besides that one. Do you have any direction? thanks! 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.