Yearly Archives: 2009

Advanced Category Excluder installed to control Daily Tweet Archive.

My gut reaction to having my Daily Tweet Archive/Twitter Digest posts appearing on the main page of my blog and, consequently, the home page of my main website was that it was a bit too much. I found the Advanced Category Excluder WordPress plug-in that lets you control what categories will appear on your blog home page, rss feeds, and so on. I have decided to use it to exclude my Daily Tweets category. You’ll need to click on the Daily Tweets category link in the side-bar of my blog or the Daily Tweet Archive link at the bottom of the Twitter Updates widget on my main page.

It’s entirely possible that I’ll change my mind and re-include it or lessen the space they take up by using the more tag. If nothing else, I found a useful plug-in LOL. 🙂

Blog has been upgraded to WordPress v2.7.1

I have updated my blog to WordPress v2.7.1 which was just released. This time I tried the auto upgrade option. It seems to have worked well. Even so, once again I did have to edit the /wp-includes/vars.php file to force $is_apache to true (see below) since the SERVER_SOFTWARE variable comes back as WebServerX instead of Apache.

// Server detection

/**
 * Whether the server software is Apache or something else
 * @global bool $is_apache
 */

//$is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false;
$is_apache = true;
/**
 * Whether the server software is IIS or something else
 * @global bool $is_IIS
 */

$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true : false;

I also had to reapply some code modifications, which I knew I would have to, related to the RSS Feed widget in /wp-includes/rss.php; however, I’ll make a separate post about why I modified it (didn’t I say that before?). Other than that the upgrade went smoothly. 🙂

As always, I did perform a complete database and file backup before upgrading! 🙂

Experimenting with daily Twitter digest on blog.

One of the options that Twitter Tools for WordPress has is for creating a daily post containing that day’s Tweets. This option is experimental; however, I thought I would try it out. Well, it sort of worked. It created a post of tweets dated 2-10-2009;  however, it contained the Tweets for the day before. It also did not create it in a format I liked. So, I was given the idea by @robmonroe to create my own scripts to achieve this.

Since Twitter Tools was already adding my tweets into the WordPress database, I figured I would use that data within my script. The first thing I needed to do was create a SQL statement that would grab the correct tweets out of the database. Then, use those records to construct a message that I can send to my blog via email for it to create a post. The post you see below is the result. I have added the scripts that achieve this to my PC’s scheduled tasks to run just after midnight.  I’ll know tonight if it works again.

I’ll see how it goes for a few days to see if I really want to do this as it does seem to be a bit much at first glance and if I want those posts to appear on the main page of my blog or only when viewing the Daily Tweets category. I have found a snippet of code that will achieve this. Once I know everything is functioning properly I will most likely create another post to share the code I used to achieve this for other Twitter and WordPress users. Stay tuned! 🙂

Latest NASCAR tweets added to NASCAR page.

NASCAR LogoIn addition to changing Tony Stewart’s graphics to reflect his new car number of 14 and sponsor, Office Depot, I have added a latest NASCAR tweets section to my NASCAR page using a PHP RSS parsing script I wrote. I did this more to just see if I could and educate myself more in working with Twitter’s RSS feeds. It’s the RSS feed version of this Twitter search which anyone can just view directly. There are also a few sites such as this NASCAR Twitter group site that follows NASCAR tweets. Even so, why not try something myself where I have more control? 🙂

Currently, I’ve put the tweet section within an IFrame. At the moment you have to manually refresh the list to grab new ones. I kept going back and forth between manual refreshing and automatic refreshing. I may add a form that will let you specify the refresh rate. What’s funny is that getting the RSS parsing working didn’t take that long. Getting the output to look how I wanted with some consistency between IE and Firefox took as long or longer (CSS stuff) 🙄 .

Since there is no 2009 driver standings available yet, I will have to wait until after the Daytona 500 and NASCAR creates a 2009 standings page to change mine. I have some other ideas for specific races as well, such as a specific page for each race with race results and a video playlist specific to that race. Another year of NASCAR has started. Woot! Stay tuned! 🙂