This is Stephen Clark's website. It is coming to you live from New Jersey USA.

This is essentially a digital outlet for me to share my thoughts, perspective and interests. It is also where I talk a bit too much about my beloved Red Sox. You can find my resume here. I've developed some CSS and JavaScript things, including the MiniSlide Navigation mashup. This site looks best in Firefox. If you are not using it, you are missing out.



  • No recently listened tracks.

Wordpress Previous + Next Links

One of the minor things I’ve been meaning to do on my Wordpress site was to use a more visually appealing treatment on the “Previous Entries” and “Next Entries” links at the bottom of the site’s main index.php page template. These links appear on the bottom of every page of the blog, from the first page on to the “nth” page and help users navigate back and forth to see different posts. Scroll to the bottom of this page to see the “Previous Entries” link to see an example.

In looking around at different button styles, I settled on Richard Davis’ SexyButtons set because they were lightweight, flexible and offered lots of different color schemes that could be used in different circumstances on my site. However, when I installed the SexyButton code, there was a minor bug on the homepage of my site with the “Next Entries” button.

Problem

Since the posts on my blog’s homepage are the most recent posts (my most recent post through my tenth most recent post), obviously there are no “Next Entries” to go to, and therefore that button does not need to be displayed on the Homepage. The issue is that while the Wordpress Loop code did not output any text, the SexyButtons still recognizes the code that is present on index.php template page and renders the grey background of the button style I chose (see highlight in red box above). To take this scenario one step further, if you clicked through the “Previous Entries” link at the bottom of the main blog page, you would get to “Page 2″ of my blog that would have the next 10 posts I created, and at the bottom of that page, the “Previous Entries” and “Next Entries” buttons would be rendered and linked accurately. The code I originally used to render the above screen shot is below, which is the combined standard Wordpress code and the SexyButtons code:

<button class=”sexybutton sexysimple”>
<span class=”prev”>
<?php next_posts_link(‘Previous Entries’) ?>
</span>
</button>
<button class=”sexybutton sexysimple right”>
<span class=”next”>
<?php previous_posts_link(‘Next Entries’) ?>
</span>
</button>

My Solution (Or, My Hack)
The nice thing about Wordpress is that since its built on PHP, there are tags and code for practically every element of your blog. In this case, the <?php (is_paged ()) { ?> tag is available for you to specify functions or actions on the paginated pages of your blog (yes, poor English…but I digress). So knowing this, I just strung together a couple of PHP “if” statements that keyed off of the “is_paged” tag which is noted in the code below.

<button class=”sexybutton sexysimple”>
<span class=”prev”>
<?php next_posts_link(‘Previous Entries’) ?></span>
</button>
<?php if (is_paged ()) { echo ‘<button class=”sexybutton sexysimple right”>
<span class=”next after”>’; }?>
<?php previous_posts_link (‘Next Entries’)?>
<?php if (is_paged ()) { echo ‘</span></button>’; } ?>

The first “if” statement basically says “if Wordpress validates that the page is “is_paged”, then drop in the start of the button tag. Then, I left the “previous_posts_link” alone as was provided by Wordpress. Then, I put in another “if” statement to close out the button tag.

I then took this code and I put it on my index.php Wordpress template page, in place of the standard “Previous/Next Entries” code provided on most Wordpress index.php templates.

I am not about to admit that this is the cleanest way to solve this minor issue, but it works for me. Hope this helps someone out there on the internet. Or, I hope someone can help me if there is a simpler solution out there.

February 7th, 2010  •  No comments  • 

Ads

Tweets of the Week

  • Dunleavy lost 60% of the games he coached for the Clippers and is still the most wins for a coach in the franchise's history. #
  • at "Star Wars Trilogy One Man Show". Photo ops with Vader, Boba Fett, Chewy, and Storm Troopers. Super cool!! #

February 5th, 2010  •  No comments  • 

Tweet Your Resignation Letter

Jonathan Schwartz, the CEO of Sun Microsystems, tweeted his resignation from the company via Twitter and in a Haiku. Short, sweet and to the point. I wonder if #resignation will be a trending topic in the near future?

February 4th, 2010  •  No comments  • 

Convergance and the QR Code

Here’s an interesting item from of all places, The Weather Channel. It appears that TWC is putting QR Codes on the TV screen during weather broadcasts, inviting Android users to scan the code to get their Android app. I’ve heard of people using the codes on outdoor advertising but having a broadcast network using them is a pretty interesting move for networks and for advertisers. Next step is obviously a TV spot with the QR code that delivers a coupon for that item to the user’s mobile device.

February 3rd, 2010  •  No comments  • 

Social Media Stats

A compilation of social media statistics and sound bytes from across the Internet.

  • Facebook currently has in excess of 350 million active users on global basis.Six months ago, this was 250m…This means over 40% growth in less than 6 months.
  • Flickr now hosts more than 4 billion images.
  • More than 35m Facebook users update their status each day.
  • Wikipedia currently has in excess of 14m articles, meaning that it’s 85,000 contributors have written nearly a million new posts in six months.
  • Photo uploads to Facebook have increased by more than 100%. Currently, there are around 2.5bn uploads to the site each month.
  • Back in 2009, the average user had 120 friends within Facebook. This is now around 130.
  • Mobile is even bigger than before for Facebook, with more than 65m users accessing the site through mobile-based devices. In six months, this is over 100% increase.
  • There are more than 3.5bn pieces of content (web links, news stories, blog posts, etc.) shared each week on Facebook.

February 2nd, 2010  •  No comments  • 

Tweets of the Week

  • Blowing Georgetown out of the gym never gets old. Let's go Orange!! #
  • They are the 'Aints no more!! Congrats to the New Orleans Saints – NFC Champs. Now THIS is something I never thought I'd see. WOW! #

January 29th, 2010  •  No comments  • 

Tweets of the Week

  • Ken Burns is updating his documentary "Baseball". Send him some photos from '04 Sox WS win – http://shar.es/aSnRZ #
  • I use my Droid so much for music and podcasts that my iPod is now my back up music player #
  • The founder of Taco Bell has left us for the big burrito in the sky – http://bit.ly/5X5qOL #
  • NYT to start charging to access site in 2011 – http://bit.ly/7ZKZVT #
  • ted kennedy is rolling over in his grace #
  • A long weekend full of kids birthday parties, footrball, and Season 1 DVDs of Mad Men #

January 22nd, 2010  •  No comments  • 

Shamrock Cups

Shamrock Cups are single piece coffee/tea cups that have an integrated folding closure that eliminates the service industry’s reliance on two piece paper cups and plastic tops. Will the iconic Starbucks cup be getting an environmental redesign soon? Time will tell.

January 22nd, 2010  •  No comments  • 

Concept Packaging For Doritos

Cool concept designs for Doritos packaging. It moves far away from the traditional bag and it would stand out big time on the vast store shelves of your local supermarket. I’d be curious how they would execute this for the smaller single serving packages, but that’s not my issue.

Via PSFK

January 22nd, 2010  •  No comments  • 

Stock and Flow

I just love this article/post Stock and Flow from Robin Sloan at Snarkmarket. I have been trying to put my finger on a way to articulate how modern media and content works today and struggled to find the best way to sum it up. I think this article does this very effectively.

Flow is the feed. It’s the posts and the tweets. It’s the stream of daily and sub-daily updates that remind peo­ple that you exist. Stock is the durable stuff. It’s the con­tent you pro­duce that’s as inter­est­ing in two months (or two years) as it is today. It’s what peo­ple dis­cover via search. It’s what spreads slowly but surely, build­ing fans over time. I feel like flow is ascen­dant these days, for obvi­ous reasons—but we neglect stock at our own peril. I mean that both in terms of the health of an audi­ence and, like, the health of a soul. Flow is a tread­mill, and you can’t spend all of your time run­ning on the tread­mill. Well, you can. But then one day you’ll get off and look around and go: Oh man. I’ve got noth­ing here.
This really hit home for me. In the article, Robin takes the simple economics metaphor of stock, the amount of “money in the bank”, and flow “the rate of change” and applies it to modern online and social media. So services like Twitter and Facebook are the “flow” and things like blogs and publishing are the stock. Yes, sites such as Twitter are interesting and have changed the landscape, but this approach just reinforces to me that blogs and the development of sustainable articles, applications, and services are just as critical to the modern media landscape.

Via Kottke

January 19th, 2010  •  No comments  • 

Tweets of the Week

  • Some Free Web 2 Companies & Services to help run a small biz – http://bit.ly/797CVz #
  • Fox News moving into comedy. RT @Jason: BREAKING: Sarah Palin to Join Fox News http://bit.ly/palinfox #
  • Not much love in Nexus One land – http://bit.ly/5g5QAX #
  • PATRIOTS playoff hopes went down with Welker last week #
  • at Tim Burton exhibit at MoMA very cool! #

January 15th, 2010  •  No comments  • 

Designing For Mobile Gestures

An interesting article from Nokia on how their industrial designers are incorporating human gestures into their mobile product/device design. They are basically tapping into the “relationship” that everyone has with their mobile device these days, and are using human gestures as a new dialect of interaction and communication with the phone. I’m sure we’ve all looked at our phone with one of those WTF expressions. It appears that in the future, there will be an app for that. :-)

January 14th, 2010  •  No comments  • 

Networks To Manage Your Networks

Has it come to this? There are now online sites and applications to help you manage your social networks. This seems like a vicious cycle to me…will there soon be networks to manage your networks that manage your social networks?

CIO – When you belong to several social networking sites—Facebook, LinkedIn, Twitter—(and don’t we all?), keeping up with them can seem overwhelming. Tweet this. Update that status. Share a link here. If you’ve resolved to get more organized this year, consider these seven tools that save time and streamline your social networking interactions. My picks: For easy content sharing across platforms, be sure to check out is the browser plugin Shareaholic. And for simple synching and updating of multiple accounts, Atomkeep seems to be the most efficient.

1. 8Hands. The desktop application organizes your social networking profiles (such as Facebook, WordPress, Flickr, Twitter and YouTube) into one place. It sends you notifications when you receive new comments, messages, friend requests or videos; generates summaries and statistics on your social networking activities; and features a chat window where you can drag and drop YouTube videos or Flickr pictures to share with others.

2. Atomkeep. This service allows you to import, synch and merge your profile data from a wide variety of sites such as LinkedIn, Facebook, Twitter, Yelp, Digg and Plurk. It also makes updating pieces of information—such as your e-mail address—across several platforms quite easy: Update that specific field in your Atomkeep profile (instead of visiting each site individually) and push it to all or select sites. Note that there’s a backlog in approving accounts at the moment, as the company site states: “All accounts are activated in batches, as soon as our capacity allows. Please don’t ask when, as we can’t give you any timeframe on this.”

3. FriendBinder. FriendBinder aggregates your existing friends from your networks and displays them in a single stream of information. It organizes your Twitter mentions and direct messages, and displays when someone favorites a photo of yours on Flickr or invites you to an event on Facebook. FriendBinder also displays trending topics and threads Twitter conversations, making them easier to follow.

4. FriendFeed. This tool displays a personalized, real-time feed of what your friends are sharing on various social media and social networking sites. You can comment or “like” items that appear in your feed, and have real-time conversations with your friends about the posts. You also may choose from a list of over 50 sites that you may belong to, and share items with your friends accordingly.

5. Ping.fm. Primarily a site that lets you update multiple statuses simultaneously, Ping.fm groups services into three categories—status updates, blogs and microblogs. You can configure the account to aggregate content from several services, including Delicious, Facebook, Laconica, LinkedIn, Twitter and WordPress.

6. Pond. The Pond social media aggregator and publishing tool allows you to follow your friends, collect information about them and share your own content. Pond also lets you merge your friends’ online identities—so, for example, if your friend belongs to Twitter, Facebook and Flickr, you’ll see updates from these services in one integrated time line. Pond also allows you to cross-publish information to several sites with one update.

7. Shareaholic. Shareholic is a customizable browser add-on that lets you share content with over 60 social networking sites. By clicking the Shareaholic icon, you can instantly share the page you’re on (it automatically shortens the link for you). It also displays real-time trending topics, allowing you to find the latest news, videos and blogs.

 

via computerworld.com

Posted via web from Stephen’s Posterous

January 11th, 2010  •  No comments  • 

Tweets of the Week

January 8th, 2010  •  No comments  • 

Winter Classic at Fenway

NHL Winter Classic at Fenway

The NHL held their annual outdoor “Winter Classic” game up in Boston at Fenway Park. The faithful came out in full force for the game and the Bruins did not disappoint, winning the game 2-1

Photo from Boston.com

January 1st, 2010  •  No comments  •