I would like to add more information/descriptions to my albums and pictures. Say I want to have a field like location in my albums so I can search based on location. What files would I have to modify in order to add more descriptions which would be searchable.
I would also need to know which files I would need to change in order to allow members to input those fields in when they create a new album.
the new fields I am interested in are:
location:
size:
height:
color:
etc.
thanks!!!
Posts: 6
I'd like a similar feature. It would be nice if you could add options like
Title : (This would be the only caption visible under the thumbnail)
Date added:
Medium: (I'm an artist. This would be very useful at least for me.)
Description: This would be additional description added by the artist about the image.
It may also be a good idea if there is an option to add, remove or change these particular fields because some people may want other options available to them. Right below these features you could just include the comments and the option to add a comment. Unless it would be ok to just have the ADD COMMENT link right below the description so that there is a pop up window of all the comments made on the image. Either way works for me.
All these are visible only when you're viewing the actual image. Currently there is only an option to add a caption or title but it would be really nice to be able to add a description that is not visible with that caption. :smile:
Posts: 38
Indeed! i'm after the same thing.
i think we need to know how to do this with and without Nuke/Postnuke. I have been trying to track down the code that actually stores the album/photo data and I can't find it.
Posts: 3473
Wow... popular topic these days!
Joan has kindly written and shared some code to make this all a breeze:
http://gallery.sf.net/forums.php?topic=3717
-Beckett (
)
Posts: 11
ignore this, see next post
Posts: 11
Hi!
I made the following changes to view_album.php:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> <span class="desc">
<?php
$mathias_path = $gallery->app->albumDir;
$mathias_name = $gallery->session->albumName;
$mathias_file = "$mathias_path/$mathias_name/description.html";
if (is_file ("$mathias_file")) (include ("$mathias_file"));
?>
</span>
</TD></TR></TABLE><!-- BBCode End -->
Just add near the end before <?php if (!strcmp($gallery->album->fields["public_comments"], "yes") && $displayCommentLegend) {.
There is, however, a problem: Everything is running fine on one's own, local webserver. If you're using shared hosting you'll run into the following problem: You can't write to directories created by PHP, because Apache is usually running under a different user account than the owner of a shared website. Therefore you can't ftp the description.html to the server :sad:
Any suggestions how to solve this problem?
Bye Mathias