Hello:
I installed gallery 2 and is working great. I then installed greypop and it looks even better.
http://codex.gallery2.org/Gallery2:Themes:greypop
what I want to do now is simply add my logo to the header of the gallery so it caries trought out all the gallery pages.
I read the faq but is not making sense to me. here is the code from the file that I am suppoused to edit.
also I want to add a go home link near the top of the gallery so my visitors can go back to the index of the main page.
{*
* $Revision: 1.1.1 $
* If you want to customize this file, do not edit it directly since future upgrades
* may overwrite it. Instead, copy it into a new directory called "local" and edit that
* version. Gallery will look for that file first and use it if it exists.
*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
{* Let Gallery print out anything it wants to put into the <head> element *}
{g->head}
{* 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"}"/>
<link rel="alternate" type="application/rss+xml" title="RSS" href="{g->url arg1="view=rss.SimpleRender" arg2="itemId=`$theme.item.id`"}" />
{if $theme.pageType == 'photo'}
<style type="text/css">
.floatlinksprev p a em {ldelim}
position:absolute;
right: 0px;
width:{$theme.navigator.back.thumbnail.width}px;
height:{$theme.navigator.back.thumbnail.height}px;
text-indent:-10000px;
{rdelim}
.floatlinksnext p a em {ldelim}
position:absolute;
right: 0px;
width:{$theme.navigator.next.thumbnail.width}px;
height:{$theme.navigator.next.thumbnail.height}px;
text-indent:-10000px;
{rdelim}
</style>
{/if}
{if $theme.pageType == 'album' && $theme.params.lightbox == 1}
{* Add prototype javascript library *}
<script type="text/javascript" src="{g->theme url="js/prototype.js"}"></script>
{* Add Lightbox javascript and CSS *}
<link rel="stylesheet" type="text/css" href="{g->theme url="lightbox.css"}"/>
<script type="text/javascript" src="{g->theme url="js/lightbox.js"}"></script>
<script type="text/javascript" src="{g->theme url="js/scriptaculous.js?load=effects"}"></script>
{/if}
</head>
<body class="gallery">
<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}
{else}
<div id="gsHeader">
<img src="{g->theme url="images/title.jpg"}" width="500" height="100" alt="{$theme.params.site}"/>
</div>
{if !empty ($theme.params.menu)}
<div id="gsMenu" class="gcBorder1">
<div class="gbSystemLinks">
{section name=menu loop=$theme.navItems}
<span class="block-core-SystemLink">
<a href="{$theme.navLinks[menu]}">{$theme.navItems[menu]}</a>
</span>
{/section}
</div>
</div>
{/if}
<div id="gsNavBar" class="gcBorder1">
<div class="gbSystemLinks">
{if $theme.item.parentId > 0}
{if ($theme.params.ss == "applet")}
{assign var="links" value=$theme.itemLinks}
{foreach from=$links item=link}
{if $link.params.view == "slideshowapplet.SlideshowApplet"}
<span class="block-core-SystemLink">
<a href="{g->url arg1="view=slideshowapplet.SlideshowApplet"
arg2="itemId=`$theme.item.id`"}"> {g->text text="Slideshow"} </a>
</span>
{/if}
{/foreach}
{/if}
{if ($theme.params.ss == "ss")}
{assign var="links" value=$theme.itemLinks}
{foreach from=$links item=link}
{if $link.params.view == "slideshow.Slideshow"}
<span class="block-core-SystemLink">
<a href="{g->url arg1="view=slideshow.Slideshow"
arg2="itemId=`$theme.item.id`"}"> {g->text text="Slideshow"} </a>
</span>
{/if}
{/foreach}
{/if}
{/if}
{g->block type="core.SystemLinks"
order="core.SiteAdmin core.YourAccount core.Login core.Logout"
othersAt=4}
</div>
<div class="gbBreadCrumb">
{g->block type="core.BreadCrumb"}
</div>
</div>
{* Include the appropriate content type for the page we want to draw. *}
{if $theme.pageType == 'album' && $theme.params.lightbox == 1}
{g->theme include="albumlight.tpl"}
{elseif $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"}
{elseif $theme.pageType == 'progressbar'}
{g->theme include="progressbar.tpl"}
{/if}
<div id="gsFooter">
{if !empty ($theme.params.valbtn)}
{g->logoButton type="validation"}
{/if}
{if !empty ($theme.params.g2btn)}
{g->logoButton type="gallery2"}
{/if}
{if !empty ($theme.params.donbtn)}
{g->logoButton type="donate"}
{/if}
</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>
where can I add the image tag so it caries over the gallery?
Posts: 560
At <img src="{g->theme url="images/title.jpg"}" width="500" height="100" alt="{$theme.params.site}"/> ?
My gallery 2 about dogs[/size]
Posts: 23
I'm using the Greypop Theme on gallery 2.3 with a title.jpg image size of 800 wide by 336 high. No matter what I have tried, the image is scaled to 750px × 120px. Right clicking the image shows that the full size image is 800px x 336 px.
I haven't had problems changing the title.jpg image size until now with the 2.3 upgrade. Any clues?
Posts: 3
I had the same problem. You need to delete the template cache to see changes. http://www.yoursite.com/lib/support/index.php for more information go to: http://codex.gallery2.org/Gallery2:Editing_Templates
Posts: 2
I just downloaded the greypop theme and I really like it. I almost have it all set up. I am now having trouble adding the header image. I read the tutorial at http://codex.gallery2.org/Gallery2:How_to_Add_Custom_Banner_or_Remove_Gallery_Logo
I get confused at this part:
Remove "{g->url}" add a complete link to your website:
I need to see exactly what the line is supposed to look like as I know nothing about php.
I have tried it every way I can think of before asking for help here and even tried copying the code from the original sample gallery and it won't show up.
Any assistance is appreciated.
my gallery is here: www.elleciecarmouche.net/gallery2
Lynn
Posts: 16504
did you get it working?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here