How to remove date/size/views info about the album?

Yazon

Joined: 2004-08-10
Posts: 80
Posted: Thu, 2005-04-28 00:16

Hey All

1) I can't seem to figure out how i can have main album page have 1 column (5 rows) of albums, but so that pictures within those albums are 2 columns and 5 rows.

Whenver i change the column setting - it applies to both - pictures and albums on the front page. In the G 1.44 that i had, i could specify this separately for albums and images in albums.

While i can set 1 columnt and 5 rows globally (to set the front page behaviour), i then have to change that for every album manually to have 2 columns and 5 rows.

2) is there any way to run off date, size and views that are displayed next to every album/picture?

3) In gallery 1.xx i was able to put a chunk of text right next to the album as a desription, but can't do that in G2. Is that no an implemented feature? i can put a line or 2 at best, but not anywhere near what i was able to in the older version.
----

Gallery version:2 (Holly Hand Granade)
Webserver (with version):Apache 2.0.52-r1
Datatabase (with version):MySQL 4.0.24
PHP version (eg 4.2.1):4.2.11
Graphics Toolkit(s):ImageMagic, NetPBM,GD
Operating system:Gentoo (all latest stable as of 24.4.2005)
Web browser/version: IE 6

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-04-28 05:02

1) set global setting to 2 columns. do edit album / Layout tab for top level album and set 1 column

2) "run off" ?

3) are you saying between the title and summary you can't fit enough text next to an album thumbnail? in G2 the intention is to keep a reasonable amount of text next to thumbnails and show a longer text block in the photo view or inside an album (description text can be very long).

 
Yazon

Joined: 2004-08-10
Posts: 80
Posted: Fri, 2005-04-29 00:14

Sorry, on #2 i was supposed to be TURN OFF date/size and views for all the albums.

3) - yes, that's correct. Description shows up only when you enter the album itself (shows up on top, in the grey area). So i guess the real problem with the Summary field is that i can't use paragraph, or page brakes to format the text.

For example if i want it to look as below:
1)xxxx
2)cccc
3)vvvv
4)bbbb
5)dddd

.
Instead - i have to type it all into a single line.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-04-29 05:27

3) use a local tpl to change the text box to a textarea.. still limited on the total length though.

2) you can use a local tpl here too

 
Yazon

Joined: 2004-08-10
Posts: 80
Posted: Mon, 2005-05-16 23:36

I've read some docs and it looks like i need to create "local" folder and drop the tpl in it, but i can't find the place in any of the default templates where to change the text box into a text area. Same goes for removal of date/size/views information about every album.

Thank you

 
Yazon

Joined: 2004-08-10
Posts: 80
Posted: Tue, 2005-05-17 00:09

Ok, i've figured out how to change Summary field into a textarea. So when i ADD albums i can put in formated text. And i thought that in order for me to be able to do the same on the existing album, i needed to change the ItemEditAlbum.tpl - but i can't find the part for the "summary field"!

Maybe i'm blind or maybe i'm looking in the wrong place.

Advise?

 
Yazon

Joined: 2004-08-10
Posts: 80
Posted: Tue, 2005-05-17 00:17

Ok got the Summary field problem resolved. Still trying to figure out how to remove the views, date and size information about the album.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-05-17 00:27

search for Views, Date and Size in layouts/matrix/templates/albumBody.tpl

 
Yazon

Joined: 2004-08-10
Posts: 80
Posted: Tue, 2005-05-17 00:47

Ok, i'm using classic so i've went to edit it's tpl.

However, when i try comment date/views/size block it puts the # (comment sign) up in the albums views to it looks like

##Views 30#
##Date X #

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-05-17 06:22

use {* to start a comment and *} to end a comment..
smarty.php.net

 
mikelewis

Joined: 2005-07-20
Posts: 10
Posted: Mon, 2005-12-05 05:43

I want to get rid of the "Date:" and "Views:" info under thumbnails that link to photo pages, but for those that link to albums, I only want to remove "Views:" & keep the "Date:".

In album.tpl, I can just set showViewCount=false . I belive I need an IF statement regarding showDate .
( IF this thumbnail refers to a photo page, showDate=false; ELSE (if it's for an album), showDate=true )

Can someone help with the code & how to identify what type of thumbnail/link is being displayed
(or provide a better method)?
Thanks!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-12-05 06:32

look for existing code with $child.canContainChildren to see an {if} that may get you on the right track..

 
rick7

Joined: 2005-03-02
Posts: 168
Posted: Mon, 2006-05-08 18:50

Mike -- almost a year later, I just came across your note as I realized I'd like to do the same thing as you asked about here. (btw, I notice that Hybrid has these available as theme options but not Matrix or G1 or Classic.) Did you find the right way to code it?

 
Jeremy Toaster

Joined: 2008-03-05
Posts: 14
Posted: Sat, 2008-08-16 12:57

I'm using the latest SVN and this is not working.
There are two areas within album.tpl which looks to control these displays, but setting them to FALSE does not remove them.

Lines 38-45

<td style="width: 30%">
                {g->block type="core.ItemInfo"
                          item=$theme.item
                          showDate=FALSE
                          showSize=true
                          showOwner=$theme.params.showAlbumOwner
                          class="giInfo"}
              </td>

And lines 144-152

                {g->block type="core.ItemInfo"
					item=$child
					showDate=FALSE
					showOwner=$showOwner
					showSize=true
					showViewCount=true
					showSummaries=true
					class="giInfo"}
              </td>

Setting showDate=FALSE is not working. Even after refreshing and clearing cache's...

Any thoughts?

 
Jeremy Toaster

Joined: 2008-03-05
Posts: 14
Posted: Sat, 2008-08-16 17:26

Well it seems to be working now. After turning off Theme Caching and creating my own theme, using Default for Admin and my custom theme for all my albums, REMOVING those lines of code make the Date/Views etc, go away.

Yay!

 
insysnet

Joined: 2009-01-09
Posts: 7
Posted: Fri, 2009-01-09 15:14

whooo thanks to jeremy little tip of clear theme cache IT WORK!!! lol... i knew my code was correct... just need to remove the ALBUM: bit now so it only dispaly the album name. i.e running instead of ALBUM:running

 
EricPNet

Joined: 2009-04-13
Posts: 7
Posted: Sat, 2009-04-18 04:12

This isn't working for me, I am using Matrix, check out Phable.net... I set to False, put in LOCAL directory, I managed to change the logo, and turn off the "Album:" text, but setting these to FALSE in both locations does nothing. I am using "Sand" colorpack, and a few checkout plugins but not much else.

I edited album.tpl and also photo.tpl, neither of these edits for date / size are working.

Any assistance is appreciated.

Thanks.

 
EricPNet

Joined: 2009-04-13
Posts: 7
Posted: Sat, 2009-04-18 20:43

So yeah, this still doesn't work, but changing passwords did mess the SQL up.

 
originalsteve

Joined: 2005-08-30
Posts: 7
Posted: Mon, 2009-11-23 23:27

At around line 180 in album.tpl, I found this code:

Quote:
{g->block type="core.ItemInfo"
item=$child
showSummaries=true
class="giInfo"}
{else}
{if ($child.canContainChildren && $theme.params.showAlbumOwner) ||
(!$child.canContainChildren && $theme.params.showImageOwner)}
{assign var="showOwner" value=true}
{else}
{assign var="showOwner" value=false}
{/if}
{g->block type="core.ItemInfo"
item=$child
showDate=false
showOwner=$showOwner
showSize=false
showViewCount=false
showSummaries=false
class="giInfo"}
{/if}

I changed
showDate=false
showSize=false
showViewCount=false
showSummaries=false

those from "true" to "false" as shown, cleared the template cache and that fixed it for me.