Google Analytics WordPress Plugin

The Google Analytics WordPress Plugin adds your Google Analytics tracking code to your WordPress website without having to modify your theme. Simply install the Google Analytics WordPress Plugin, enter your account code in the Google Analytics Options page, and your tracking code will be automatically inserted into every page on your website.

Download

sd-google-analytics-1_0.zip (3Kb)

Installation

  1. Upload the plugin to the ‘wp-content/plugins’ folder in your WordPress directory
  2. Activate the plugin via the ‘Plugins’ admin panel
  3. Go to Options > Google Analytics and enter your Google Analytics user account code (_uacct)

Note: After downloading the Google Analytics WordPress Plugin, extract the ZIP package and open the readme.txt file. The readme file contains full instructions and an FAQ.

Where can I find my user account code?

Your user account code takes the form UA-xxxx-x. To access your user account code:

  1. Sign in to Google Analytics
  2. From the Analytics Settings page, find the profile for which you would like to retrieve the user account code. Please note that your user account code is profile-specific.
  3. From that profile’s Settings column, click Edit
  4. At the top right of the Main Website Profile Information box, click Check Status
  5. Your user account code can be copied and pasted from the text box containing your tracking code in the Instructions for adding tracking section
Posted in Software, WordPress Plugins | 1 Comment

Blueprint WordPress Theme

Blueprint is a WordPress Theme for the discerning.

Features

  • 100% valid and web standards compliant markup and style
  • Semantic markup (the <h1> element is used for post and page titles – not the site name)
  • Cross-linking of all content for enhanced usability and ethical search engine optimisation (SEO)
  • Informative and usable search results
  • Dublin Core metadata
  • Widget-readiness
  • and more…

Installation

  1. Upload `blueprint` to the `/wp-content/themes/` directory
  2. Activate the theme through the ‘Presentation’ menu in WordPress
Posted in Software, WordPress Themes | 2 Comments

PHP Form Mail

PHP Form Mail is a PHP script which provides you with the ability to the have the information from any type of form on your website (e.g. contact, support, feedback, etc.) sent to one or any number of specified email addresses. PHP Form Mail is perfect for web designers who want to create forms for clients and have them sent via email in a professional manner without having to learn how to program with PHP – in fact, you don’t have to know, touch or even look at any PHP code. PHP Form Mail is flexible enough to handle any type of form you can imagine – from a simple contact form, to a more complex enquiry form and more! PHP Form Mail also allows you to specify all the expected email parameters, including From, To, Cc, Bcc, Subject and Body.

Download

php-form-mail-1_0.zip (7Kb)

Features

  • Easy to use
  • No configuration necessary – just create your form following the PHP Form Mail Instructions and Guidelines in the provided README file, upload and go!
  • Flexible enough to handle any type of form
  • Automatic validation of all email addresses
  • Ability to specify a Custom thankyou page when email is sent

Requirements

PHP Form Mail uses the PHP mail() function. For PHP Form Mail to work correctly, PHP must be available and have access to the sendmail binary on your web server. If PHP Form Mail is not working as expected, the most likely cause is that PHP has not been configured correctly to send email. Please contact your Internet Service Provider (ISP) for more information.

Instructions

After downloading PHP Form Mail, extract the ZIP package and open the README.html file in your web browser. The README file contains full documentation and examples to get you up-and-running with PHP Form Mail quickly and easily.

Posted in PHP, Software | Leave a comment

JavaScript Image Carousel

The JavaScript Image Carousel scrolls a collection of images.

Example

Below is a screenshot of the JavaScript Image Carousel. Download the JavaScript Image Carousel to see it in action and use it on your website.

JavaScript Image Carousel 1.0

Download

javascript-image-carousel-1_0.zip (50Kb)

Note: Don’t let the size fool you! The JavaScript Image Carousel is packaged with script.aculo.us 1.7.0 (which includes Prototype 1.5.0) – the latest versions at the time of this release. The JavaScript Image Carousel itself is little over 1Kb.

Requirements

The JavaScript Image Carousel requires the script.aculo.us JavaScript Library (which includes the Prototype JavaScript framework). The JavaScript Image Carousel is packaged with script.aculo.us 1.7.0 (which includes Prototype 1.5.0) – the latest versions at the time of this release. You can use the pre-packaged versions of script.aculo.us and Prototype or download the latest version/s at the respective websites.

Instructions

After downloading the JavaScript Image Carousel, extract the ZIP package and open the README.html file in your web browser. The README file contains full documentation and examples to get you up-and-running with the JavaScript Image Carousel quickly and easily.

Posted in JavaScript, Software | Leave a comment

Valid Social Bookmark Links in WordPress

Let’s face it, we’ve gone social bookmark crazy. Who among us has the constitution to resist the allure of those cute little icons and oh-so-clever domain names? Take a look at the bottom of this article and you’ll soon realise I’m as guilty of this fad as anyone. But what separates the social bookmark links on Signified apart from others on the Worldwide Web? That’s right – nobody uses them they’re deep-fried in 100% valid XHTML – and soon enough, yours will be too! Taking the Title and PermaLink of this article as an example, let’s create an "Add to del.icio.us" link that will stand up to even the closest scrutiny of Mr Burners-Lee.

The Ugly

The popularly prescribed (and completely invalid) method of adding social bookmark links in WordPress goes something like this:

<a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">Add to del.icio.us</a>

And, for your (or the plugin author’s) effort, you get this:

<a href="http://del.icio.us/post?url=http://signified.net/valid-social-bookmark-links-in-wordpress/&title=Valid Social Bookmark Links in WordPress">Add to del.icio.us</a>

Which results in the following warnings:

  • unescaped & or unknown entity "&title"
  • <a> escaping malformed URI reference

Now even the most novice of standardistas will quickly point out the use of that nasty little unencoded ampersand (&), and according to the W3C:

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text.

The solution? Encode it!

The Bad

Ok, our "&" has now become a nicely encoded "&", giving us the following:

<a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>">Add to del.icio.us</a>

Not too bad, but still bad:

  • <a> escaping malformed URI reference

We still have the little problem of our "malformed URI reference." But what is the validator going on about? Well, according to RFC 1738 (Uniform Resource Locators (URL)):

The space character is unsafe because significant spaces may disappear and insignificant spaces may be introduced when URLs are transcribed or typeset or subjected to the treatment of word-processing programs.

And as you can see, straight after our newly encoded ampersand, we have this space-filled title:

http://del.icio.us/post?url=http://signified.net/valid-social-bookmark-links-in-wordpress/&amp;title=Valid Social Bookmark Links in WordPress

The solution? Encode it!

The Good

Now we know we have to encode those "unsafe" spaces – but how? The trick is to make use of the before, after and display parameters of the_title() WordPress Template Tag in order to have it return the value of the title rather than output (or echo) it to screen. For example:

the_title('', '', false);

Note: Ok, ok – I know you don’t really have to use the_title('', '', false). You could use get_the_title() if you were in the habit of swimming 10 Kilometres below the surface of the WordPress documentation. I’m just in the habit of making clear what is already in plain site!

Now we have the value of the title, we can use PHPs urlencode() function to encode those nasty space characters, before topping it off with the WordPress _e() function:

<a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&amp;title=<?php _e(urlencode(the_title('', '', false))); ?>">Add to del.icio.us</a>

And the result:

<a href="http://del.icio.us/post?url=http://signified.net/valid-social-bookmark-links-in-wordpress/&amp;title=Valid+Social+Bookmark+Links+in+WordPress">Add to del.icio.us</a>

100% valid goodness!

Posted in WordPress | 2 Comments