Gallery Question


Status
Not open for further replies.

james m

New Member
is there any for the following info NOT to show in the gallery when viewing pics.

File size: 63726 bytes
File date: 2003:08:23 13:50:57
Camera make: Nikon
Camera model:
Resolution: 500 x 342
Flash used: No
Jpeg process: Baseline

File Upload Date: 08-23-2003 13:50:57
Item Capture Date: 08-23-2003 13:50:57

cheers

james m ....
 

Hmm.. haven't seen any easy way to do this. Perhaps there will be an option in a later version of the gallery software.
 

well, there is a way...

open up the view_photo.php file in the Gallery folder,
go to line that says <!-- exif data start -->

below this line, put a <! --//

then look for this...

<!--
else {
gallery_error("no album / index specified");
}

exif data end -->

above <!-- , put in this //-->

save the file and then upload it to the Gallery folder.

so the whole section should look like this :

<!-- exif data start -->
<!--//
<tr>
<td align=center>
<?php
$forceRefresh = 0;
if ($gallery->user->canWriteToAlbum($gallery->album)) {
if (isset($reloadExifFromFile)) {
$forceRefresh = 1;
}
}

$myExif = $gallery->album->getExif($index, $forceRefresh);

if ($myExif) {
// following line commented out because we were losing
// comments from the Exif array. This is probably due
// to differences in versions of jhead.
// array_pop($myExif); // get rid of empty element at end
array_shift($myExif); // get rid of file name at beginning
$sizeOfExif = sizeof($myExif);
$sizeOfTable = $sizeOfExif / 2;
$i = 1;
$column = 1;
echo ("<table width=500>\n");
echo ("<tr valign=top>\n");
echo ("<td>\n");
while (list($key, $value) = each ($myExif)) {
echo "<b>$key</b>: $value<br>\n";
if (($i >= $sizeOfTable) && ($column == 1)) {
echo ("</td>\n");
echo ("<td>\n");
$column = 2;
}
$i++;
}
echo ("</td>\n</table><br>");
}

echo ("File Upload Date: &nbsp;&nbsp; " . date("m-d-Y H:i:s" , $gallery->album->getUploadDate($index)) . "<br>");
$itemCaptureDate = $gallery->album->getItemCaptureDate($index);
echo ("Item Capture Date: &nbsp;&nbsp; " . $itemCaptureDate['mon'] . "-" . $itemCaptureDate['mday'] . "-" . $itemCaptureDate['year'] . "&nbsp;&nbsp;");
echo ($itemCaptureDate['hours'] . ":" . $itemCaptureDate['minutes'] . ":" . $itemCaptureDate['seconds'] . "<br>");

if ($gallery->album->getKeyWords($index)) {
echo "<b>KEYWORDS</b>: &nbsp;&nbsp; " . $gallery->album->getKeyWords($index);
}

if ($gallery->user->canWriteToAlbum($gallery->album) &&
!strcmp($gallery->app->cacheExif, "yes")) {
echo "<br>";
echo "<a href=" .
makeGalleryUrl("view_photo_properties.php",
array("reloadExifFromFile" => 1,
"set_albumName" => $gallery->session->albumName,
"index" => $index)) .
">[Reload EXIF Data From File]</a>";
echo "<br>";
echo "<span class=fineprint>";
echo "(if the data is current, this will not appear to do anything)";
echo "</span>";
}
?>
&nbsp;<BR>
</td>
</tr>
//-->
<!--
else {
gallery_error("no album / index specified");
}

exif data end -->
 

rncw said:
well, there is a way...
Yes, I do know that one can always modify the gallery code. But there is a simple reason why i said i "haven't seen any easy way to do this" ->
Modifying of the gallery code is done at your "risk". I chose not to inform everyone about this method as obviously not everyone is technically inclined and changing an option in the gallery (that should have been there) is a preferrable method IF available. For the layman, even adding the code to comment off that entire portion can be a scary task. The last thing we want is to have dozens of ClubSNAPpers with galleries that aren't working properly due to incorrectly edited codes.
 

well, I just indicated that there is a way...

it's not an easy way (for layman perhaps), but this is one of the ways to remove the EXIF info...

for those who're not "technically inclined", please do not attempt changing the scripts...

cheers
 

rncw said:
for those who're not "technically inclined", please do not attempt changing the scripts...
cheers

wells look like I won't be attempting it ...
 

i noticed that they have an option under properties called "EXIF DATA" which can be set to "NO". however it seems to have no effect. perhaps all it needs is someone to enable it?
 

One can always backup all the php and scripts file before attempting any change. Any problems, just upload back the backup. ;)
 

Status
Not open for further replies.
Back
Top