sanalreis Posted July 5, 2010 Share Posted July 5, 2010 Hello; I edited on whmcs tpl files. I want to use {$LANG.domaintitle} for multilanguage. But its error. {php} $homepage = "/main.php"; $currentpage = $_SERVER['REQUEST_URI']; if($homepage==$currentpage) { echo "<div> {$LANG.supportticketspagetitle} </div> "; } {/php} But this is working : {php} $homepage = "/main.php"; $currentpage = $_SERVER['REQUEST_URI']; if($homepage==$currentpage) { echo "<div> test text</div> "; } {/php} What can i do for this ? 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted July 5, 2010 Share Posted July 5, 2010 echo "<div> {$LANG.supportticketspagetitle} </div> "; you can not use Smartyvars inside of {php}. 0 Quote Link to comment Share on other sites More sharing options...
sanalreis Posted July 5, 2010 Author Share Posted July 5, 2010 Hello; What can i do for this action? I want that : this div must show only on main.php but i must use language files. Can you help me ? 0 Quote Link to comment Share on other sites More sharing options...
HostOrca Posted July 5, 2010 Share Posted July 5, 2010 Try this: {php} $homepage = "/main.php"; $currentpage = $_SERVER['REQUEST_URI']; if($homepage==$currentpage) { {/php} <div> {$LANG.supportticketspagetitle} </div> {php} } {/php} 0 Quote Link to comment Share on other sites More sharing options...
sanalreis Posted July 6, 2010 Author Share Posted July 6, 2010 Try this: {php} $homepage = "/main.php"; $currentpage = $_SERVER['REQUEST_URI']; if($homepage==$currentpage) { {/php} <div> {$LANG.supportticketspagetitle} </div> {php} } {/php} Hello; Thank you but i want to show this div on only main.php I can do this with ajax but i want to auto show on main.php 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted July 6, 2010 Share Posted July 6, 2010 i give up {if $filename == 'main'}<div>{$LANG.supportticketspagetitle} </div> {/if} 0 Quote Link to comment Share on other sites More sharing options...
sanalreis Posted July 6, 2010 Author Share Posted July 6, 2010 i give up {if $filename == 'main'}<div>{$LANG.supportticketspagetitle} </div> {/if} Hello; Thank you so much for your support. Our full multilanguage website is finishing with this code 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.