Where:
1. On the main.php/opening page:
a) 'Date: 28/03/07' under the lhs 'Gallery' heading/column; and,
b) 'Date: 11/05/08' & 'Views: 34 ' under (in my case the first and only so far) Album listing. and
2. 'Date: various/various/various' & 'Views: various' under each and every photo/item.
as instructed in the first few lines of that file ...
Quote:
{*
* $Revision: 15950 $
* 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.
*}
... i created a new directory entitled 'local' at carbon | local and copied the file 'album.tpl' into it before making the two lots of changes per your instructions and saving the amended file
i then ran my gallery2 and it still showed the offending date & views, so i cleared my browser cache and re-ran gallery2 but there was no change, all date & views references are, unfortunately, still present.
my new, complete/current album.tpl file looks like this ...
Quote:
{*
* $Revision: 15950 $
* 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.
*}
<table class="gcBackground1" width="100%" cellspacing="0" cellpadding="0">
<tr valign="top">
<td>
<div id="gsContent" class="gcBorder1">
<div class="gbBlockTop">
<table>
<tr>
<td class="gsActionIcon">
<div class="buttonShowSidebar"><a href="{g->url params=$theme.pageUrl
arg1="jsWarning=true"}"
onclick="slideIn('sidebar'); return false;"
title="{g->text text="Show Sidebar"}"></a></div>
</td>
{if (isset($links) || isset($theme.itemLinks))}
{if !isset($links)}{assign var="links" value=$theme.itemLinks}{/if}
{* Our emergency edit link, if the user removes all blocks containing edit links *}
{g->block type="core.EmergencyEditItemLink" class="gbBlock"
checkBlocks="sidebar,album,albumUpper"}
{* Show any other album blocks (comments, etc) *}
{foreach from=$theme.params.albumBlocks item=block}
{g->block type=$block.0 params=$block.1}
{/foreach}
</div>
</td>
</tr>
</table>
{if !empty($theme.params.sidebarBlocks)}
{g->theme include="sidebar.tpl"}
{/if}
martineden
Joined: 2009-04-10
Posts: 7
Posted: Sat, 2009-04-11 03:00
sorry dave ...
i had a thought and transfered the 'local' directory from ...
Posts: 25940
Depends... what theme and where.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7
Theme:
Carbon
Where:
1. On the main.php/opening page:
a) 'Date: 28/03/07' under the lhs 'Gallery' heading/column; and,
b) 'Date: 11/05/08' & 'Views: 34 ' under (in my case the first and only so far) Album listing.
and
2. 'Date: various/various/various' & 'Views: various' under each and every photo/item.
Posts: 25940
album.tpl
find
<div class="gbBlock"> {g->block type="core.ItemInfo" item=$theme.item showDate=true showSize=true showOwner=$theme.params.showAlbumOwner class="giInfo"} </div>change true to false
then further down:
{g->block type="core.ItemInfo" item=$child showDate=true showOwner=$showOwner showSize=true showViewCount=true showSummaries=true class="giInfo"}true to false as well.
read the first few lines of the file before editing.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7
thank you for your help thus far dave.
i found the file album.tpl at carbon | templates
as instructed in the first few lines of that file ...
... i created a new directory entitled 'local' at carbon | local and copied the file 'album.tpl' into it before making the two lots of changes per your instructions and saving the amended file
i then ran my gallery2 and it still showed the offending date & views, so i cleared my browser cache and re-ran gallery2 but there was no change, all date & views references are, unfortunately, still present.
my new, complete/current album.tpl file looks like this ...
Posts: 7
sorry dave ...
i had a thought and transfered the 'local' directory from ...
carbon | local
to ...
carbon | templates | local
... and it works!!
thank you so very much dave.
cheers, martin <|;^))