Jump to content

Add logo to "portal" page?


camellights

Recommended Posts

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?

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • 4 weeks later...

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

Link to comment
Share on other sites

  • 7 months later...
  • 3 months later...
  • 2 years later...

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

Link to comment
Share on other sites

  • 6 months later...
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. :-)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated