Hye all,
I would like to know how i can put my own logo/picture on red area as image below:

I already read line by line coding from index.php, main.php & config.php inside gallery2 folder but still cant find where exactly that code. That area i want to put our event logo/related sponsorship with our gallery. I would like to put there because i want to standardize that footer area with our image/logo size 80 x 15 px.
Thanxs
Posts: 28
After do a searching here i found this:
Change header and footer
http://gallery.menalto.com/node/70021
And related topic to here:
http://codex.gallery2.org/Gallery2:How_to_visually_embed_Gallery_in_your_own_website_by_editing_theme_templates
So i open up my theme.pl (gallery2\themes\matrix\templates\theme.pl) then i suspected here supposed to be:
<div id="gsFooter"> {g->logoButton type="validation"} {g->logoButton type="gallery2"} {g->logoButton type="gallery2-version"} {g->logoButton type="donate"} </div>So i try to put :
<div id="gsFooter"> {g->logoButton type="validation"} {g->logoButton type="gallery2"} {g->logoButton type="gallery2-version"} {g->logoButton type="donate"} <IMG SRC="images/sponsor.png"> </div>But nothing happen, i think my code is wrong, can someone help me?
Thanxs
Posts: 22879
Could be a cache issue:
FAQ: How can I clear cached data?
or your image is not in the right direcotry; use the full url to the image.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 28
.::[x]:
Hye again floridave,
Nice to read your reply again. Thanxs a lot for your advice. Yes! u right i have to clear cached data. Everyday when i found something new about this Gallery 2, it's really make me to salute this Gallery 2 developer team. I never found any web base system that got their own cached data on their system not on our PC/machine. Really unique for programming. Thanxs again for your answer. I just discover theme.tpl got 2 file with a same name but on different location. First try i do on gallery2\themes\matrix\templates\theme.tpl then i clear that cached Gallery Site Administration but nothing happen. Then i try another theme.tpl on gallery2\themes\matrix\templates\local\theme.tpl , clear that cached now it works. So if you dont mind can you explain what a different that theme.tpl? Already search via search engine and this forum seems like nobody discuss on it. Thanxs
Posts: 22879
@local: Gallery will look for version of template files in the local directory. Reason: if you upgrade you overwrite all files and you customizations will be lost during the upgrade. At the top of the template files it has a link to explain how it all works.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 28
.::[x]:
Thanxs for ur explanation bro, really appreciate it.
Posts: 1
I have tried this every which way I can think but here is the code that I have entered below:
Is that right? I cannot get it to appear and I have cleaned out my cache like 5 times.
Posts: 22879
I see your button @ http://kustererartworks.com/main.php
So it seems it works
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1
@ Laney!! And???
Posts: 71
I certainly don't claim to know what I am doing, but I was able to replace header and footer with this. Please feel free to comment on mistakes that need correcting. This was done with the CARBON Theme by the way.
(The following is miss-posted previously to Gallery 1; since this is a Gallery 2 change and for 2.3 in my own situation, I hope this is an appropriate place for it)
In this example a modified theme.tpl file is created for the theme CARBON. It was placed in the directory /themes/carbon/templates/local/theme.tpl It is modified to link to a different header logo as well as a different footer logo. In this case the footer GIF was replaced by a HELP gif and clicking on the HELP gif will link to movie URL that shows how to use the site. In the center of the footer is the copyright info.
{* * $Revision: 17592 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="{g->language}" xmlns="http://www.w3.org/1999/xhtml"> <head> {* Let Gallery print out anything it wants to put into the <head> element *} {g->head} {if $theme.pageType == 'album' || $theme.pageType == 'photo'} <meta name="keywords" content="{$theme.item.keywords}" /> <meta name="description" content="{$theme.item.description|markup:strip}" /> {/if} {if $theme.pageType != 'admin'} <script type="text/javascript" src="{g->url href='themes/carbon/theme.js'}"></script> {/if} {* If Gallery doesn't provide a header, we use the album/photo title (or filename) *} {if empty($head.title)} <title>{$theme.item.title|default:$theme.item.pathComponent|markup:strip}</title> {/if} {* Include this theme's style sheet *} <link rel="stylesheet" type="text/css" href="{g->theme url="theme.css"}"/> </head> <body class="gallery"> {if !empty($jsWarning)} {include file="gallery:modules/core/templates/JavaScriptWarning.tpl" l10Domain="modules_core"} {/if} <div {g->mainDivAttributes}> {* * Some module views (eg slideshow) want the full screen. So for those, we don't draw * a header, footer, navbar, etc. Those views are responsible for drawing everything. *} {if $theme.useFullScreen} {include file="gallery:`$theme.moduleTemplate`" l10Domain=$theme.moduleL10Domain} {elseif $theme.pageType == 'progressbar'} <div id="gsHeader"> {if !empty($theme.params.logoImageLocation)} <img src="{g->url href=$theme.params.logoImageLocation}" alt=""/> {else} <img src="{g->url href="themes/carbon/images/NEWLogo.jpg"}" width="500" height="100" alt=""/> {/if} </div> {g->theme include="progressbar.tpl"} {else} <div id="gsHeader"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top" width="50%"> <a href="http://YOURDOMAIN.com"> {if !empty($theme.params.logoImageLocation)} <img src="{g->url href=$theme.params.logoImageLocation}" alt=""/> {else} <img src="{g->url href="themes/carbon/images/NEWLogo.jpg"}" width="500" height="100" alt=""/> {/if} </a> </td> <td align="right" valign="top"> {g->theme include="ads.tpl"} </td> </tr> </table> </div> <div id="gsNavBar" class="gcBorder1"> <div class="gbSystemLinks"> {if !empty($theme.params.extraLink) && !empty($theme.params.extraLinkUrl)} <span class="block-core-SystemLink"> <a href="{$theme.params.extraLinkUrl}">{$theme.params.extraLink}</a> </span> « {/if} {g->block type="core.SystemLinks" order="core.SiteAdmin core.YourAccount core.Login core.Logout" separator="«" othersAt=4} {if $theme.pageType != 'admin'} <span class="block-core-SystemLink"> <a href="{g->url params=$theme.pageUrl arg1="jsWarning=true"}" onclick="toggleSidebar('sidebar'); return false;">{g->text text="Sidebar"}</a> </span> {/if} </div> <div class="gbBreadCrumb"> {g->block type="core.BreadCrumb" separator="»"} </div> </div> {* Include the appropriate content type for the page we want to draw. *} {if $theme.pageType == 'album'} {g->theme include="album.tpl"} {elseif $theme.pageType == 'photo'} {g->theme include="photo.tpl"} {elseif $theme.pageType == 'admin'} {g->theme include="admin.tpl"} {elseif $theme.pageType == 'module'} {g->theme include="module.tpl"} {/if} <div id="gsFooter" class="gcBorder1"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="left" width="33%"> <a href="http://YOURDOMAIN.COM/YOUR-NEW-HELPFILE" target="_BLANK"> <img src="{g->url href="themes/carbon/images/NEWhelp.gif"}" width="80" height="15" alt="Help"/> </td> <td align="center"> All images ©2007 John and Jane Dough </td> <td align="right"> {strip} {if !empty($theme.params.copyright)} {$theme.params.copyright} {/if} {/strip} {g->block type="core.GuestPreview"} </td> </tr> </table> </div> {/if} {* end of full screen check *} </div> {* * Give Gallery a chance to output any cleanup code, like javascript that needs to be run * at the end of the <body> tag. If you take this out, some code won't work properly. *} {g->trailer} {* Put any debugging output here, if debugging is enabled *} {g->debug} </body> </html>Don't forget after you FTP this file to the local sub-directory of the template you are using that you
need to first FTP the file, then you need to log into your site admin ID, go to Site Admin functions, go to Maintenance, then RUN the clear template cache. Only after that can you see on your site the results of editing and replacing this file. You can always disable the template cache while you are working if that is the shortest debugging route for you. Good luck!