Disable Size / Full Size Information When Viewing and Image

crux19

Joined: 2003-11-04
Posts: 94
Posted: Wed, 2005-10-26 23:05

Hello,
When viewing an image, the information below is listed in the upper right.

Date: 08/25/04 Owner: Gallery Administrator
Size: (drop down with two options, both 413x640)
Full size: 413x640

I know I can change what is shown at the bottom of each picture, but was not able to find any way to remove the info listed above in the themes section. I am only allowing a max size of 640x640 so there will be no larger images to view and I would like the information above to be removed from the user's view as it doesn't add any value and could be confusing for some. The date and owner are great, but no need for the size and full size fields.

Since this isn't related to troubleshooting, I didn't provide my system information.

Thanks!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2005-10-27 05:54

You can edit your photo.tpl to not display that info:

                {g->block type="core.ItemInfo"
                          item=$theme.item
                          showDate=true
                          showSize=false
                          showOwner=true
                          class="giInfo"}

Follow the instructions at the top of the file about creating a local directory
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Thu, 2005-10-27 14:33

Thanks for the reply. I went to themes/matrix/photo.tpl and did not see a showSize variable listed. I added it in and there was no change. I also searched the entire gallery2 folder for the showSize string and it was not found. Am I missing something?

Thanks!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2005-10-27 17:34

There is no /themes/matrix/photo.tpl, it should be in /themes/matrix/templates/photo.tpl It's there by default. Can you provide a link to your site?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Thu, 2005-10-27 17:49

Ooops. You're right. I just mistyped the path.

site is at alpine9.net/gallery2/

Thanks!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2005-10-27 19:48

It's there. alpine9.net/gallery2/themes/matrix/templates/photo.tpl About 1/3 down from the top of the file.

I did notice one odd thing when I hit alpine9.net/gallery2/themes/ I got redirected to localhost. However, the site appears to be down right now.

EDIT: If you're using Windows XP (maybe 2000 also) it won't search most file types by default, you have to run through a few steps to force XP to search all file types. To do that search google for the solution.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Thu, 2005-10-27 20:38

The electrician is at my place today so he probably turned the power off. I have a copy of the file on my hard drive which I attached. The only place I found the word "size" in the file is:
{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showOwner=true
class="giInfo"}
{g->block type="core.PhotoSizes" class="giInfo"}

I tried adding the line in to mimic how you have it above, but there was no change to my site. I pulled the code from the cvs yesterday so I know I'm up to date.

I appreciate your help since this should be an easy fix, but I can't find the "showSize" in my photo.tpl file.

Thanks!

EDIT: I just pulled down the latest build from today and it is exactly like the file I attached.

AttachmentSize
photo.tbl.txt3.63 KB
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2005-10-28 14:20

Do'h! I kept looking at album.tpl.... Sorry about that.

I'd have to test for sure, but I'm pretty sure if you remove
{g->block type="core.PhotoSizes" class="giInfo"}
From photos.tpl it will remove that photo sizes block for you.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Fri, 2005-10-28 14:32

I thought I was going nuts. Thanks for the help. I just made the change and it works great!

 
theguyfrompei
theguyfrompei's picture

Joined: 2006-02-10
Posts: 12
Posted: Mon, 2006-02-20 14:14

I know its been a while since anyone has posted on this but I've been searching around for about 3 days trying to find the answer the exact question I'm looking for and haven't been able to find it.

What I'm wanting to do is leave in "Full size: 800x526", I have this opening in a new window, but I want to remove the "Size: Drop down 800x526". This I can't get to open new and because I have gallery inbeded into my site, it blows it up. I tried removing the following {g->block type="core.PhotoSizes" class="giInfo"} but that takes out the "Full size" feature.

Anyway to do this?

Thanks,
S.

 
TechiMi

Joined: 2007-05-03
Posts: 1
Posted: Thu, 2007-05-03 18:20

I managed to use this thread to get the sizes drop-down to show up for me, but now I can't get the Full Size listing beneath it to go away....which seems redundant since the full size is also listed in the drop down. The source code shows:
<div align="right"> <div class="block-core-PhotoSizes giInfo">
Size:
<select onchange="if (this.value) { newLocation = this.value; this.options[0].selected = true; location.href= newLocation; }">
<option value="/v/LibraryLand/2007_01_08_23_31_43.JPG.html?g2_imageViewsIndex=0" selected="selected">
640x428
</option>
<option value="/v/LibraryLand/2007_01_08_23_31_43.JPG.html?g2_imageViewsIndex=1">
1020x683
</option>
<option value="/v/LibraryLand/2007_01_08_23_31_43.JPG.html?g2_imageViewsIndex=2">
1270x850
</option>

<option value="/v/LibraryLand/2007_01_08_23_31_43.JPG.html?g2_imageViewsIndex=3">
3872x2592
</option>
</select>
<br/>
Full size:
<a href="/v/LibraryLand/2007_01_08_23_31_43.JPG.html?g2_imageViewsIndex=3">
3872x2592

</a>
<br/>
</div></div>

But I don't know where it's getting the last part from (<br/>etc). It's not in the .tpl file.