YouTube Browser-Based Uploader with PHP

Aug 21 2012

Download Example

RD2 wanted to add something special with our 3rd iteration of building the World Traveler Internship website. We created a very unique feature within the application process...

PHP Weather widget using Google’s weather API

May 17 2012
PHP Weather widget using Google’s weather API
UPDATE 08/28/2012

Google has abandoned their weather API and are now using wunderground.com Weather API. I will be creating a new tutorial showing the API in action very soon. Check back to the RD2 blog for updates. Please disregard the below code.

With the recent launch of the Elbowz Racing team website, we decided to add something a little bit fun, but still applicable, into the project: a self-maintaining weather widget using Google’s weather API and PHP...

Detecting the Kindle Fire with PHP

Mar 8 2012
Detecting the Kindle Fire with PHP

There are many reasons to detect the type of platform your user is viewing your website on. There are articles all over the internet about detecting iphones, ipads, android devices, etc. But when it comes to detecting the Kindle Fire, things can get a bit strange. To get the user’s platform, you will want to use the PHP method, $_SERVER['HTTP_USER_AGENT'] (see below).

<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
echo $user_agent;
?>

This will return: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us; Silk/1.1.0-80) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 Silk-Accelerated=true

As you can see, there are mentions of Mozilla, Apple, WebKit, Safari, etc...

Enhanced WordPress User Profiles, Part 3: Displaying the New Fields in Your Template File

Jun 23 2010

In part three of our series recapping my presentation on Enhancing WordPress User Profiles, we’ll go through the steps and code involved in displaying the new fields we added to the database using functions.php.

For our demonstration, I am creating a team biography page for a corporate or small business website. Using WordPress’ User Profiles, we can create a user account for each team member, and grant them access to maintain their own information. I’ve also created a special role in WordPress for my team called “Team” using Capability Manager...

Enhanced WordPress User Profiles, Part 2: Adding Extra Fields to the Profile

Jun 22 2010

In part two of our series recapping my presentation on Enhancing WordPress User Profiles, we’ll go through the steps and code involved in manually removing and adding new fields to the default User Profile form in WordPress.

For our demonstration, I am creating a team biography page for a corporate or small business website. Using WordPress’ User Profiles, we can create a user account for each team member, and grant them access to maintain their own information.

The default User Profile form built into WordPress includes several fields you might not want to use or display to those team members, like Jabber or IM information...