How remove image title under image thumbnail and By:owner

ajorgereis

Joined: 2008-09-06
Posts: 132
Posted: Thu, 2010-10-28 22:28

Hi!!!

How remove image title under image thumbnail and by:owner?

look exemple at my gallery www.ajorge.net

Regards

Jorge

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-10-28 22:39

Just the title? Edit /themes/YourTheme/views/album.html.php

Remove these lines:

    <h2><span class="<?= $item_class ?>"></span>
      <a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2>

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

 
ajorgereis

Joined: 2008-09-06
Posts: 132
Posted: Thu, 2010-10-28 23:21

Thank You Nivekiam, for your answer, but don't work.
Only can locate the first line

My theme is:

Dark Canvas Theme - wide

Regards

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-10-28 23:26

Delete this:

    <h2><span class="<?= $item_class ?>"></span>
      <a href="<?= $child->url() ?>">
              <? // limit the title length to something reasonable (defaults to 15) ?>
              <?= html::purify(text::limit_chars($child->title,
                    module::get_var("gallery", "visible_title_length"))) ?>
      </a>
    </h2>

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

 
ajorgereis

Joined: 2008-09-06
Posts: 132
Posted: Fri, 2010-10-29 07:15

Hi, Nivekiam

Good, but deleted the name of albuns

Can you help again

Regards

Jorge

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-10-29 17:55

Oh, just images, not albums.

Yeah, that can be done. Give me a bit...

Try this (totally not tested)

    <? if ($child->is_album()): ?>
    <h2><span class="<?= $item_class ?>"></span>
      <a href="<?= $child->url() ?>">
              <? // limit the title length to something reasonable (defaults to 15) ?>
              <?= html::purify(text::limit_chars($child->title,
                    module::get_var("gallery", "visible_title_length"))) ?>
      </a>
    </h2>
    <? endif ?>

Please report back if it does or doesn't work. If it doesn't I'll spend a bit more time trying to figure out the right code.

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

 
ajorgereis

Joined: 2008-09-06
Posts: 132
Posted: Fri, 2010-10-29 18:26

Only can find part of your lines for delete

I remember my theme is:

Dark Canvas Theme - wide

Regards

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-10-29 18:39

Sorry, nothing to delete. Add those lines in bold.

So what it should do is only display the title if it's an album.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ajorgereis

Joined: 2008-09-06
Posts: 132
Posted: Sat, 2010-10-30 03:44

Fine, Nivekiam :-)

Thanks a lot

Regards

Jorge

www.ajorge.net