Archive for the ‘Wordpress’ Category

FancyFlickr Dev Help

So, as many people know, I started development on a plugin called FancyFlickr a little over a year ago. Development went well at first at first, but it started to get slow and my lack of programming skills started to show. I originally got the idea for the plugin from a video Chris Coyier did on his CSS-Tricks blog. The main idea of the original is powered by a bunch of cool CSS3 and a bit of jQuery. This all works quite well, but when I started trying to add features it turned into a bit of a mess. The plugin currently functions and works in pretty much every environment that I’ve tried. There are some server requirements, like cURL, but if these are met it works fine.

I’ve known for a while that the plugin needs help. At first a few people wrote me asking for help sorting out problems that had to do with loading the images from Flickr. Recently, it really hit me when I noticed that Fred, from Fredstuff.com stopped using the plugin in favor of something that loads quicker.

The first thing that I want to do is make it more efficient, as it currently slows page loads significantly. I’ve also got some big dreams for the future of the plugin involving “WordPress gallery” style photo pages for individual photos and galleries. Basically, the WordPress gallery, but powered by Flickr.

Read the rest of this entry ›

Published: August 6th, 2010 in Wordpress | Tags: , ,

Tidy up the RSS

I’ve been playing around with backing up my tweets lately. At this point I’m using the Twitter Tools plugin to create a weekly digest. Since I created a Tumble-blog not to long ago to share social stuff like this I also wanted the tweets to go to tumblr. Part of this was just a way to clean up Tumblr and not create a new post everytime I tweet.

Now, having the tweets on the blog is mostly for me. I didn’t want to bombard people that are subscribed to the RSS feed with this weekly mashup of all my tweets, but still be able to have the RSS feed to send to Tumblr or for anybody that wants it.

This is what I ended up doing:

function tweetRSS123($query) {
	if ($query->is_feed && !is_category()) {
		$query->set('cat','-1');
		}
return $query;
}

add_filter('pre_get_posts','tweetRSS123');

Read the rest of this entry ›

Published: February 27th, 2010 in Wordpress | Tags: ,

Blogroll Links Favicons

Awhile back I wrote that I was having issues with Blogroll Links Favicons plugin for WordPress. I came up with some code that better displayed the favicons and fixed my issue. I wrote the author and he agreed that this code made more sense. I hadn’t thought about it, but recently I checked to see if the updated code had been put into the plugin and it hadn’t.

Just yesterday I emailed John about getting added as a contributor to the plugin, as he’s recently switched his personal site over to Posterous. He agreed to add me and I put my code in right away.

In the future I’m also going to be looking for ways of optimizing the plugin even more than it already is. I have quite a few links on any given page of my site that use this plugin, especially the about page. It’s getting to the point that having to retrieve all these thumbnails slows down my site, so I’m going to look into making this as fast as possible.

Let me know if you’ve got any questions or suggestions.

Published: January 23rd, 2010 in Wordpress | Tags: ,

WordPress login/out

Lately I’ve been putting a login link in the footer of my site, but it’s also nice for that to be a logout link when you’re already logged in as well as inserting a link to the site admin section. This line of code does exactly that:

<?php if ( is_user_logged_in() ) { echo "<a href='" . get_option('siteurl') . "/wp-admin/'>Site Admin</a> |"; } ?> <?php wp_loginout(); ?>

Published: December 30th, 2009 in Wordpress | Tags: , ,

Blogroll Links Favicons

I was recently having problems with the Blogroll Links Favicons WordPress plugin. The plugin gets the favicon for all the links that you have displayed on any given page using the WordPress links system. The problem was that the standard way the plugin does this is to add a new anchor link inside the list-item for each link. This was a problem for me because the anchor links were styled, so when I added the plugin everything was messed up.

I thought it would be better if the plugin just set the background image of the anchor link that was already there to the favicon and indented the text of the link. I’ve sent an email to the author of the plugin requesting that he make this the default way to display the favicons, but just incase that doesn’t happen, here’s the code that makes it happen:

Read the rest of this entry ›

Published: December 30th, 2009 in Wordpress | Tags: ,