benyoungenterprises Posted December 28, 2010 Share Posted December 28, 2010 Hi Guys, I've searched the net and I can not seem to get this damned thing working. I'm wanting to change the top of the client area where it normally has the company name....I want to put my custom .php header file in order to integrate my website with my whmcs theme..... I've tried adding multiple lines of code to the header.tpl file under templates but it still does nothing, the company name disappears and thats it. Could someone help me? Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
pbnet Posted December 29, 2010 Share Posted December 29, 2010 Got a link to see what you're trying? There should be no reason why you cant modify the header.tpl 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted December 29, 2010 Share Posted December 29, 2010 Please post your custom code to help us help you mate. Cheers, Rick 0 Quote Link to comment Share on other sites More sharing options...
benyoungenterprises Posted December 29, 2010 Author Share Posted December 29, 2010 Sorry guys, alright, so i've got the header.tpl file right (well at least the top half of the file.....) - unmolestered version.... <body> <div id="top_container"> <div id="top"> <div id="company_title">{$companyname}</div> <div id="welcome_box">{if $loggedin}{$LANG.welcomeback}, <strong>{$loggedinuser.firstname}</strong> <img src="templates/{$template}/images/icons/details.gif" alt="{$LANG.clientareanavdetails}" width="16" height="16" border="0" class="absmiddle" /> <a href="clientarea.php?action=details" title="{$LANG.clientareanavdetails}"><strong>{$LANG.clientareanavdetails}</strong></a> <img src="templates/{$template}/images/icons/logout.gif" alt="{$LANG.logouttitle}" width="16" height="16" border="0" class="absmiddle" /> <a href="logout.php" title="Logout"><strong>{$LANG.logouttitle}</strong></a>{else}{$LANG.please} <a href="clientarea.php" title="{$LANG.loginbutton}"><strong>{$LANG.loginbutton}</strong></a> {$LANG.or} <a href="register.php" title="{$LANG.clientregistertitle}"><strong>{$LANG.clientregistertitle}</strong></a>{/if}</div> </div> </div> my whmcs install is http://www.byehosting.com.au/ now i'm trying to pull http://www.byehosting.com.au/header.php into it somehow....so where I have the black bit at the top that says "Ben Young Enterprises" i want it to display the contents of the above header.php file... I was reading this forum: http://www.webhostingtalk.com/showthread.php?t=940480 and I tried putting the line of code: {include file="http://www.byehosting.com.au/header.php"} just inside the body tag but the only thing that happened was that the company name (Ben Young Enterprises) Disappeared....... I'm stuck on this one....I hope i'm making sense? Thanks 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 29, 2010 Share Posted December 29, 2010 http://www.smarty.net/docs/en/language.function.include.php.tpl The deprecation is only from smarty V3 + 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.