Business Hosting Online Posted October 16, 2009 Share Posted October 16, 2009 I am currently using this piece of code in my header.tpl file {if $pagetitle eq 'Domain Checker'} {include file="/xxxxx/header_domain.tpl"} {else} This works fine if the language is english if its norwegian for example the IF command fails. I require something like {if $variable eq 'domainchecker.php'} {include file="/xxxxx/header_domain.tpl"} {else} Is there a way I can use something like {if $systemurl} 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 16, 2009 Share Posted October 16, 2009 {if $SCRIPT_NAME|substr:-18 == '/domainchecker.php'} 0 Quote Link to comment Share on other sites More sharing options...
Business Hosting Online Posted October 16, 2009 Author Share Posted October 16, 2009 thank you, worked perfectly. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 16, 2009 WHMCS CEO Share Posted October 16, 2009 Can also use: {if $filename eq "domainchecker"}...{/if} Matt 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.