Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

Please sign in or apply for membership to remove the ads
    • CommentAuthorchewbears
    • CommentTimeApr 18th 2008 edited
     
    I am just wondering if the show details defaults to a select amount of information only. I have edited my pictures with Exifer in order to contain information about copyright. 1_5v exif seems to have the ability to read this information but I can not seem to get them displayed after clicking the show details.

    how do I edit

    $table_data .= '>
    <tr>
    <td><strong>Dimensions</strong></td>
    <td>'.$width .' x ' .$height.'</td>
    </tr>
    <tr>
    <td><strong>File size</strong></td>
    <td>'.$size.' kbytes</td>
    </tr>
    <tr>
    <td><strong>Taken on</strong></td>
    <td>'.$row["EXIF_date_taken"].'</td>
    </tr>
    <tr>
    <td><strong>Camera model</strong></td>
    <td>'.$row["EXIF_camera"].'</td>
    </tr>
    <tr>
    <td><strong>Shutter speed</strong></td>
    <td>'.$row["EXIF_shutterspeed"].'</td>
    </tr>
    <tr>
    <td><strong>Focal length</strong></td>
    <td>'.$row["EXIF_focallength"].'</td>
    </tr>
    <tr>
    <td><strong>Aperture</strong></td>
    <td>'.$row["EXIF_aperture"].'</td>

    to contain things like :

    comment
    copyright
    artist
    comment etc???
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 18th 2008
     
    chewbears,

    This looks to be a little more labor intensive. I'll have to take a little time to look at the code to see how you can get the additional EXIF information (unless someone has already messed with this).
    I'll let you know what I find out!
    • CommentAuthorchewbears
    • CommentTimeApr 21st 2008
     
    Thanks sid.

    I have been playing with it all weekend, variations of the code as seen in v1_5 and applying them to plogger with no current success : (
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 21st 2008
     
    I may have a fix for you, chewbears.

    In 'picture.php' in your current theme, find the following code:
    <div id="exif-toggle-container"><?php echo generate_exif_table(plogger_get_picture_id()); ?></div>and try this:<div id="exif-toggle-container">
    <?php
    $exif_table = generate_exif_table(plogger_get_picture_id());
    require_once(PLOGGER_DIR . "/lib/exifer1_5/exif.php");
    $original = plogger_get_source_picture_url();
    $exif_raw = read_exif_data_raw($original,false);
    $exif_add = "";
    print_r($exif_raw);
    $exif_add.= "<tr><td><strong>Copyright</strong></td><td>".$exif_raw['IFD0']['Copyright']."</td></tr>\n";
    $exif_add.= "</table></div>";
    $exif = str_replace("</table></div>", $exif_add, $exif_table);
    echo $exif;
    ?>
    </div>


    That should get your copyright information in the table.
    To get the others, addprint_r($exif_raw);to the end to output everything in the $exif_raw array. Then view the Plogger gallery on the picture level to find where in the array comment, artist, etc. are located. For example:$exif_raw['IFD0']['Copyright']means the same as the print_r output below:Array(
    [IFD0] => Array(
    [Copyright] => xxx
    )
    )
    Then add your others like so:$exif_add.= "<tr><td><strong>Comment</strong></td><td>".$exif_raw['sub_array']['Comment']."</td></tr>\n";where "sub_array" is something like ['IFD0'] depending on your print_r output.

    If you have trouble with this, email me a photo that you have updated the exif information and I can tell you the exact lines to add if needed.
    • CommentAuthorchewbears
    • CommentTimeApr 22nd 2008
     
    Will do, I won't have time to play with this till a little later in the week but glad there is a solution, ty once again sid.
    • CommentAuthorchewbears
    • CommentTimeApr 23rd 2008 edited
     
    Sid I really don't follow you. My picture.php contains <tr>
    <td id="exif-toggle-container"><div id="exif_toggle">'.$detail_link.'</div></td>
    </tr>

    replacing any part of that eliminates the picture level view. I was thinking plog-functions.php was going to be the place to edit as that was where I got the table from my original post. Am I overlooking something?

    Copyright in the 1_5v is:

    case "8298": $tag = "Copyright";break;

    So I again am missing where IFDO is coming from sorry : (
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 23rd 2008
     
    chewbears,

    Editing the function may be the way to go, but first you have to map the array of where exifer (which is where the IFD0 is coming in). The code above "print_r($exif_raw);", will print out the entire array of exif data so you can map which array and/or sub-array you are looking for.

    It may just be easier to email me one of the photos you have updated the exif information and I can map the array for you. My email is in my profile.
    • CommentAuthorchewbears
    • CommentTimeApr 23rd 2008
     
    incoming e-mail and picture.php : P
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 23rd 2008
     
    Posted By: chewbearsincoming e-mail and picture.php : P
    Have you sent yet? I have not received an email. Just checking.
    • CommentAuthorchewbears
    • CommentTimeMay 14th 2008 edited
     
    Sid,

    I sent you an e-mail its from a .gov account. I just finalized our need in a recent meeting and in the e-mail you will see the details.

    Thanks.
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 14th 2008
     
    thanks, chewbears! I did receive your previous email too, but have not had time to respond yet.