Show Most Recent Picasaweb Uploads

Replace the “tester” username below with your own, and the target value with the selector of the element you wish to append the pictures to.

$(document).ready(function() {
	$.getJSON("http://picasaweb.google.com/data/feed/base/user/tester/?kind=photo&access=public&alt=json&callback=?",
	function(data) {
		var target = "#latest-picasaweb-images ul"; // Where is it going?
		
Avatar of Chris Coyier
Chris Coyier on (Updated on )

Show Your Favorite Tweets with WordPress

Just replace the URL in the fetch_rss line below with the RSS feed to your Twitter favorites. In fact this will work with any RSS feed.

<?php
    include_once(ABSPATH . WPINC . '/feed.php');
    $rss = fetch_feed('http://twitter.com/favorites/793830.rss');
    $maxitems = $rss->get_item_quantity(3); 
    $rss_items 
Avatar of Chris Coyier
Chris Coyier on

CSS Hacks Targeting Firefox

Firefox 2
html>/**/body .selector, x:-moz-any-link {
  color: lime;
}
Firefox 3
html>/**/body .selector, x:-moz-any-link, x:default {
  color: lime;
}
Any Firefox
@-moz-document url-prefix() { 
  .selector {
     color: lime;
  }
}
Avatar of Chris Coyier
Chris Coyier on (Updated on )

#75: How Not To Design a Checkout

You’ll have to forgive me here folks, this isn’t a very constructive screencast. I was frustrated at the crappy checkout process for a software product I was trying, so I thought I’d screencast it as a lesson to us all …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Meta Refresh

The redirects to the provided URL in 5 seconds. Set to 0 for an immediate redirect.

<meta http-equiv="refresh" content="5;url=http://example.com/" />
Avatar of Chris Coyier
Chris Coyier on

Automatic Social Media Links

This would go inside the loop, probably underneath the_content(), probably in your single.php file.

// bookmark on Delicious
<a rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink(); ?>&amp;title=<?php echo urlencode(get_the_title($id)); ?>" title="Bookmark this post at Delicious">Bookmark at Delicious</a>

// submit to Digg
<a rel="nofollow" 
Avatar of Chris Coyier
Chris Coyier on

Images on a Subdomain (?)

I can’t remember where, but a while ago I read something about using subdomains to serve up a sites resources as a way to potentially speed up loading. The theory was that the protocol that browsers use to communicate with …

Avatar of Chris Coyier
Chris Coyier on