Getting rid of "item actions" under each thumbnail

castro145

Joined: 2005-07-05
Posts: 1
Posted: Wed, 2005-07-06 00:10

Hello,
Love the Gallery and features but quick question, well I guess kinda two part. First off all anyway to get rid of the drop down under each thumbnail as I view the album. I think it should be sufficient enough just to have it onthe side or in one place on top ?

The otehr question. Where are teh thumbnails stored or are they created on the fly? If so on the fly, anyway to make them static so the gallery would load faster ?

Thank You very much

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2005-07-06 00:42

@ thumbnails. They are either created when you first upload an image or the first time you browse to it. From then on they are stored in /g2data/cache/derivative/

They are static once they are built the first time.

@ item actions drop down Take a look at <yourgalleryinstall>/layouts/<yourtheme>/templates/albumBody.tpl If you edit this file be sure to create a local directory under that templates directory and copy it in there.

Look for this code

 	{if !empty($child.itemLinks)}
        {* if we have more than one link, use a dropdown *}
        {if count($child.itemLinks) > 1}
 	<select onchange="{literal}if (this.value) { newLocation = this.value; this.options[0].selected = true; location.href= newLocation; }{/literal}">
 	  <option label="{if $child.canContainChildren}{g->text text="&amp; album actions &amp;"}{else}{g->text text="&amp; item actions &amp;"}{/if}" value="">{if $child.canContainChildren}{g->text text="&amp; album actions &amp;"}{else}{g->text text="&amp; item actions &amp;"}{/if}</option>

 	  {foreach from=$child.itemLinks item=link}
 	    <option label="{$link.text}" value="{g->url params=$link.params}">{$link.text}</option>
 	  {/foreach}
 	</select>
        {else}
        {* one link, just show it as a link *}
        <a href="{g->url params=$child.itemLinks.0.params}" class="gbAdminLink {g->linkid urlParams=$child.itemLinks.0.params}">{$child.itemLinks.0.text}</a>
        {/if}
 	{/if}

I believe you just just remove that code and you wouldn't see any links or drop downs under your thumbs.

Be aware that major changes are in the works for the layout/theme system. These changes will be happening by the release of Beta 4. Most any changes you make now will need to be redone.

 
turnbulm

Joined: 2004-10-03
Posts: 431
Posted: Wed, 2005-07-06 22:09

@ thumbnails - there is a task under 'maintenance' in site admin to build all thumbnails/resizes up-front, instead of them being generated dynamically the first time they are required.

 
kferranti4

Joined: 2008-02-10
Posts: 26
Posted: Sat, 2008-03-01 06:06

This seems to be what I am looking for. I wanted to change the dropdown under thumbnails into icons and get rid of the link text, like it is when there is just one album action. I don't really understand what to do. I thought I could figure it out just by playing with the settings in that particular code. My first problem is I don't seem to have a AlbumBody.tpl. I have an Album.tpl which I figured was the same thing with a name change in the Gecko theme. Can andyone point me in the right direction.

Thanks so Much
Karen

http://www.ferrantiphoto.com/gallery2/main.php

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.5 cgi-fcgi
Webserver = Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqli 5.0.45-community-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux host176.hostmonster.com 2.6.22-9_1.BHsmp #1 SMP Fri Sep 28 23:36:16 MDT 2007 x86_64
Default theme = gecko
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; PeoplePal 3.0)
Rows in GalleryAccessMap table = 35
Rows in GalleryAccessSubscriberMap table = 349
Rows in GalleryUser table = 2
Rows in GalleryItem table = 347
Rows in GalleryAlbumItem table = 9
Rows in GalleryCacheMap table = 0