I've signed up for a free account to try out thmbnl, downloaded the PHP plugin, jumped through some hoops to get PHP running on my local system and looked through the (short) README file 289 times, but I still can't get the example file to work.
I stuck the entire example.php snippet (minus the unusable 'create' function) inside an img tag as the source. I'm getting what looks to be a good URL, but no image is retrieved. Note: I'm only trying to snag the default www.thmbnl.com 320 pixel image as it's set up in the example.
Example URL being returned:
Is that how the URL should appear? Any suggestions?
Help get this topic noticed by sharing it on Twitter, Facebook, or email.
That is a correctly formatted thmbnl URL. I'm a little confused when you say "I stuck the entire example.php snippet inside an img tag as the source...", so here is an example that may be more useful:
$consumer_key = 'CONSUMER KEY';
$consumer_secret = 'CONSUMER SECRET';
$token = 'TOKEN';
$token_secret = 'TOKEN SECRET';
$t = new Thmbnl( $consumer_key, $consumer_secret, $token, $token_secret );
$thumbnail_src = $t->find('www.thmbnl.com', 320);
[img src="find('www.thmbnl.com', 100) ?>"/]
...just copy in your consumer/token values and it'll be be good to go. If you need more help, just ask.
(Don't forget to change the 's to <>'s in the img tags above)
Thanks very much for demonstrating that. I've since tried the same thing on another machine at a different location and it all works perfectly, so maybe I had a browser issue of some sort. I'll check tomorrow and report back if I find out what's causing the problem. Thanks again!