bytedisorder Posted August 12, 2012 Share Posted August 12, 2012 I have a few pages that are use the encoded domainchecker.php file, since I cant change the template file I want these pages to display different content based on the visitors url. <div class="textcenter"><h3>{if $href eq "https://www.bitronictech.net/buy-domains-bitcoin.php"}Domain Names from only 1 BTC a year!{else}{$LANG.domainuniques}{/if}</h3></div> <p>{$LANG.domaincheckerenterdomain}</p> I dont have the right code here, but how do I specify the url in the if statement correctly? 0 Quote Link to comment Share on other sites More sharing options...
bytedisorder Posted August 12, 2012 Author Share Posted August 12, 2012 Closer but still no cigar <div class="textcenter"><h3>{if $REQUEST_URI eq "buy-domains-bitcoin.php"}Domain Names from only 1 BTC a year!{else}{$LANG.domainuniques}{/if}</h3></div> <p>{$LANG.domaincheckerenterdomain}</p> 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted August 12, 2012 Share Posted August 12, 2012 The $filename variable contains the name of the file being accessed without .php, the following should work: {if $filename eq "buy-domains-bitcoin"} 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.