suprahost Posted October 27, 2007 Share Posted October 27, 2007 Is it possible to include some php line on templates (.tld) . I tried <? echo "test"; ?> but it does not work . Is there any way to include my custom php code on templates ? Thank you 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted October 27, 2007 Share Posted October 27, 2007 Is there any way to include my custom php code on templates ? Yes, place your code between {php} and {/php} tags. 0 Quote Link to comment Share on other sites More sharing options...
suprahost Posted October 30, 2007 Author Share Posted October 30, 2007 great thank you. But , how to show whmcs variables ? for example i am trying {php} echo $companyname; {/php} on the invoice page , but it returns nothing. Have I to load from mysql ? No other way ? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted October 30, 2007 Share Posted October 30, 2007 But , how to show whmcs variables ? You can use the variables in your templates like so: {$companyname} (the {php}{/php} tags are not necessary in that case). 0 Quote Link to comment Share on other sites More sharing options...
suprahost Posted October 30, 2007 Author Share Posted October 30, 2007 The problem is that I wish to use these inside php code. 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted October 30, 2007 Share Posted October 30, 2007 The problem is that I wish to use these inside php code. Hard to comment without seeing what you're doing, but how about using "code islands" to pop in and out of PHP as necessary? 0 Quote Link to comment Share on other sites More sharing options...
suprahost Posted October 30, 2007 Author Share Posted October 30, 2007 I wrote antifraud code and I wish to send this code via email togheter with some few information , (domain name , hosting plan and so on). The only way seems to be get the data from mysql . I will do in this way. 0 Quote Link to comment Share on other sites More sharing options...
arhost Posted October 30, 2007 Share Posted October 30, 2007 To show WHMCS variables add: {debug} to any one of the templates file and it will load up all the available WHMCS variables. 0 Quote Link to comment Share on other sites More sharing options...
suprahost Posted October 30, 2007 Author Share Posted October 30, 2007 exactly what I need thank you! 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.