0
Welcome Guest! Login
0 items Join Now

Enlarging the logo area

    • J!eremy's Avatar
    • J!eremy
    • Elite Rocketeer
    • Posts: 2108
    • Thanks: 8

    Re: Enlarging the logo area

    Posted 12 years 1 month ago
    • Im really sorry, I completely forgot there is a logo uploader in the template.

      What I would do is just FTP the right sized logo up to administrator/images/missioncontrol-logo.png and that should take care of it for you.
    • Send moderators PMs ONLY if they request it.
      James' First Blog Post lol
      Top Tips for Support
      Be SPECIFIC when posting.
    • Crash & Burn's Avatar
    • Crash & Burn
    • Newbie
    • Posts: 16
    • Thanks: 0
    • Graphic & Web Designer

    Re: Enlarging the logo area

    Posted 12 years 1 month ago
    • Thanks ...that worked.
    • J!eremy's Avatar
    • J!eremy
    • Elite Rocketeer
    • Posts: 2108
    • Thanks: 8

    Re: Enlarging the logo area

    Posted 12 years 1 month ago
    • Jeff S's Avatar
    • Jeff S
    • Sr. Rocketeer
    • Posts: 136
    • Thanks: 8
    • MAD Media Production

    Re: Enlarging the logo area

    Posted 12 years 1 month ago
    • Files referenced/modified
      1. administrator/templates/rt_missioncontrol/css/core.css
      2. administrator/templates/rt_missioncontrol/ajax-models/logoupload.php

      You can also set different sizes for you logo on the login page, and backend page:

      for the login page, edit core.css line 53: as follows:
      #mc-login #mc-logo h1{float:none}#mc-login #mc-logo img{margin:0 auto;float:none;width:300px;height:150px;}

      and for the backend page, edit core.css line 43: as follows:
      #mc-logo{padding:10px 0;overflow:hidden}#mc-logo img{margin:0;float:left;width:200px; height:100px;}

      where width:XXXpx = the width you want, and height:XXXpx = the height you want

      this will give you two different sized logos for the login page and backend page - now just to figure out how to stop the uploader from resizing the image on upload.

      login page logo positioning - change in core.css line 52:
      #mc-login #mc-logo {position: absolute;bottom: 10px;text-align: center;width: 100%;padding-top:30px;}

      I found in administrator/templates/rt_missioncontrol/ajax-models/logoupload.php lines 38-52 and changed the default image $height from 53px to 200px - this will set any image over 200px in height to a maximum 200px high - see code:
       
          //First check if the file has the right extension, we need jpg only
          if ( $size['mime'] == 'image/png' || 
               $size['mime'] == 'image/jpeg' ||
               $size['mime'] == 'image/gif' ) {
               
              if ($size[1] < 200) 
                  $height = $size[1];
              else
                  $height = 200;
       
             if ($size[1] > 200 || $size['mime'] != 'image/png') {
                  $rtimage = new RTImage();
                  $rtimage->smartImageResize($src,0,$height,IMAGETYPE_PNG);
                 
             }
       

      this works best with a 400px by 200px image - you do have to modify core.css to set the image sizes up to 400px by 200px I wanted a larger logo (300x150) for my login page, and a smaller one (200x100) for my back end page.

      I also modified the css for the iframe class for uploading the logo in mission control, resizing it to show the full 400x200 logo without scroll bars.

      edit core.css line 142:
      iframe.mc-logoupload{border:0;width:600px;height:285px}

      Hope this helps out for anyone who wants to have different sized logos for login and backend pages - no need to upload via FTP your logo - you can do it right through Mission Control config now.

      Maybe this could be incorporated into the next version of MC? Maybe even include parameters in the config to set login logo and backend logo dimensions?
    • Jeff
      Maximum-Aperture.ca
    • Houston's Avatar
    • Houston
    • Elite Rocketeer
    • Posts: 1077
    • Thanks: 2

    Re: Enlarging the logo area

    Posted 11 years 3 months ago
    • Having the Ability to size your logo for the login page and the admin page itself would be a great feature. Although the only people that see this is generally the client and people that are with the company they still seem to like to see their logo nice and big.
    • Houston Brown - www.splitlightdesigns.com
      Apache Version = 2.2.2 / PHP Version = 5.2.17 or 5.3.15 (dual)
      mySQL Version = 5.5.21
      Joomla Version = 2.5.8 / Web Servers OS Version = CentOS 6

Time to create page: 0.052 seconds