theman777 Posted December 31, 2019 Share Posted December 31, 2019 Hi, we upgraded to the newest WHMCS Version and that's why we had to change the template as well. Before we had this nice function, that we could disable the auto-renew button for specific TLD with this code in the clientareadomaindetails.tpl file. <div class="span4"> <div class="styled_title"><h2>{$LANG.domainsautorenew}</h2></div> {* Ausklammerung von .ch & .li Domains bei der automatischen Verlängerung! *} {if stristr($domain, '.ch') or stristr($domain, '.li') or stristr($domain, '.swiss') } <h5>Bei .ch und .li und .swiss Domains ist die Deaktivierung der Automatische Verlängerung nicht moeglich! Wenn Sie die Domain nicht mehr benoetigen, dann schreiben Sie ein Support-Ticket im Departement Kuendigung.</h5> {else} <p>{$LANG.domainrenewexp}</p> </div> <div class="span8 form-horizontal"> <form method="post" action="{$smarty.server.PHP_SELF}?action=domaindetails&tab=2"> <input type="hidden" name="id" value="{$domainid}" /> <fieldset> <div class="control-group"> <label for="n*" class="control-label">{$LANG.domainautorenewstatus}:</label> <div class="controls"> <input type="text" class="disabled" disabled="disabled" value="{if $autorenew}{$LANG.domainsautorenewenabled}{else}{$LANG.domainsautorenewdisabled}{/if}" /> </div> </div> {if $autorenew} <div class="control-group"> <label for="n*" class="control-label"> </label> <div class="controls"> <input type="hidden" name="autorenew" value="disable" /> <input type="submit" class="btn btn-danger" value="{$LANG.domainsautorenewdisable}" /> </div> </div> {else} <div class="control-group"> <label for="n*" class="control-label"> </label> <div class="controls"> <input type="hidden" name="autorenew" value="enable" /> <input type="submit" class="btn btn-success" value="{$LANG.domainsautorenewenable}" /> </div> </div> {/if} </fieldset> </form> {/if} Now we do not know how to implement that in our new template. clientareadomaindetails.tpl 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 31, 2019 Share Posted December 31, 2019 1 hour ago, theman777 said: Hi, we upgraded to the newest WHMCS Version and that's why we had to change the template as well. i'm assuming that you mean v7.8.3 ? 1 hour ago, theman777 said: Before we had this nice function, that we could disable the auto-renew button for specific TLD with this code in the clientareadomaindetails.tpl file. where is this button ? is it shown in the template, or do you mean the Auto Renew button in the sidebar ?? it would be useful to see a screenshot to know where you mean... if it's in the template, then it could be tweaked using Smarty (or possibly a hook)... if it's the sidebar, then it's a hook - though you could even change that with Smarty if you really really had to (you don't!). 0 Quote Link to comment Share on other sites More sharing options...
theman777 Posted December 31, 2019 Author Share Posted December 31, 2019 Yes i am talking about 7.8.3 clientarea.php?action=domaindetails&id=228#tabAutorenew 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 31, 2019 Share Posted December 31, 2019 the code in your attached file works fine - except that you forgot to include a closing {/if} at line 193... without that closing IF statement, it will cause an error and display a blank area; but with it, you should see it working. 1 Quote Link to comment Share on other sites More sharing options...
theman777 Posted December 31, 2019 Author Share Posted December 31, 2019 Thx, that was it, that we missed. Thanks a lot. 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.