Jump to content

Portal template & License Key Manager problem


Scolpy

Recommended Posts

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 :)

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.

Guest
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