Simple problem
carpediem86
Joined: 2009-07-23
Posts: 15 |
Posted: Fri, 2009-07-24 08:37 |
Hi, I don't want the names of my pictures to show on my albums: I have many pictures that have a name like "p1010520b" and I rather have no names displayed. Then I plan to add comments on some photos instead. I have tried to find settings for it in the files, but canät find anything. |
|
Posts: 27300
Edit themes/default/views/photo.html.php
remove
<h1><?= p::purify($item->title) ?></h1>
The above url does not work so can't tell if you want it removed on the photo page.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
Thx, I will try that when I get home. Here are links to a picture and a album. I don't want the text "p1010600b" below the picture.
http://www.carpediem86.se/fotogalleri3/index.php/Per/2009-07-11_Vännäs
http://www.carpediem86.se/fotogalleri3/index.php/Per/2009-07-11_Vännäs/p1010600b.jpg
Posts: 15
I found it and deleted that line. But I still have the names there :S Both when I am logged in as administrator and when I am logged out.
Posts: 27300
Seems to work for me. If you don't want the titles under the thumbs you need to edit
album.html.php
removing:
<h2><span></span><a href="<?= $child->url() ?>"><?= p::clean($child->title) ?></a></h2>
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
Thx! now its working. The "photo.html.php" edit worked too, it just took some time so first I thought that it didn't work.
Posts: 15
Have some more problems. But if this is to trivial and boring I understand. This is kinda simple questions, but I have tried to find the code and can't :S
I want to have names of the albums over the thumbnails of albums. Like here:
http://www.carpediem86.se/fotogalleri3/index.php/Per
But not over normal images thumbs, just over thumbnails to gallerys.
And I also want to remove the "folder name" row in "album info" if possible.
Posts: 27300
The url provided did not have the have names of the albums over the thumbnails of albums.. So I guess I don't understand.
@folder name:
edit modules/info/views/info_block.html.php
remove:
I don't know if there is a way for the theme to override the other modules or not ... or if you have to make a copy of the module to prevent your mods from being lost in a upgrade.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
The folder name worked. I also removed the text "Folder name:"
But what I meant earlier about the text over the thumbnails of galleries was that in my link I would like to have text over the thumbnails. The gallery's title would be great. I have the title visible if you klick on a gallery, but not before you go "into" the gallery. I want all galleries names visible above its thumbnail. But not above ordinary pictures.
Posts: 27300
I think I am miss-understanding because of terminology.
There is no galleries, they are called albums. In albums you can have sub-albums and items.
So you want to have the name of albums above the thumb of the highlight/thumb for the album but not the thumb of the item? Originally they where below the thumbs and you removed them.
a screen shot of what you want would help, not a screen shot of what is is now.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
I have tried to get the names back below the albums, I even saved the files "album.html.php" and "photo.html.php" as a copy if something would go wrong. Now I have put the two files back, but still don't see any names of albums or of the pictures. This is like I want it:
http://www.carpediem86.se/temp/Untitled-2.jpg
Posts: 27300
edit album.html.php
remove
<h2><span></span><a href="<?= $child->url() ?>"><?= p::clean($child->title) ?></a></h2>
and paste it below:
not tested, but should get you thinking in the right direction.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
I tried a lot of things and have learned some more about the problem. Now I got the names above the thumbnails to galleries and above the thumbnails to pictures. I have removed the name above the pictures (not thumbnails). But I also want to remove the name above the thumbnails to pictures.
Maybe I can put a "if" thing before the row that writes out the name?
<? if (count($children)): ?>
<? foreach ($children as $<a href="<?= $child->url() ?>"> => $LINK_TO_A_GALLERY): ?>
<h2><span></span><a href="<?= $child->url() ?>"><?= p::clean($child->title) ?></a></h2>
something like that? Or maybe it is not possible to have names over thumbs that links to galleries and not over thumbs that links to pictures?
Posts: 27300
<? if ($child->is_album()): ?>
should do the trick.don't forget to close the if.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
oh yeah it works. Think its time to replace my old gallery with this new one now. And I think it will also get much better from here because its still just beta and not many addons to it yet.
Posts: 15
Hi, I have changed some colors now so that it fits my own homepage. But I can't find where the color settings for the text here:
http://www.carpediem86.se/temp/color.jpg
Any suggestions?