Add company logo? Add company logo?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Add company logo?

Started by Dragon41673, April 19, 2015, 05:57:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dragon41673

Just wondering if there is a setting I am not seeing, to upload a company logo to the Coppermine Gallery. I also looked at the plugins for the gallery, and there doesn't seem to be a logo one either.

Does anyone have any suggestions?

Thank you!
Owner - Aries Games & Miniatures

allvip

I think you have the eyeball theme.
Add your logo image to the images folder themes/eyeball/images.
Open themes/eyeball/template.html, find:


<h3 align="center">{GAL_NAME} - {GAL_DESCRIPTION}</h3>


and replace with:


<div id="logo">
  <img src="themes/eyeball/images/coppermine-logo.png" border="0" width="260" height="60" alt="" />
</div>
<h3 align="center">{GAL_NAME} - {GAL_DESCRIPTION}</h3>


OR replace with to look like in the logo2 attachamnet:


<div id="logo" style="float: left;">
  <img src="themes/eyeball/images/coppermine-logo.png" border="0" width="260" height="60" alt="" />
</div>
<h3 align="center">{GAL_NAME} - {GAL_DESCRIPTION}</h3>
<div style="clear:both"></div>


Replace in the code above coppermine-logo.png with the name of your logo image.

allvip

You have to say exactly what theme your using and add say where you want it or add attachment with the look you want.
If you use a custom theme, then post your gallery link.

gmc

Even better - MAKE A COPY of the theme (entire folder) - call it the name of the company as an example - and make changes there.
Then make the changes.

Then nothing will be overlaid with future upgrades - as the eyeball theme is part of the core distribution.

For a simple example - visit these links:
http://www.skymasters.org/gallery                               <- customized theme
http://www.skymasters.org/gallery/?theme=curve          <- default theme
http://www.skymasters.org/gallery/?theme=skymasters <- reset back
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Dragon41673

Awesome! Thank you both...

And yes...I'm currently using the eyball theme. Sorry, I didn't think to offer that info.
Owner - Aries Games & Miniatures

allvip

Quote from: gmc on April 19, 2015, 08:06:05 PM
Even better - MAKE A COPY of the theme (entire folder) - call it the name of the company as an example - and make changes there.
Then make the changes.

Then nothing will be overlaid with future upgrades - as the eyeball theme is part of the core distribution.

For a simple example - visit these links:
http://www.skymasters.org/gallery                               <- customized theme
http://www.skymasters.org/gallery/?theme=curve          <- default theme
http://www.skymasters.org/gallery/?theme=skymasters <- reset back

If he renames the folder he will have to replace in template.html and theme.php all the eyeball words with the new name of his theme (folder).

gmc

Quote from: allvip on April 19, 2015, 08:16:18 PM
If he renames the folder he will have to replace in template.html and theme.php all the eyeball words with the new name of his theme (folder).
Yes... should have been clearer... You do need to mass change 'eyeball' to 'companyname' (or whatever theme name you choose) across the theme folder...

Things will work without doing so - as the references to eyeball still exist - but it gets confusing - and will break eventually...
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Dragon41673

LOL I was actually going to ask that...thank you allvip!

As a side note, I've attached a cropped image of my new logo-fied gallery. How can I move the logo down a little bit so it will not have some lettering over it such as the "home" link?

Sorry if it's an obvious solution to you guys...I'm still pretty new at this.

Thank you!
Owner - Aries Games & Miniatures

allvip

Replace <div id="logo"> from the code with <div id="logo" style="padding-top:10px;"> or <div id="logo" style="padding:10px;"> to have space all around.

If you used the second code then replace <div id="logo" style="float: left;"> with <div id="logo" style="float: left;padding-top:10px;">

Change 10 with the value that fits for you.

Let me know if it worked for you.

Dragon41673

I went with the 1st option to try it...and it worked well, so I will stick with that change for now.

I added the line you just gave me for top only...and it's worked pefectly!

Thank you very much guys!
Owner - Aries Games & Miniatures

ΑndrĂ©