can't control captions

andrewd

Joined: 2008-10-16
Posts: 9
Posted: Thu, 2008-10-16 18:49

I don't want to have any info under my pictures at all, especially "Add to Cart".
Under Site Admin/Blocks/Image block, I've unchecked all the boxes and everything still shows up.

What am I doing wrong.?

Thanks,

Andrew

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.6 cgi-fcgi
Webserver = Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.45-community-log, lock.system=flock
Toolkits = ArchiveUpload, Dcraw, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd, ImageMagick, NetPBM
Acceleration = none, none
Operating system = Linux box272.bluehost.com 2.6.26-5_2.BHsmp #1 SMP Thu Sep 25 09:22:16 MDT 2008 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Rows in GalleryAccessMap table = 51
Rows in GalleryAccessSubscriberMap table = 1408
Rows in GalleryUser table = 4
Rows in GalleryItem table = 1400
Rows in GalleryAlbumItem table = 8
Rows in GalleryCacheMap table = 0
Browser (e.g. Firefox 2.0):

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 21:34

Start by uninstalling any plugin you are not using. Site Admin > Plugins (cart plugins, Dcraw, Exif, Getid3, GD

Image block for displaying different types of images or albums on parts of the pages or even externally:
http://codex.gallery2.org/Gallery2:Modules:imageblock

Now that you've removed any plugins you are not using, is there anything left that you still want to get rid of? Can you either post a link to your site or a screenshot of what you want to remove?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
andrewd

Joined: 2008-10-16
Posts: 9
Posted: Fri, 2008-10-17 20:18

I uninstalled the cart and a few other things, but I still can't get those check boxes to control what shows up under the image.

The URL is carcrafttruckworks.com/etc. I don't want anything under the image. Just pictures. No file name, no date, nothing.

I click on Block > Image Block and then under the Image block settings I uncheck Title, Date, views, but it has no effect.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Fri, 2008-10-17 23:16
Quote:
Image block for displaying different types of images or albums on parts of the pages or even externally:
http://codex.gallery2.org/Gallery2:Modules:imageblock

Those are not image blocks, they are thumbnails. If you don't know what image blocks are, you can probably uninstall the plugin.

As for removing what's left, you have a couple of options. Edit your theme.css (put it in a local directory /themes/matrix/local/theme.css

Add display: none; to any class you want to hide. If you don't know css, search google for tutorials or ask in the css customizations forum.

Or edit your template
http://codex.gallery2.org/Gallery2:Editing_Templates

Follow that advice about creating a local directory and putting your changes there.
Edit album.tpl, make the changes in bold:

                {g->block type="core.ItemInfo"
                          item=$theme.item
                          showDate=false
                          showSize=false
                          showOwner=$theme.params.showAlbumOwner
                          class="giInfo"}
                {g->block type="core.ItemInfo"
                          item=$child
                          showDate=false
			  showOwner=$showOwner
                          showSize=false
       		          showViewCount=false
                          showSummaries=false
                          class="giInfo"}

To make the keywords not appear you'll either need to uninstall the keywords plugin or use CSS or make these changes to album.tpl

        {* Show any other album blocks (comments, etc) *}
{*
        {foreach from=$theme.params.albumBlocks item=block}
          {g->block type=$block.0 params=$block.1}
        {/foreach}
*}

The "new" or "updated" tags come from the New Items plugin, uninstall it if you don't want them.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
andrewd

Joined: 2008-10-16
Posts: 9
Posted: Fri, 2008-10-24 19:08

Thank you,

But I'm still having trouble.

A.I don't see anything in the theme.css about thumbnails or Album captions at all.

B. I can't seem to find the template file. Where is it. I found a debug.tpl so far. That's about it.

Thanks,

Andrew

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 11717
Posted: Fri, 2008-10-24 19:18

URL?
What text do you want to hide at the URL you provided.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
andrewd

Joined: 2008-10-16
Posts: 9
Posted: Fri, 2008-10-24 23:22

I don't want to have any text under the images at all. No file name. No date. No views. etc.

Also in the Gallery, there is a lot of extra text that I don't want there either, like the date, views, keywords etc...

I can't locate the classes in the style sheets for any of these things nor the .tpl template file for them either, if that is the only way of making them go away.

Thanks,

Andrew

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Fri, 2008-10-24 23:42

I've posted how to get rid of almost all of it. Click on the Editing Templates link above for info on how to edit template files and the correct practices like creating a 'local' directory. They are stored in /themes/<YourTheme>/templates

If you need some hand holding, we can do that, but you need to provide a link to your site.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
andrewd

Joined: 2008-10-16
Posts: 9
Posted: Sat, 2008-10-25 00:09

I went to the link, I read it. I found the theme.css for Matrix and I went down every style and class and cannot figure out what is what.

For instance, what is the style for the file name that appears directly under the image?
what is the style for the date?
what is the style for the keywords and views etc....

The URL is www.carcrafttruckworks.com/etc.

How do I get rid of all that text and stuff under the Album thumbnails?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Sat, 2008-10-25 00:18
Quote:
For instance, what is the style for the file name that appears directly under the image?
what is the style for the date?
what is the style for the keywords and views etc....

You can always right-click on the page and view the source :-)

If you're doing any sort of web development. Get your self Firefox with the Web Developer toolbar and Firebug add-ons

<p class="giTitle">
Mid America Truck Show 2008
</p>
<p class="giDescription">
Mid America Truck Show 2008
</p>
<div class="block-core-ItemInfo giInfo">

<div class="date summary">
Date: 06/22/2008
</div>
<div class="size summary">
Size: 431 items
</div>
<div class="viewCount summary">
Views: 412
</div>
<div class="summary-keyalbum summary">
Keywords: <a href="key/Mid+America+Truck+Show+2008?g2_highlightId=25&amp;g2_GALLERYSID=fa89a6c75230183edc9c9e3310f7f6a5">Mid America Truck Show 2008</a>

Quick and simple:

.giTitle, .giDescription, .summary {
    display: none;
}

NOTE: that may or may not hide more than you want. As is, it will hide all the text at the top of the album as well.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
andrewd

Joined: 2008-10-16
Posts: 9
Posted: Sat, 2008-10-25 00:22

OK, i managed to edit the Matrix theme.tpl file, but i still can't get rid of the file name under the image.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 11717
Posted: Sat, 2008-10-25 00:48

Save the attached file as:
http://www.carcrafttruckworks.com/etc/themes/matrix/theme.css

You will have to rename the file.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

AttachmentSize
theme.css_.txt12.98 KB
Login or register to post comments