Files referenced/modified
- administrator/templates/rt_missioncontrol/css/core.css
- 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?