Article Archive

Internet Explorer Nein!

Article Sticky
17Mar
5

I love Internet Explorer. I equally love sticking red-hot pokers in my eyes and sliding bamboo splinters underneath my finger nails.

I love Internet Explorer. I equally love sticking red-hot pokers in my eyes and sliding bamboo splinters underneath my finger nails.

Perhaps you missed the announcement about the IE9 ‘platform preview’, if that’s the case, then jump over to the IE Blog and have a read about what they’re doing to bring things up to where everyone else was three years ago.

All IE users are either not fans of the internet or work for some mindless corporation which insists on installing IE6 on their work machines because they have some antiquated internal application that requires IE6 to function. That is a very sweeping generalisation, and I don’t really care, I can say this because IE users won’t see this paragraph unless they actually highlight the text in their inferior browsers. I was going to hide this whole article, but that seemed like too much effort for a quick thrill. (spoiler alert: I’ve used rgba for the text colour.)

This is also my 500th post on this blog, so it’s only fitting that its a rant. Let’s go.

My eyes, it burns, it burns…

Acid will do that. But with a diluted 55/100 score thus far in the Acid3 test it is more likely to fizz and tingle than actually burn. Safari 4 gets perfect 100/100, and Firefox 3.6 94/100. Long way to go guys, maybe start boasting once you hits the 90’s… not the 50’s.
» Continue reading “Internet Explorer Nein!”

••••

Enabling Twitter avatars within BuddyPress

Article
02Mar
17

First up, the first step in this process is to install the Twit Connect plugin which you can do by following these instructions, then you can proceed with enabling Twitter avatars.

First up, the first step in this process is to install the Twit Connect plugin which you can do by following these instructions, then you can proceed with enabling Twitter avatars.

This is just a quick filter that I wrote while I was setting up help.deanjrobinson.com last week after I discovered that the twitter avatars weren’t working because of a different function/filter being used by BuddyPress.

I make no claims that this additional function is perfect, but I haven’t come across any problems with it yet, and I only knocked it together quickly. If you find anything wrong with it, or have any suggestions as to how it could be improved/simplified please let me know.

This new function based on one of the original functions that comes with the Twit Connect plugin which enables twitter avatars on regular WordPress blogs, just a with a few tweaks.

What you need to do is add the following code to the functions.php in your current BuddyPress theme. You can download a plain text copy of this function here (it’ll probably more reliable than copy-and-pasting from this page). Remember to backup your functions.php file before making any changes… just in case.

UPDATE: Appears some people who added this function the functions.php file in the default BuddyPress theme were seeing some error messages (I have not yet been able to recreate this error, but more than one user has reported it). Ideally you shouldn’t be modifying the default BP theme directly, you should be doing it via a child theme (find out how), so this code should be then added to the functions.php in your child theme.

7th March, UPDATE I’ve updated the function below (and the downloadable version above) to use http://tweetimag.es for the static twitter avatar URLs, it looks like it might a more reliable/consistent service.

<?php

 function bp_twc_get_avatar($avatar, $id_or_email='') {
  global $comment, $twc_user_login_suffix;

  if(is_object($comment)) {
   $user_id = $comment->user_id;
  }

  if (is_object($id_or_email)) {
   $user_id = $id_or_email->user_id;
  }

  if (is_array($id_or_email)) {
   if ($id_or_email['object']=='user') {
    $user_id = $id_or_email['item_id'];
   }
  }

  if (get_usermeta($user_id, 'twcid')) {
   $user_info = get_userdata($user_id);
   $twav_suffix = '';

   if ( $id_or_email['width'] ) {
    $twav_size = $id_or_email['width'];
    if( $twav_size < 32 ) {
     $twav_suffix = 'm';
    } else if ( $twav_suffix < 64 ) {
     $twav_suffix = 'n';
    } else {
     $twav_suffix = 'b';
    }
   } else if ( 'full' == $id_or_email['type'] ) {
    $twav_size = BP_AVATAR_FULL_WIDTH;
    $twav_suffix = 'b';
   } else if ( 'thumb' == $id_or_email['type'] ) {
    $twav_size = BP_AVATAR_THUMB_WIDTH;
    $twav_suffix = 'n';
   }

   $out = 'http://img.tweetimag.es/i/'. str_replace($twc_user_login_suffix,"",$user_info->user_login) . '_' .$twav_suffix;

   $avatar = "<img alt='Twitter Avatar' src='{$out}' class='avatar avatar-{$twav_size}' height='{$twav_size}' width='{$twav_size}' />";
   return $avatar;

  } else {
   return $avatar;
  }

 }

 // Check if Twit Connect exists (since its without it this function is pointless)
 if( function_exists( 'twit_connect' ) ) {

  add_filter( 'bp_core_fetch_avatar', 'bp_twc_get_avatar',10,4);

 }

?>

Show me the original version

I will add an explanation of what its doing if people are interested/curious.

••••

Want Help? Come get some!

Article
24Feb
3

I’ve grown tired of doing support via blog comments or emails, so it’s time for a change. Introducing HELP! my new BuddyPress powered support site. You can now get support for all my WordPress plugins and themes, plus Hahlo, nextga.me (once its finished….) and other projects all in one spot.

I’ve grown tired of doing support via blog comments or emails, so it’s time for a change. Introducing HELP! my new BuddyPress powered support site. You can now get support for all my WordPress plugins and themes, plus Hahlo, nextga.me (once its finished….) and other projects all in one spot.

Want Help? Come get some!

In the past I’ve had trouble finding a “good” solution for support. I’ve tried various forum packages, with each being abandoned because they were either insufficient or superfluous to my needs… that and every forum I’ve run has been hit by low-life spammers selling v1agr4 or offering to transfer $99,000,000,000 to me from their Nigerian bank account.

Following these ‘failures’ I tried hosted solutions like GetSatisfaction and UserVoice, again they didn’t really meet my needs, and I found that I was still left fielding support questions in blog comments and via email. In the case of support for Hahlo I stuck pretty strongly to GetSatisfaction (even if I didn’t check it as often as I probably should have). Recently GetSatisfaction have announced changes to their pricing plans, which ultimately means the free account (which I’ve been using) would appear that its losing a bunch of the more useful features. I should clarify that this change isn’t the only reason I’m moving away from GetSatisfaction, the main reason is that I wanted something I had more control over, and that I could also use for supporting my WordPress Plugins and Themes etc.

» Continue reading “Want Help? Come get some!”

••••

So they called it the iPad.

Article
28Jan
7

We’ve waited so long for it but in the end, and as cool as it is, if I find it just a little meh but at the same time I want one does that make me a bad person?

We’ve waited so long for it but in the end, and as cool as it is, if I find it just a little meh but at the same time I want one does that make me a bad person? Sure, I had hoped for something in-between the iPhone and a MacBook, in terms of size that is exactly what it is. But, I’ll be honest my first impression was that “it’s just a giant iPod Touch” (or iPod Touch 3GXL…)

It is running what is basically the iPhone OS, with slightly bigger icons, and plenty of space between them on the home screen. I mean plenty. A small child could thump their paw down on the screen an only hit one app. It has the general iPhone feel (flick/pinch/swipe etc) to the interface, with the exception of the OS X style dock, also with really spaced out icons (I wonder how many you can actually put on it?).

Great Good So-So
Price point
Design
Speed
No Flash
Delicious Library… err, I mean iBooks
It runs iPhone apps (including those you already own)
Tech specs - seem pretty good for the price
Redesigned core apps
Claimed battery life
The Bezel
The way iPhone apps run
No Camera
Additional cost for 3G
The name. iPad? hmm…

» Continue reading “So they called it the iPad.”

••••

To retweet or not to retweet

Article
24Dec
3

Yesterday I launched Hahlo 4.1 and one of the changes was the switch from to old-style ‘RT’ retweets over to the new twitter retweet api. Unfortunately this seems to have upset a few people, not necessarily because I’ve added support for the new api but because I chose not to maintain the old-style RTs as well. This is a tale of why.

Yesterday I launched Hahlo 4.1 and one of the changes was the switch from to old-style ‘RT’ retweets over to the new twitter retweet api. Unfortunately this seems to have upset a few people, not necessarily because I’ve added support for the new api but because I chose not to maintain the old-style RTs as well. This is a tale of why.

To retweet or not to retweet - a tale of good vs. evil

Keep in mind this falls into the category of “people can use twitter however the hell they want”, you’re allowed to disagree, just don’t be a knob about it.

The Hahlo side of the things

Hahlo is about moving forward, not backwards, if I were not interested in keeping up with the new feature additions to twitter (and the api) then Hahlo probably wouldn’t still be in active development. Also maintaining two different methods for retweeting means more work on my side making sure they both continue working, having an ‘RT’ button which performs different functions for different people is not only illogical, but would very quickly become a pain to support. Also, please remember I don’t get paid anything to work on or support Hahlo, I do that because I’m a nice guy.

The twitter side of things

Those who’ve used Hahlo will see that I’ve tried to match the same ‘flow’ as on twitter.com. For example, you click ‘retweet’ and you’re asked to confirm that you’d like to retweet this tweet to your followers. Not everyone likes the new-style retweets, but then not everyone like change. But changes happens, deal with it.

Evan Williams wrote a great post on why retweets work the way that they work on twitter.com, if you haven’t read it I strongly suggest you do.

The “retweets annoy me” side of things

There is a reason I never added retweets to Hahlo prior to version 4, I don’t (or didn’t to be more precise) like them. And then when I did add them, I also added an ‘hide all retweets’ option. This is why, and if you disagree (likely) I’d like to hear (constructively) why that is. Lets try a common example to illustrate my point.

» Continue reading “To retweet or not to retweet”

••••

New WordPress theme: Dear Diary

Article
24Oct
1

Dear Diary is a super simplistic theme for WordPress. It is best suited to a basic journal or diary where content is king and the theme should stay mostly out of your way.

Dear Diary is a super simplistic theme for WordPress. It is best suited to a basic journal or diary where content is king and the theme should stay mostly out of your way.

deardiaryheader

What’s it great for?

With its ruled-notepad styling Dear Diary is perfect for a simple online journal or diary. Of course you can still posts images and videos etc, but simple text is what Dear Diary does best. You can check out a full live preview here.

» Continue reading “New WordPress theme: Dear Diary”

••••

Introducing WPAPI.ORG

Article
18Oct
0

Ok, so I actually launched this last weekend, but I’m only just now getting around to writing (briefly) about it. WPAPI.ORG is a super easy to use API which you can use to retrieve stats for all those great plugins and themes that you’ve got hosted on WordPress.org. Why would you want to do this?

Ok, so I actually launched this last weekend, but I’m only just now getting around to writing (briefly) about it. WPAPI.ORG is a super easy to use API which you can use to retrieve stats for all those great plugins and themes that you’ve got hosted on WordPress.org. Why would you want to do this?

WPapi.org

Why did I build this thing?

Because I could. No, seriously, the reason that I’ve built this (and made it available to everyone else) is that I was looking for ways to pull back the stats from WordPress.org and display them on the project pages here on my site, maybe even with some sexy graphs using something like Raphaël JS. After some investigation I found the xml feed that powers the graphs on WordPress.org, but that didn’t really help me. What I really wanted was JSON.

» Continue reading “Introducing WPAPI.ORG

••••

iPhone horizontal home screen

Article
26Sep
3

Why can’t my iPhone do this? Apple has has horizontal modes in some (but annoyingly not all) core apps, so why can’t they add it to the home screen as well?

iPhone horizontal home screen concept

Why can’t my iPhone do this? Apple has horizontal modes in some (but annoyingly not all) core apps, so why can’t they add it to the home screen as well? It wouldn’t necessarily have to be just like my mockup, which fits an additional 4 apps and drops the text labels (could get them to fit nicely), instead each individual icon could just swivel 90 degree left or right so they are the right way up when you’re looking at them. In horizontal mode you might also flick through your various home screens by scrolling up and down instead of left and right.

••••

Fluency 2.1 now available

Article
20Sep
3

It’s been a while between updates, mostly due to the time spent working on getting Hahlo4 finished, but with that out of the way it was time to update Fluency to work with the latest version of WordPress. The big news is that Fluency is now hosted in the WordPress plugins directory, meaning that you will be able to use the built-in plugin installer, and auto update features in WordPress when new version are released.

Fluency 2.1 now available

It’s been a while between updates, mostly due to the time spent working on getting Hahlo4 finished, but with that out of the way it was time to update Fluency to work with the latest version of WordPress. The big news is that Fluency is now hosted in the WordPress plugins directory, meaning that you will be able to use the built-in plugin installer, and auto update features in WordPress when new version are released.

You can get more details, and grab Fluency 2.1 from the WordPress plugin directory here.

New features

There aren’t mountains of new features but there a couple worth mentioning. I’ve added a ‘Fluency Options’ page, which can be found under the ‘Settings’ menu, there are just two options for the moment. Both were requests from users, you can disable the Fluency style on the login page, and you can also specify a custom logo to be displayed on the login page (this works with the Fluency login style turned on or off)

For few versions now WordPress has come with two default admin color schemes, but up until now Fluency has only had a grey-based scheme. I’ve now added full support for a Classic/Blue color scheme, based on whichever color scheme you have selected in you user profile on your blog.

» Continue reading “Fluency 2.1 now available”

••••

How to add clickable hashtags to your twitter widget

Article
26Jul
3

A few weeks ago Twitter finally added clickable hashtags to twitter.com. However if your one of the many people who make use of the html/js widget provided by twitter to display recent tweet on your own website then you will have noticed that you still don’t get clickable hashtags in the list of tweets that get displayed. Luckily this is pretty easy to fix if you want to, and you aren’t freaked out at the thought of modifying a little javascript.

A few weeks ago Twitter finally added clickable hashtags to twitter.com. However if your one of the many people who make use of the html/js widget provided by twitter to display recent tweet on your own website then you will have noticed that you still don’t get clickable hashtags in the list of tweets that get displayed. Luckily this is pretty easy to fix if you want to, and you aren’t freaked out at the thought of modifying a little javascript.

UPDATE: This article is no longer relevant, twitter have completely changed their widgets (which you can grab here), and the new widgets now support hashtags out of the box. Looks like any existing widgets should continue working as they just use the user_timeline API method which hasn’t changed.

Below is the default javascript function that is called by the default HTML Twitter widget, you can grab the widget code here or look at the full javascript file here.

There isn’t much to it, just the callback function, and a function to format the timestamp for each tweet. I’m only focusing on the callback in this post as that is all we need to play with to get clickable hashtags working. The default callback runs through the list of tweets that have been returned and using a couple of regular expressions (regex) it pulls out urls and @mentions and links them up.
» Continue reading “How to add clickable hashtags to your twitter widget”

deanjrobinson.com
twitter was not updated. | tumblr was not updated. | lastfm was not updated. |