change gallery logo

hagi

Joined: 2006-02-03
Posts: 3
Posted: Fri, 2006-02-03 13:39

hi
i've installed g2. running very well.
i will set a other grafic on top of the page, put i'cant find the path in php or include file.
i've change the file an give the new file the same name like the old one, but the are the size in the code.
can everyone say me how can i change the logo, or the look of the gallery, or in withch file i have to change the settings from the size.

thanks
hagi

Please fill out the following form and take a look at the linked pages. The more information you supply, the better we can help you. Please post issues about errors using Gallery 2 in the Troubleshooting Forum.
FAQ:
- How can I find a solution for my problem?
Visit http://codex.gallery2.org/index.php/Gallery2:How_Tos and take a look at the FAQ and other documentation pages
Also try your luck with the advanced search function of this website
- What information is required when asking for help in the forums?
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F
- You can copy and paste a lot of the required information from "Site Admin" -> "Maintenance" -> "System Information" if your G2 is up and running.


Gallery version (not just "2"): gallery2
PHP version (e.g. 4.3.11):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 4.0.11): mysql
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 1.0): firefox

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2006-02-03 15:44

Did you try to replace g2logo.gif, galleryLogo_sm.gif and galleryLogo_sm.png with your own logo ?

regards,
-------------------------
The Termite :-)

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Fri, 2006-02-03 19:05

search for those filenames in the files in gallery2/templates/ to find where you can replace the name with your own file if you like.

 
hagi

Joined: 2006-02-03
Posts: 3
Posted: Fri, 2006-02-03 23:05

thanks for your help
i did that but in the code are the dimensions.
<img src="http://www.erlenfest.ch/gallery2/images/galleryLogo_sm.gif" width="107" height="48" alt=""/>

and my logo is bigger!
so my logo looks not so good

i searching for the file that include that code

do you now witch file i have to edit?

thanks
hagi

 
hagi

Joined: 2006-02-03
Posts: 3
Posted: Fri, 2006-02-03 23:09

hello

I found it
is the \gallery2\themes\matrix\templates\theme.tpl file

cheers
hagi

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2006-02-03 23:10
hagi wrote:
thanks for your help
i did that but in the code are the dimensions.
<img src="http://www.erlenfest.ch/gallery2/images/galleryLogo_sm.gif" width="107" height="48" alt=""/>

and my logo is bigger!
so my logo looks not so good

i searching for the file that include that code

do you now witch file i have to edit?

thanks
hagi

This is in the theme directory, for example in the MATRIX theme it's located in the theme.tpl file on line 32

      <div id="gsHeader">
        <img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/>
      </div>

See you !

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2006-02-03 23:10

well ... too late then :)
-------------------------
The Termite :-)

 
MyWebsiteAdviser

Joined: 2007-04-12
Posts: 46
Posted: Sun, 2007-09-02 21:34

You can change gallery logo very easy.

Copy file .../gallery2/themes/" your theme name "/templates/theme.tpl to the "local" folder and edit that file there. Gallery will look for that file in the "local" folder first and use it if it exists.

I changed logo only in matrix theme.
From:
<div id="gsHeader">
<img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/>
</div>

To:
<div id="gsHeader" align="center">
<img src="{g->url href="images/MyWebsiteAdviser.gif"}" width="750" height="70" alt="www.MyWebsiteAdviser.com Logo"/>
</div>

You can also set a logo image as a link, for example:
<a href="http://www.MyWebsiteAdviser.com"><img src="{g->url href="images/MyWebsiteAdviser.gif"}" width="750" height="70" alt="www.MyWebsiteAdviser.com Logo"/></a>

See my example: http://www.mywebsiteadviser.com/create_free_photo_album/gallery_menalto_example/main.php

Repeat on other themes you want to change logo.
And ... don't forget to upload your logo image to the "images" folder (located in root folder of Gallery).

Alex Webs,
Create online photo album or add photo gallery to your website

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Tue, 2007-05-01 15:55

right click your logo and in properties should give you the correct size, or if in photoshop etc. click on resize photo and it'll give you the size of your logo. (under pixel)

change the numbers to fit your size
width="107" height="48" alt=""/

 
SkyBrigidRain

Joined: 2010-01-23
Posts: 28
Posted: Wed, 2010-01-27 00:57

I tried to change my gallery logo but it's not showing up.

I changed the gif but kept the name "gallerylogo_sm.gif" and uploaded it to the image directory in the gallery2 directory and then edited the size in the theme.tpl file.

This changed nothing. The old image still shows up. I'm using the matrix theme.

What did I do wrong?

 
SkyBrigidRain

Joined: 2010-01-23
Posts: 28
Posted: Wed, 2010-01-27 01:04

ok, now it shows up. I guess it needed to wait or something O.o but now it's all scrunched up. Even after I changed the sizes.

The properties says it was scaled to the original size O.o how do i fix that?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-01-27 06:28

http://codex.gallery2.org/Gallery2:How_to_Add_Custom_Banner_or_Remove_Gallery_Logo

Otherwise a link to your site would be helpful
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
SkyBrigidRain

Joined: 2010-01-23
Posts: 28
Posted: Thu, 2010-01-28 00:48

AH! That fixed it ^^ Thanks. I didn't need the link part so I just cut that off ^^

Thanks again for the help.

 
dubyte
dubyte's picture

Joined: 2010-06-12
Posts: 1
Posted: Sat, 2010-06-12 00:25

Hello, only to stay clear about the problem here.

To see your changes in the templates you need to go to the mantain link and erese the themes cache.
With this you will look your changes.

great regards.