Jump to content

JGPVD

Member
  • Posts

    3
  • Joined

  • Last visited

About JGPVD

JGPVD's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. We updated the whmcs version to the newest one. Added only those changes (following examples from your website) hooks.php in registrars/modules/ourmodule/ <?php add_hook( 'DomainValidation', 1, function( $vars) { //some extra logging in here to be sure the hook was called $extraTemplateVariables = array(); // set a fixed value $extraTemplateVariables['fixedValue'] = 'abc'; // return array of template variables to define return $extraTemplateVariables; }; ?> ////////////////////////////// and added the first row to domainchecker.tpl <p>The fixed value is for domainchecker tpl: {$fixedValue}.</p> and to domainchecker-results.tpl <p>The fixed value is for domainchecker-results tpl: {$fixedValue}.</p> ///////////////////////// Setup -> General -> Security -> Allow Smarty PHP Tags is ON Result: We can see the hook was called each time when refreshing / and calling by ajax. But at the moment $fixedValue is empty either when refreshing the site and when checking is done by ajax Any suggestions are welcome. JG We would appreciate any suggestions.
  2. That is/was the plan. But please help with #1 JG
  3. Hello, For one kind of domain tld we need to add some custom Domain Validation checking on top / instead of standard WHMCS checking. We created a hook "DomainValidation" in which we can call a 3rd party and check if the domain is really available (even if it is not visible in whois/dns) and can throw an exception with custom error message which is being displayed on top of domainchecker page. But the problem is that the domain is still shown bellow as free and the customer can still order/pay for that. Is there any way to: #1 return the information from hook that domain is not available? #2 prevent domainchecker-result.tpl from display that domain / make domainchecker-result.tpl to respect extra Template Variables? (Allow Smarty PHP Tags is on but this template is being called before the hook or hook result array is not being passed) #3 place this custom domain check elsewhere to achieve simmilar efect (precent customer from buying not free domain)? We are developing a custom registrar module for one domain tld so might put additional checking in there. But it seems that during domain validation non of the Registrar Module funtions are being called, is that right? Than you in advance for your help. JG
×
×
  • 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