Company logos

Tagged:  

Can anyone kindly help direct me on where to look if I want to change the size of the company logo? When updated the system automatically re-sizes it to 50px in width (keeping proportions). How can I change that?

1) change the configuration options (but these are system wide)
2) change the specific code

https://github.com/phpfreak/Project-Pier/blob/master/application/controllers/CompanyContro...

lines 407 and 408

$max_width = config_option('max_logo_width', 50);
$max_height = config_option('max_logo_height', 50);

Is there a way to increase the size of the image associated with a project?

Hi

What do you really want to achieve? Resize the logo or embed pictures into the project description? You can have any number of (auto-resizing) pictures in the project description. I have attached a sample of images in the Wiki but the same is possible in the project description.

AttachmentSize
3182-example.png 111.27 KB

Sorry, I meant re-sizing the project logo...

Adding images in the description is a nice feature but it looks like it can only be done through the !img url! tag, I like the project logo feature because it's more user friendly :)

EDIT: I tried editing the ProjectController.class.php file at lines 892 and 893 - doesn't seem to be working even if I increase to 200.

$max_width = config_option('max_logo_width', 200);
$max_height = config_option('max_logo_height', 200);

Tested it by deleting a project's current logo and re-uploading, still shows up 50x50

Ok

Modifying the code won't help if there exists such an option in the config_options table. The 50 in the code is the value to use when the option is not present in the table. Simply change the option in the table (you can't from the user interface as it is considered a system option).

Worked like a charm. Now I just need to float the project description to the right of the image (or just to the right of the whole "box" it is in) - do you know which stylesheet I could accomplish this in? I see the div class consists of "header" and "content". Thank you so much for your help!

<div class="icon"><img src="/projectpier/pp088/public/files/711af4f25b8841c7ce741315002cdb5d92f5d0c9.png" alt="1423 Peacock Haven" /></div>
<div class="block hint">
<div class="header">1423 Peacock Haven</div>
<div class="content"> <p>Timberwood Park<br />
FloorPlan A<br />
Rinaldi Residents</p>

Try public/assets/themes/.../stylesheets/general/rewrites.css or construction.css