Jump to content

downunder

Member
  • Posts

    12
  • Joined

  • Last visited

About downunder

downunder's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Please post the solution for others!
  2. From WHMCS Staff, eg: $postfields["domain[0]"] = "domain.com"; $postfields["domain[1]"] = "domain1.com"; $postfields["domaintype[0]"] = "register"; $postfields["domain[1]"] = "register";
  3. From WHMCS Staff, eg: $postfields["domain[0]"] = "domain.com"; $postfields["domain[1]"] = "domain1.com"; $postfields["domaintype[0]"] = "register"; $postfields["domain[1]"] = "register"; etc etc,
  4. For the /cart.php?gid=renewalswrite something like this in domainrenewals.tpl {* Set 'cantrenew' for the domain if the .au domain cant be renewed *} <code> {php} $autlds = array("asn.au","com.au","edu.au","org.au","net.au","id.au"); $renewalArray = $this->_tpl_vars['renewals']; $renewalsCopy = $renewalArray; for ($i = 0; $i < count($renewalArray); $i++) { $sql = "SELECT * FROM tbldomains WHERE id=".$renewalArray[$i]['id']." AND userid='".$_SESSION['uid']."' AND DATEDIFF(expirydate, NOW()) >= 90 AND status='Active'"; $result = mysql_query($sql); while ($data = mysql_fetch_array($result)) { foreach ($autlds as $xx) { $audomain = strstr($data['domain'], $xx); if ($audomain) break; } if ($audomain){ // Can't renew this .au domain name $renewalsCopy[$i][cantrenew] = '1'; $this->append('renewals', $renewalsCopy,TRUE); } } } //echo '<PRE>'.print_r( $this->get_template_vars(renewals),1 ).'</PRE>'; {/php} </code> Then lower down in template: {if !$renewal.pastgraceperiod AND !$renewal.cantrenew} etc etc
  5. I have same problem for $additionaldomainfields, wondering how to set values for the drop downs!
  6. A bit late but... Just add additional fields, ie nameserverip, in includes/additionaldomainfields.php
  7. This doesn't seem to work, would be great if this was a setting in the configuration.php since its quite annoying having to delete those temp files EVERY time. Looks like u cant turn off caching during its display.
×
×
  • 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