Results 1 to 3 of 3

Thread: Changing the logo size 5.5.0 Solved.

  1. #1
    alliancecomputers's Avatar
    alliancecomputers is offline Sugar Community Member
    Join Date
    Jun 2010
    Posts
    22

    Default Changing the logo size 5.5.0 Solved.

    I’ve been looking at lots of posts about this and not one of them has a real answer to the question. So here is it

    It's in the _companyLogo.tpl file.

    themes/default/tpls/_companyLogo.tpl

    Change this:
    <div id="companyLogo">
    <img src="{$COMPANY_LOGO_URL}" width="{$COMPANY_LOGO_WIDTH}" height="{$COMPANY_LOGO_HEIGHT}" alt="Company Logo" border="0"/>
    </div>

    To any size you what, Like so:
    <div id="companyLogo">
    <img src="{$COMPANY_LOGO_URL}" width="317px" height="117px"
    alt="Company Logo" border="0"/>
    </div>

    I don't think this is upgrade safe, and im not sure of all the consequences of this action BUT HAY, It works for me.

  2. #2
    m3suriya is offline Senior Member
    Join Date
    Jan 2010
    Location
    Chennai, INDIA
    Posts
    129

    Default Re: Changing the logo size 5.5.0 Solved.

    Hi

    Go to -> SugarCRM\include\MVC\View\SugarView.php
    Line # 300 change your sizes like blow
    PHP Code:
                if ( $width 246 || $height 50 ) {
                    
    $resizePctWidth  = ($width 246)/246;
                    
    $resizePctHeight = ($height 50)/50;
                    if ( 
    $resizePctWidth $resizePctHeight )
                        
    $resizeAmount $width 246;
                    else
                        
    $resizeAmount $height 50;
                    
    $ss->assign("COMPANY_LOGO_WIDTH"round($width * (1/$resizeAmount)));
                    
    $ss->assign("COMPANY_LOGO_HEIGHT"round($height * (1/$resizeAmount)));
                } 
    Regards & Thanks
    UDAY
    __________________
    WinXP / SugarCE v5.5 / Apache 2.2 / PHP 5.2.11 / MySQL 5.1.36

  3. #3
    kiatek is offline Junior Member
    Join Date
    Jul 2010
    Posts
    1

    Default Re: Changing the logo size 5.5.0 Solved.

    You can also create an upgrade safe solution.

    Copy the company logo template file from themes/default/tpls/_companyLogo.tpl to custom/themes/default/tpls/

    Then modify the template file as shown:
    <div id="companyLogo">
    <img src="{$COMPANY_LOGO_URL}" width="350" height="100"
    alt="Company Logo" border="0"/>
    </div>

    Obviously replace your width and height as need.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Logo Size
    By cs3gallery in forum Help
    Replies: 7
    Last Post: 2010-06-25, 07:29 AM
  2. Logo size
    By muscariello in forum Help
    Replies: 0
    Last Post: 2010-01-22, 08:55 AM
  3. Change in Logo size
    By biplob in forum Help
    Replies: 2
    Last Post: 2009-06-22, 08:34 AM
  4. Change Logo size
    By stheologo in forum Help
    Replies: 2
    Last Post: 2008-04-29, 07:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •