camellights Posted February 26, 2010 Share Posted February 26, 2010 I have found the setting to change the pdf logo, but i do not know how to add my logo to the "portal" pages? For instance if i have an image at: [url]http://www.my_url.com/images/logo.png[/url] Would i just open template.tpl and do this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset={$charset}" /> <title>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</title> {if $systemurl}<base href="{$systemurl}" />{/if} <link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" /> <script type="text/javascript" src="includes/jscript/jquery.js"></script> </head> <body> <div id="top_container"> <div id="top"> **********----------> <img src="http://www.my_url.com/images/logo.png"> <--------********** <div id="welcome_box">{if $loggedin}{$LANG.welcomeback}, <strong>{$clientsdetails.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> <div id="content_container"> {if $loggedin} <div id="top_menu"> <ul> <li><a href="clientarea.php" title="{$LANG.clientareanavhome}">{$LANG.clientareanavhome}</a></li> <li><a href="clientarea.php?action=details" title="{$LANG.clientareanavdetails}">{$LANG.clientareanavdetails}</a></li> <li><a href="clientarea.php?action=products" title="{$LANG.clientareanavservices}">{$LANG.clientareanavservices}</a></li> <li><a href="clientarea.php?action=domains" title="{$LANG.clientareanavdomains}">{$LANG.clientareanavdomains}</a></li> <li><a href="clientarea.php?action=invoices" title="{$LANG.invoices}">{$LANG.invoices}</a></li> <li><a href="supporttickets.php" title="{$LANG.clientareanavsupporttickets}">{$LANG.clientareanavsupporttickets}</a></li> <li><a href="affiliates.php" title="{$LANG.affiliatestitle}">{$LANG.affiliatestitle}</a></li> <li><a href="clientarea.php?action=emails" title="{$LANG.clientareaemails}">{$LANG.clientareaemails}</a></li> </ul> <div class="clear"></div> </div> {/if} <div id="content_left"> <h1>{$pagetitle}</h1> <p class="breadcrumb">{$breadcrumbnav}</p> Obviously just for the sake of pointing it out, i will not be including the dashes or asteriks' in the coding...lol But will that work? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted February 26, 2010 Share Posted February 26, 2010 Thats the correct line yes but replace what you have on that line there for this and upload your png image to whmcs/images directory. <div id="company_title" style="background-color:transparent;">{if "images/logo.png"|file_exists}<img src="images/logo.png" align="left" alt="" />{else}{$companyname}{/if}</div> 0 Quote Link to comment Share on other sites More sharing options...
camellights Posted February 26, 2010 Author Share Posted February 26, 2010 Cool, thank you very much for the verification. I do not know much about the smarty template system, so this is a bit of a learning curve for me...lol Thanks again 0 Quote Link to comment Share on other sites More sharing options...
edawebdesign Posted March 21, 2010 Share Posted March 21, 2010 I tried to edit my header.tpl using the code that Sparky posted, but my logo did not display, just the text of my company name. Any ideas on why this is happening? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 21, 2010 Share Posted March 21, 2010 that would mean that logo.png is not in your whmcs/images directory 0 Quote Link to comment Share on other sites More sharing options...
edawebdesign Posted March 21, 2010 Share Posted March 21, 2010 That would be the problem. I put logo.png in the portal theme images folder, thanks a bunch! 0 Quote Link to comment Share on other sites More sharing options...
WP Agent Hosting Posted March 22, 2010 Share Posted March 22, 2010 I really don't know what I'm doing and was trying to put my logo into the cart and assumed that's what portal meant. I tried following these instructions, but obviously didn't do it quite right. Apparently I got the right line, but not the correct command. Problem is...now it shows a command string and I don't know how to get it back to just the company name. Can someone tell me how to get it back to company name? And actually I was just more concerned with getting the colors to more closely match the colors of my website...so if this is something easy, can someone tell me how to do that. Oh...don't assume I'll know where to go put something...i need fairly explicit instructions. I do know how to edit something, just never sure exactly where to do it. Thanks for any help 0 Quote Link to comment Share on other sites More sharing options...
VehiCROS Posted October 29, 2010 Share Posted October 29, 2010 The code and solution appear correct, but I could not find either template.tpl or header. tpl So can some one tell me exactly where is the file to modify to add a header image? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 29, 2010 WHMCS Support Manager Share Posted October 29, 2010 It's in the /templates/*your active template*/ directory. 0 Quote Link to comment Share on other sites More sharing options...
coolwinhosting Posted February 20, 2011 Share Posted February 20, 2011 Just a note if you are using the 1 page AJAX order form in /order/ . Because this is a different directory, you will need to download the logo file to /order/images/logo.png or modify the code above to include an absolute path to the logo. 0 Quote Link to comment Share on other sites More sharing options...
yandoo Posted June 15, 2013 Share Posted June 15, 2013 This doesn't work for me? I can find the header.tpl. whmcs/templates/portal/header.tpl If I edited the header.tpl as above and upload my logo.png to either whmcs/images or whmcs/templates/portal/images. But it still doesn't show. I also tried using complete url: <div id="company_title" style="background-color:transparent;">{if "https://mywebsite.com/whmcs/templates/portal/images/logo.png"|file_exists}<img src="https://mywebsites.com/whmcs/templates/portal/images/logo.png" align="left" alt="" />{else}{$companyname}{/if}</div> Also tested the above in this directory: whmcs/templates/default/img. Still it doesn't show my logo. And can test when browsing for the url of the logo.png it is is there. Any ideas?? thanks 0 Quote Link to comment Share on other sites More sharing options...
striddy Posted June 16, 2013 Share Posted June 16, 2013 This doesn't work for me? The default location of your image is templates/*name of the template you are using*/img/ 0 Quote Link to comment Share on other sites More sharing options...
yandoo Posted June 16, 2013 Share Posted June 16, 2013 Thank you! Please note I edited: whmcs/templates/default/header.tpl adding the new logo.png to: whmcs/templates/default/img Thanks again 0 Quote Link to comment Share on other sites More sharing options...
ronshank Posted December 27, 2013 Share Posted December 27, 2013 Thats the correct line yes but replace what you have on that line there for this and upload your png image to whmcs/images directory. <div id="company_title" style="background-color:transparent;">{if "images/logo.png"|file_exists}<img src="images/logo.png" align="left" alt="" />{else}{$companyname}{/if}</div> Years past since you posted this... and it's still helpful! Take a bow. 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.