"by: ... " an "Copyright"

slart

Joined: 2013-11-11
Posts: 112
Posted: Sat, 2013-11-23 09:41

Hello,
i'm a little confused. I have Gallery3 and the Dark Canvas Theme, and i remember me, that have the info "By: my name" in the "Photo info" on the right site, not under the Thumbs. To be right? I miss this.
How i to become the "By: my name" again in the "Photo info" on the right site?

My second question is: How i make a copyright (© my name) or creative commons (CC - BY SA NC my name) info in the "Photo info"?

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sat, 2013-11-23 10:47

OK, i see, in the default Theme is in the right site the "Photo Info" with:
- Title:
- Description:
- File name:
- Owner:
- Dimensions:
In the Dark Canvas Theme only in the "Photo info":
- Title:
- Description:
- File name:
How can I make the "Owner:" in the "Photo Info" (only, not in "Album Info")? And as special extra else a "Copyright: "?

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sat, 2013-11-23 19:37

Please help me!

I found informations in the:
\modules\info\helpers\info_block.php

and modified the:
/themes/clean_canvas/views/info_block.html.php
with adding this on the end:

Quote:
<? if ($item->owner): ?>
<li>
<strong class="caption"><?= t("Owner:") ?></strong>
<?= html::clean($item->owner) ?>
</li>
<? endif ?>
</ul>

yet display in the Info Box:
- Title: ***
- Description: ***
- File name: ***
- Owner:
but it's horrible, the _Name_ of the _Owner_ don't display!!!! *aaargh!
What is that?

and when i write this:

Quote:
<? if ($item->owner): ?>
<li>
<strong class="caption"><?= t("Owner:") ?></strong>
<?= html::clean($item->owner->url) ?>
</li>
<? endif ?>
</ul>

display the url by the owner:
- Title: ***
- Description: ***
- File name: ***
- Owner: http://www.***.**
??? insane.

I have changed
html::clean($item->owner->url
with
html::clean($display_name
but without results :(

What can be the error?

 
punctuation

Joined: 2012-12-11
Posts: 37
Posted: Sat, 2013-11-23 20:42

Add this at the end just before </ul>:

<? if ($item->is_photo()): ?>
<li>
<strong class="caption"><?= t("Owner: ") ?></strong>
<?= html::purify($item->owner->display_name()) ?>
</li>
<li>
<strong class="caption"><?= t("© 2013 yourname ") ?></strong>
</li>
<? endif ?>

____________________________
Gallery 3.0.8 | Clean Canvas theme

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sun, 2013-11-24 11:22

Hey! Thank you very much!
Since I can live with that.

Just fix it:
<strong class="caption"><?= t("&#169; 2013 yourname ") ?></strong>

But, the translation from "Owner" does not work.

and
I'm doing it that way:

<li>
<strong class="caption"><?= t("Photograph: ") ?></strong>
<?= html::purify($item->owner->display_name()) ?>
</li>
<li>
<strong class="caption"><?= t("&#169; my name ") ?></strong>
</li>
<? endif ?>
</ul>

####

My second question was: How i remove the "By: ***" and "Views: ***" under the Thumbs?
I can't find it.

 
punctuation

Joined: 2012-12-11
Posts: 37
Posted: Sun, 2013-11-24 13:59

1.
You need to translate 'Owner' again.
Activate translator, go to the photo page, find the 'Owner:' in the list and translate it.

2.
Edit:
/themes/clean_canvas/views/album.html.php

and delete:

<ul class="g-metadata">
<?= $theme->thumb_info($child) ?>
</ul>

____________________________
Gallery 3.0.8 | Clean Canvas theme

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sun, 2013-11-24 16:11

Thanks! perfectly. :)

1.
I have make this bevor. The Question was: automatically Translate. equal, it's not so important. is it sufficient for my purpose.

2.
Is it possible to hide the names of the images, but not the names of the albums?

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sun, 2013-11-24 16:25

oh, sorry, i'm a little confused. forget the question number 2.

 
punctuation

Joined: 2012-12-11
Posts: 37
Posted: Sun, 2013-11-24 17:38

http://galleryproject.org/node/98853

____________________________
Gallery 3.0.8 | Clean Canvas theme

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sun, 2013-11-24 18:16

OK, i have tested it, it's fine. Thanks.