nimonogi Posted August 29, 2009 Share Posted August 29, 2009 Hello again, I want to add some .tpl code in a .php file. .php file is in the whmcs directory and i have add in the top of the file (not sure if necessary): define("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); Now... if there any way to add .tpl code in this file? ex. {if $loggedin}... Thanks. 0 Quote Link to comment Share on other sites More sharing options...
atDev Posted August 29, 2009 Share Posted August 29, 2009 Hello, Do you mean use a custom .tpl file? Check here: http://wiki.whmcs.com/Creating_Pages If you notice, it has: # Define the template filename to be used without the .tpl extension $templatefile = "homepage"; 0 Quote Link to comment Share on other sites More sharing options...
nimonogi Posted August 29, 2009 Author Share Posted August 29, 2009 No, i do not want to use custom whmcs files in this case because of the added Quick Navigation menu etc. I would like to use some .tpl code provided by whmcs in an independent .php file. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 29, 2009 Share Posted August 29, 2009 You can add the whmcs custom page and not have the Quick Nav Menu show on that particular page~! 0 Quote Link to comment Share on other sites More sharing options...
nimonogi Posted August 29, 2009 Author Share Posted August 29, 2009 How i can do this? 0 Quote Link to comment Share on other sites More sharing options...
nimonogi Posted August 29, 2009 Author Share Posted August 29, 2009 I found a nice solution by BAJI26 here: http://forum.whmcs.com/showthread.php?p=110150 My concern is... if i add 4-5 pages not to show the quick navigation using this "if" method, is there a chance my pages to load slower? 0 Quote Link to comment Share on other sites More sharing options...
nimonogi Posted August 29, 2009 Author Share Posted August 29, 2009 I noticed that the menu maybe is not showing however i can't use the empty space. Am I missing something? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 29, 2009 Share Posted August 29, 2009 You can add: [color=red]{if $pagetitle == 'CustomPageTitle'}[/color] something here [color=red]{else}[/color]Side Nav [color=red]{/if}[/color] 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.