Thesography 1.0.3 Support

35 comments

This page is intended for feedback and questions for Thesography version 1.0.3.

{ 35 comments… read them below or add one }

1 Scott March 10, 2010 at 22:42

After the most recent update I am getting the word “Array” next to the exif info
it can be seen here http://scottwyden.com/austin-makes-a-friend/
ideas? :-)

2 kristarella March 10, 2010 at 22:52

After the most recent update I am getting the word “Array” next to the exif info
it can be seen here http://scottwyden.com/austin-makes-a-friend/
ideas? :-)

Eesh… Could you please let me know which EXIF items you have checked, or specified to be displayed and whether any of those items are not showing up in that list. Are you using auto-insert or shortcode?

3 kristarella March 10, 2010 at 23:05

Scrap that Scott, I found the error, the fix will be up in version 1.0.3.1 very soon (as soon as the repository updates). Thanks for the bug report!

4 Scott March 10, 2010 at 23:22

Awesome ;-)

You’re welcome!

5 James March 10, 2010 at 23:49

Y’all are too fast for me – getting the same thing. :)

6 James March 11, 2010 at 22:28

Kristarella, looks like I’ve found a new error when I try the code you suggested to have it display on single pages only. Here’s the custom-functions.php addition:

remove_action('thesis_hook_after_post','thesography_display_exif');

function custom_exif() {
global $post;
$exif_options = get_post_meta($post->ID, '_use_exif', true);
if (function_exists('display_exif') && is_single())
echo thesography_display_exif();
}
add_action('thesis_hook_after_post','custom_exif');

On the home page of my site, it is not displaying – all good so far. On single pages, the EXIF data is displaying, but shortly after that, the following message displays (looks like after the “comment” section is called):

Fatal error: Call to undefined function thesography_display_exif() in /home/clailee4/public_html/jronaldlee.com/wp-content/themes/thesis_16/custom/custom_functions.php on line 148

Line 148 is
echo thesography_display_exif();

If it’s helpful, I put up my full custom-functions.php here. Also, here’s what it looks like on the page.

7 kristarella March 12, 2010 at 07:43

James — Thankfully not a plugin bug, either I told you the wrong code, or it’s an earlier piece of code than that one that you need…

function custom_exif() {
   global $post;
   $exif_options = get_post_meta($post->ID, '_use_exif', true);
   if (function_exists('display_exif') && is_single())
      echo display_exif($exif_options);
}
add_action('thesis_hook_after_post','custom_exif');"
8 Scott March 12, 2010 at 07:48

Have I mentioned that Kristarella rocks!

9 James March 12, 2010 at 09:20

Looks like you have a trailing quote ["] in that code.

I used that, proceeded by remove_action('thesis_hook_after_post','thesography_display_exif');

That isn’t removing the initial EXIF. I now have a single instance on the home page and multiple instances on single post pages. Is that the right removal code?

10 kristarella March 12, 2010 at 09:31

James — Yes, woops on the trailing quote.

Check the option to remove automatic insertion on the Thesography Options page.

11 James March 14, 2010 at 03:11

Argh… so obvious. Sorry about that. It looks great – working perfectly now, thank you.

12 ume July 18, 2010 at 23:56

hi kristarella,

when I tried this plugin in localhost (WP version 3.0) it works perfect, but now when i installed it on webserver it displays nothing. That means i guess it doesn’t have any compatibility issue with WP 3.0, right? Hmm..Do you have any idea? maybe some file/folder permission I need to set up first? Please.. without displaying these data, a photoblog would be uncomplete :) Thanks for the nice plugin btw!

13 kristarella July 19, 2010 at 13:04

Ume — There’s no compatibility issue with WP 3.0, I’ve been using it for some time. It’s come to my attention that it doesn’t yet work with custom post types, but I’ve found a fix for that, so I’ll be releasing that soon.

You might need to figure out what the differences are between you local server and your web server, for example, the PHP version and whether your host has the installed.

Also, make sure you’ve visited the options page and that the images you’re trying to view the EXIF of have been uploaded to WordPress and still have their EXIF in tact (i.e., they’re not externally hosted and an editing program hasn’t removed the EXIF). There are several programs you can use to view the EXIF of images. Although I just looked at one of your images and the EXIF looks fine.

And, how are you adding the EXIF to posts? Is it via the shortcode or a function in your template files?

14 ume July 20, 2010 at 17:32

@kristarella: ah.. glad that i have it all fixed now! Yes you’re right, turns out my host haven’t enabled the PHP-exif extension. So after they enabled it everything works perfect.

For the front-image, I added the EXIF data in template files so that whenever people hover the pic they get to see the EXIF as well (no JQuery, pure CSS :). On each post, I only added EXIF to several interesting pics via shortcodes, not all of them.

In short ways, I’m really thankful for your wonderful job on this plugin! Would love to see additional options for “Flash: fire/did not fire” :)

15 kristarella July 23, 2010 at 23:07

Ume — Very nice job with the exif implementation!

Flash fired is on my to-do list!

16 Seth Kane August 6, 2010 at 01:00

I have been using your Thesography code which is awesome. I will say I am extremely new to wordpress and I am sure I am doing this all wrong.

I have included bits of your code in my media.php of the wordpress core as follows:

$output .= "<div class=’exifInfo’><a href=’#’ class=’exifLink’>Exif Info</a>";
//$output .= " | <a href=’#";
//$output .= $id;
//$output .= "’>Comment</a>";
$output .= "</div>";
$output .= "<div class=’exifWrapper’></div>";
$output .= "<div class=’exifContent’>";
$output .= display_exif(‘focus,aperture,shutter,iso’,$id);
//$output .= bloginfo(‘template_directory’);
$output .= "</div>";

The idea behind this is I want the EXIF info to show up for each photo in a gallery. Rather than a single image in a single post. The functionality works great the way I have it which you can see at http://www.onesixtieth.com/2010/08/01/movie-magic-with-josh-duhamel-optimus-prime/ however… my question is this:

Is there a way in which I am using the code to do a check to see if the image has EXIF data in the first place.

I basically want to do this:

if ( exif data = true ){
$output .= "<div class=’exifInfo’><a href=’#’ class=’exifLink’>Exif Info</a>";
//$output .= " | <a href=’#";
//$output .= $id;
//$output .= "’>Comment</a>";
$output .= "</div>";
$output .= "<div class=’exifWrapper’></div>";
$output .= "<div class=’exifContent’>";
$output .= display_exif(‘focus,aperture,shutter,iso’,$id);
//$output .= bloginfo(‘template_directory’);
$output .= "</div>";
}

This way when I use photoshop to edit images the exif info link doesn’t show on those images.

If you have thoughts, ideas or just think I am crazy let me know. Thanks

17 kristarella August 6, 2010 at 10:42

Seth — It’s better to create a filter for the gallery rather than edit media.php directly because you won’t be able to auto-upgrade without losing the changes, but never mind that for now, I don’t have the code on hand and you can search when you’re want to look into it.

Your implementation does work very well!

I think you would need:

$imgmeta = wp_get_attachment_metadata($id);
if ($imgmeta) { ... }
18 Seth August 6, 2010 at 22:34

Thank you very much, that pointed me in the right direction. I had to actually check for a true value so I used this:
<pre>
$imgmeta = wp_get_attachment_metadata($id,true);
if ($imgmeta['image_meta']['iso']) {}
</pre>

Now, I am going to work on turning it into a filter. Thanks!

With: http://www.onesixtieth.com/2010/08/01/movie-magic-with-josh-duhamel-optimus-prime/

Witout: http://www.onesixtieth.com/2010/04/28/fake-model-photography-using-tilt-shift/

19 Darren August 28, 2010 at 12:46

I love the simplicity of this thing!! It rocks! However, I purchased and am using the ‘Photography’ theme from thethemefoundry.com and have managed to place the EXIF for the first image properly. But….subsequent images are all generated using javascript code and selecting the next image and so forth never changes the EXIF. I think I need to put the plugin code somewhere in the JS, but that is out of my league. Bummer!!!!

20 kristarella August 28, 2010 at 23:27

Darren — It’s extremely difficult to tell if there’s a solution to that without looking at the theme code… It won’t work to put it in the javascript because the javascript processes on the browser side and the plugin processes on the PHP side; all of the images are present in the HTML (but not all visible) when the page loads and before the javascript is executed, so the EXIF corresponding to each would also need to be present in the HTML.

How do you create the galleries with that theme? Are they each an individual post, or is it one post with multiple images uploaded to it? I think it would be possible to do what you want to do, but it would require some extra PHP, e.g., to fetch all the images from the post and loop through their IDs to get the EXIF for each image. Or if you found the code for the gallery slider in the theme you might be able to insert the exif function into that loop that is fetching the images. I’d need to play with the theme to see which is the best/right way.

21 Frank September 7, 2010 at 16:22

Hello kristarella, Thank you for the plugin, basic question, what is the format for entering the css in the Option page form after the etc? When I enter color:#666; etc it just prints it to the page.
Thank you – Frank

22 kristarella September 7, 2010 at 17:37

Frank — Best thing to do with CSS is put it in your theme’s stylesheet. For example, the default class for the list is “exif”, so in the stylesheet it would be .exif {color:#666;}. If you want to put it in the options you would need to put it in HTML form, so the “Before EXIF block” bit would be <ul class="exif" style="color:#666;">.

23 Frank October 3, 2010 at 07:54

Hello Kristarella, I have been having problems with some Lat Long taking me to the centre of the country and not the co-ordinates. I am told that this is due to the code reverse geocoding the address and when google cannot find it it just takes you to the countries centre instead, I am led to believe that this is due to and I quote:
“If you want the marker to placed at the exact lat/long, do just that -
don’t reverse geocode it.
Same goes for supplying the lat/long as query paramater (q=…) to
maps.google.com – don’t do that, supply it as a latlong (ll=…)
http://mapki.com/wiki/Google_Map_Parameters

You can see what’s happening at http://kuckoo.com/featured/turkey-seven-capes/
as an aside the map underneath the photo uses code from the theme which also reverse geocodes the address and suffers the same problem.

This photo works ok http://kuckoo.com/featured/krka-national-park/ as it can find the correct position both your plugin and the theme code.

You can see my complete question and the answer I received at http://groups.google.com/group/google-maps-api/browse_thread/thread/d501e822fce00870#

What do you think?
Frank

24 kristarella October 3, 2010 at 10:37

Hi Frank, yes, that’s a relatively recent bug I think. It will be fixed in the next update, which I can hopefully push out in the next few days. If you want to fix it before the update you can open up thesography.php and search for “google.com” which should bring you to the link, then duplicating the q= section and changing q to ll should fix it. (Sorry, on my phone right now, so can’t be more specific.)

25 Frank October 3, 2010 at 21:00

Hello Kristarella, I have put q=loc: in place of the q that seems to work ok.
Frank

26 Inxcho November 30, 2010 at 19:52

Is it possible to chage the order of de exif data display? Thanks…

27 kristarella December 1, 2010 at 13:34

Inxcho — Not currently. It’s on my list of possible improvements.

28 Steve December 29, 2010 at 06:18

Hi. Love the plugin, thanks; I’m using it in a Genesis-based site. I have a few feature suggestions/requests, some of which I realise might be major upgrades, but wanted to ask anyway:

1. More EXIF fields: I see you’ve already mentioned this above; specifically I would like to see these added – Flash, White Balance, Metering Mode, Exposure Programme (eg. Aperture Priority), Exposure Bias.

2. Themes: a few pre-set options using different CSS to give different display options; you could use icons, etc.

3. Taxonomy: use the EXIF data as a custom taxonomy for WordPress, so you could (for example) click on a link to “White Balance: Sunny” to see an archive page for all the photos with Sunny white balance. Obviously this wouldn’t be applicable to all the EXIF fields.

One more minor request: could you truncate the decimals in the GPS coordinates (or offer it as an option)?

Thanks for your time, and thanks again for the plugin. Happy New Year.

29 terry March 21, 2011 at 07:54

What was the error (if you remember) and how did you fix it for to this comment?

Scott: “After the most recent update I am getting the word “Array” next to the exif info
it can be seen here http://scottwyden.com/austin-makes-a-friend/
ideas? :-)”

30 kristarella March 22, 2011 at 14:49

Terry — I don’t remember which item it was for, but I fixed it at the time, so it shouldn’t occur if you have the most recent version.

31 Alwin April 9, 2011 at 05:22

is it possible on the homepage, if you click the teaser it will redirect to another site not on the original permanent link?

it is normally it goes to the permanent link, but what i want to happen is it will go to another link that is set..

Thanks

32 kristarella April 11, 2011 at 12:22

Alwin — Sorry, what do you mean? Is this related to the plugin, or is this just a Thesis question? If the latter, maybe better to ask the forum or Twitter (with hashtag #thesiswp).

33 Nico October 18, 2011 at 09:04

Hi,
impressive amount of tips you give on your site! Very cool!
I’m working with Thesison this website and so far I’m pretty impresse. The only problem is I can’t seem to center align my header image and my navbar. Is there a way to implement some changes in the css in order to have the header image and the navabar aligned over the center of the page rather than to the left?
I went through all your posts on header customization but haven’t really found the answer so far.

Help would be much appreciated!
cheers,
Nico

34 kristarella October 19, 2011 at 23:23

Nico — This comment doesn’t really belong here (this thread is for my plugin, not Thesis), but I’ll answer this time…
To center your header image you can use the following in custom.css:
.custom #header {background-position:center top;}
The nav is slightly less easy and there’s a couple of different ways to go about it. Try this one.

35 Morten Ross December 25, 2011 at 01:58

Still nothing that can replace your pluging for my, and now I have more than 700 posts/images displaying displaying EXIF.

There is one piece of info that I find I cannot live without any longer, and that is the “Taken” – it only displays the date, but so many images have a very interesting time as well – e.g. 04:30 in the morning. This time stamp will help me in recalling why the image is so dark, or why I used such high ISO setting. Now I have to open the image in an editor or in Windows Explorer to find this out, and that is cumbersome.

What I can see it’s this line that needs an upgrade:
// Creation time
if ((strpos($option, ‘time’) !== false || $option == ‘all’) && !empty($imgmeta['image_meta']['created_timestamp']))
$exif_list .= $before_item . "Taken" . $sep . date(‘j F, Y’,$imgmeta['image_meta']['created_timestamp']) . $after_item;

Thanks for your help,

Morten

Leave a Comment

Want to show PHP or XHTML code in your comment? Encode it first so that WordPress doesn't strip it away.

Read the comment policy.