<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Damien Carbery - Website Development &#187; Web Dev</title>
	<atom:link href="http://www.damiencarbery.com/category/web-dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.damiencarbery.com</link>
	<description>Grow Your Business Online - Web sites to boost your business</description>
	<lastBuildDate>Mon, 30 Jan 2012 22:20:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Easily add debug information to your WordPress header</title>
		<link>http://www.damiencarbery.com/2011/10/easily-add-debug-information-to-your-wordpress-header/</link>
		<comments>http://www.damiencarbery.com/2011/10/easily-add-debug-information-to-your-wordpress-header/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 11:29:05 +0000</pubDate>
		<dc:creator>damien</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.damiencarbery.com/?p=900</guid>
		<description><![CDATA[Using a WordPress action you can include PHP global variables in your html without having to modify any theme files.]]></description>
			<content:encoded><![CDATA[<p>When working on PHP based sites I frequently include the PHP global variables as a comment in the html. For security reasons I only display it for my IP address.</p>
<p>In a few WordPress themes that I have developed I have modified the header.php file to include the same code. After some recent WordPress coding using filters I examined ways to see the global variables <em>without</em> modifying the theme files. This is exactly what WordPress hooks, filters and actions were created for.</p>
<p>The obvious choice was to use the add_action() function to call my function in the header area (use the wp_head action hook). The plugin can be installed in the <a href="http://codex.wordpress.org/Must_Use_Plugins">Must Use Plugins</a> directory (named &#8216;mu-plugins&#8217;) so that one doesn&#8217;t even have to log into the dashboard to enable it (though I note that this method has <a href="http://codex.wordpress.org/Must_Use_Plugins">some caveats</a> but they are not a problem for this).</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
add_action( 'wp_head', 'mu_debug_info' );

function mu_debug_info() {
  if ($_SERVER['REMOTE_ADDR'] == '192.168.1.1') {
    echo '&lt;!-- Server Debug Info from mu-debug-info plugin.';
    echo &quot;\n\$_SERVER: &quot;; var_dump($_SERVER);
    echo &quot;\n\$_GET: &quot;; var_dump($_GET);
    echo &quot;\n\$_POST: &quot;; var_dump($_POST);
    echo &quot;\n\$_SESSION: &quot;; var_dump($_SESSION);
    echo ' --&gt;', &quot;\n&quot;;
  }
}
?&gt;</pre>
<p>The next step is to create an options panel in the dashboard to allow setting of the IP address. The code can be expanded further to include more WordPress variables.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2011/10/easily-add-debug-information-to-your-wordpress-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding keywords to your WordPress menu</title>
		<link>http://www.damiencarbery.com/2011/10/adding-keywords-to-your-wordpress-menu/</link>
		<comments>http://www.damiencarbery.com/2011/10/adding-keywords-to-your-wordpress-menu/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 21:22:25 +0000</pubDate>
		<dc:creator>damien</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.damiencarbery.com/?p=898</guid>
		<description><![CDATA[Yet another WordPress filter provided the ability to use a regular expression to add to the title parameter of the WordPress menus. Potentially good for SEO.]]></description>
			<content:encoded><![CDATA[<p>A few months ago I saw a WordPress based site for a photographer where all the menu items had SEO keywords in the <em>title</em> attribute. The intent was to improve SEO for the site though posts that I have read say that the <a href="http://www.seomoz.org/ugc/link-tilte-attribute-and-its-seo-benefit">attribute is not used by search engines</a>.</p>
<p>After using a filter to <a href="http://www.damiencarbery.com/2011/10/enhancing-display-posts-shortcode-plugin/" title="Enhancing Display Posts Shortcode plugin">tailor the post display</a> on the 4tec home page and another filter to <a href="http://www.damiencarbery.com/2011/09/howwoo_pagination-filter-saved-my-hide/" title="How woo_pagination filter saved my hide">fix the woo_pagination error</a> on the Irish Triathlon site I looked into a filter for the wp_nav_menu() function.</p>
<p>From the <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">wp_nav_menu function page</a> I got the <a href="http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/nav-menu-template.php">source file</a> for the function. There are 10 filters in the code. After a bit of experimenting I found just the right filter &#8211; <a href="http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/nav-menu-template.php#L95">walker_nav_menu_start_el</a>.</p>
<p>So, after a little bit of regular expression coding, my menu items had lovely titles.</p>
<p>The next step is to expand this into a plugin where the extra title text is set in the admin area.</p>
<pre class="brush: php; title: ; notranslate">// Append some text to the title attribute in menu links.
add_filter( 'walker_nav_menu_start_el', 'wpb_nav_menu_item', 20, 4 );
function wpb_nav_menu_item($item_output, $item, $depth, $args) {
  $extra_title = 'EXTRA BIT';

  if (strpos($item_output, 'title=')) {
    // Append $extra_title to the existing title text.
    return preg_replace('/title=\&quot;([^\&quot;]*)\&quot;/', 'title=&quot;\1 - '.$extra_title.'&quot;', $item_output, 1);
  }
  else {
    // Create title text made up of menu text plus $extra_title.
    return str_replace('href=', 'title=&quot;'.$item-&gt;title.' - '. $extra_title.'&quot; href=', $item_output);
  }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2011/10/adding-keywords-to-your-wordpress-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enhancing Display Posts Shortcode plugin</title>
		<link>http://www.damiencarbery.com/2011/10/enhancing-display-posts-shortcode-plugin/</link>
		<comments>http://www.damiencarbery.com/2011/10/enhancing-display-posts-shortcode-plugin/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 21:04:33 +0000</pubDate>
		<dc:creator>damien</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.damiencarbery.com/?p=834</guid>
		<description><![CDATA[At Sun Microsystems I enjoyed submitting build fixes to the GNOME community. And I got a nerdy trill seeing my name in the ChangeLog files. After using the Display Posts Shortcode in the 4tec site, I submitted a patch to enhance that plugin.]]></description>
			<content:encoded><![CDATA[<p>When I worked at Sun Microsystems I was in the GNOME team. I regularly submitted <a title="312 bug reports to GNOME's Bugzilla." href="http://tinyurl.com/6l7hatt">build fix patches to the community</a>. I always got a bit of a nerdy thrill when a new version of a GNOME component would come out and <a title="Example of my name in the the ChangeLog in the pango module." href="http://svn.gnome.org/viewvc/pango/trunk/ChangeLog?r1=1777&amp;r2=1779">my name would be in the ChangeLog file</a>.</p>
<p>When I was developing the <a href="http://www.damiencarbery.com/2011/10/4tec/" title="4tec strategic counter game - Connect 4 in another dimension">4tec.ie web site</a> recently, the client wanted the latest posts to be on the home page. The home page would be a static page so making it a blog format would require modifying the theme&#8217;s files, something I wanted to avoid.</p>
<p>I found a cool plugin, <a title="Plugin homepage for the Display Posts Shortcode plugin." href="http://www.billerickson.net/shortcode-to-display-posts/">Display Posts Shortcode</a> that would display posts via a shortcode. Unfortunately the html it produced made it difficult for me to style and the post thumbnails were not being displayed. Thankfully the author, Bill Erickson, provided a filter that allowed me change the html.</p>
<p>As I current use WordPress almost exclusively, I am always interested in contributing to the WordPress community in some way. Every now and again I look at the <a title="WordPress bugs that have patches and need testing." href="http://core.trac.wordpress.org/report/13">WordPress bug tracker</a> to see if there are simple bugs where the patch needs testing or see if I can enhance a plugin in some way.</p>
<p>After I finished the 4tec.ie site I had an itch to enhance the <a href="http://wordpress.org/extend/plugins/display-posts-shortcode/" title="Display Posts Shortcode plugin">Display Posts Shortcode plugin</a> to allow users specify different list types (it defaults to an unordered list). Like a good citizen, instead of just suggest the change, I developed a patch that the <a href="http://www.billerickson.net/shortcode-to-display-posts/" title="Information page for Display Posts Shortcode plugin">plugin owner</a> could review and test, and hopefully use.</p>
<pre class="brush: php; title: ; notranslate">--- display-posts-shortcode.orig.php	2011-10-05 01:37:32.000000000 +0100
+++ display-posts-shortcode.php	2011-10-06 10:57:08.221000000 +0100
@@ -39,6 +39,7 @@
 		'image_size' =&gt; false,
 		'taxonomy' =&gt; false,
 		'tax_term' =&gt; false,
+        'list_type' =&gt; 'ul',
 	), $atts ) );

 	$args = array(
@@ -74,7 +75,29 @@
 	$return = '';
 	$listing = new WP_Query($args);
 	if ( $listing-&gt;have_posts() ):
-		$return .= '&lt;ul class=&quot;display-posts-listing&quot;&gt;';
+        $container = 'ul';
+        $post_container = 'li';
+        switch ($list_type) {
+            case 'ol':
+            case 'ordered':
+            case 'ordered_list':
+              $container = 'ol';
+              $post_container = 'li';
+              break;
+            case 'none':
+              $container = 'div';
+              $post_container = 'div';
+              break;
+            case 'ul':
+            case 'unordered':
+            case 'unordered_list':
+            default:
+              $container = 'ul';
+              $post_container = 'li';
+              break;
+        }
+		$return .= '&lt;' . $container . ' class=&quot;display-posts-listing&quot;&gt;';
+        $post_count = 1;
 		while ( $listing-&gt;have_posts() ): $listing-&gt;the_post(); global $post;

 			if ( $image_size &amp;&amp; has_post_thumbnail() )  $image = '&lt;a class=&quot;image&quot; href=&quot;'. get_permalink() .'&quot;&gt;'. get_the_post_thumbnail($post-&gt;ID, $image_size).'&lt;/a&gt; ';
@@ -88,13 +111,14 @@
 			if ($include_excerpt) $excerpt = ' - &lt;span class=&quot;excerpt&quot;&gt;' . get_the_excerpt() . '&lt;/span&gt;';
 			else $excerpt = '';

-			$output = '&lt;li&gt;' . $image . $title . $date . $excerpt . '&lt;/li&gt;';
+            $output = sprintf('&lt;%s id=&quot;post-%d&quot;&gt;%s%s%s%s&lt;/%s&gt;', $post_container, $post_count, $image, $title, $date, $excerpt, $post_container );

 			$return .= apply_filters( 'display_posts_shortcode_output', $output, $atts, $image, $title, $date, $excerpt );

+            $post_count++;
 		endwhile;

-		$return .= '&lt;/ul&gt;';
+		$return .= &quot;&lt;/$container&gt;&quot;;
 	endif; wp_reset_query();

 	if (!empty($return)) return $return;
</pre>
<p>Bill and I exchanged a few emails about my patch. He wanted to just provide a filter to allow a user change the tags. As filters require PHP development skills I told him this and encouraged him to provide shortcode arguments too as these could be used by someone without PHP experience.</p>
<p>Bill then released version 1.6 with a new shortcode argument (&#8220;wrapper&#8221;) and two new filters. While the code is very different from my patch (it&#8217;s very elegant) it essentially achieves the same result and I am happy to have nudged Bill in that direction.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2011/10/enhancing-display-posts-shortcode-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How woo_pagination filter saved my hide</title>
		<link>http://www.damiencarbery.com/2011/09/howwoo_pagination-filter-saved-my-hide/</link>
		<comments>http://www.damiencarbery.com/2011/09/howwoo_pagination-filter-saved-my-hide/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 09:40:53 +0000</pubDate>
		<dc:creator>damien</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.damiencarbery.com/?p=813</guid>
		<description><![CDATA[The Zeus web server that Register365 use on their shared hosting servers requires that index.php be in all urls. Some code doesn't expect this - woo_pagination is in that group, but it gave me a really easy way to fix it.]]></description>
			<content:encoded><![CDATA[<p>While doing some maintenance work on the <a title="Irish Triathlon – Revamp" href="http://www.damiencarbery.com/2011/08/irish-triathlon-revamp/">new theme for IrishTriathlon.com</a> Brian mentioned that the page links (Page 1, 2, Next Page etc) at the bottom of the home page did not work.</p>
<p>I tried it out and found that you get a 404 error when you click on any of the page links. They worked okay on the test site that we used (on my web hosting account here on <a title="Blacknight Solutions, web hosting based in Ireland" href="http://www.blacknight.com/">Blacknight</a>). More strange was that the page links worked in the category archive pages.</p>
<p>I then noticed that the home page links were missing the &#8220;<em>index.php</em>&#8221; part of the url that is required on Register 365 hosting because they use <a href="http://www.zeus.com/products/web-server">Zeus web server</a> (and its frustrating url rewriting scripting language).</p>
<p>I went trawling through the source code for the IrishTriathlon.com theme and into the WooFramework code and then deep into the WordPress source to see how they generated the page links. It got daunting quickly. I was dreading having to rewrite the code to work on Zeus web server (and have yet another reason to dislike it).</p>
<p>Then, right at the end of the woo_pagination function, I spotted a woo_pagination filter:</p>
<pre class="brush: php; title: ; notranslate">/* Allow devs to completely overwrite the output. */
$page_links = apply_filters( 'woo_pagination', $page_links );</pre>
<p>The source code comment gave me hope!</p>
<p>I did a little experiment modifying $page_links and then I tried using php&#8217;s <a href="http://ie2.php.net/str_replace">str_replace</a> to insert the missing &#8216;index.php&#8217; into the link urls. Woo hoo &#8211; it worked first time!! Phew.</p>
<pre class="brush: php; title: ; notranslate">// On the home page the Prev/1/2/3/Next links did not have 'index.php' in the url.
// This filter simply adds 'index.php' if necessary.
add_filter( 'woo_pagination', 'it_add_index_php_to_pagination', 20 );
function it_add_index_php_to_pagination($page_links) {
  return str_replace('com/page', 'com/index.php/page', $page_links);
}</pre>
<p>As some point I will determine if the root cause of the issue is related to the woo_pagination function or a WordPress pagination issue. I suspect the former.</p>
<p>The 3 lines of code required to fix this issue (I&#8217;m not counting the comment or closing brackets lines) reminded me of a joke when I was working on the <a href="http://www.dooyoo.co.uk/utilities/norton-commander/">Norton Commander for Windows</a> project back in 1996. One of the junior developers had an issue with the built-in editor. The senior developer helped him fix it &#8211; with 3 lines of code. So the junior dev always joked that &#8220;3 lines fixed my editor&#8221;. I guess you had to be there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2011/09/howwoo_pagination-filter-saved-my-hide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>osCommerce to OpenCart script enhancements</title>
		<link>http://www.damiencarbery.com/2011/01/oscommerce-to-opencart-script-enhancements/</link>
		<comments>http://www.damiencarbery.com/2011/01/oscommerce-to-opencart-script-enhancements/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 22:07:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[opencart]]></category>
		<category><![CDATA[oscommerce]]></category>

		<guid isPermaLink="false">http://www.damiencarbery.com/?p=629</guid>
		<description><![CDATA[I am building an online store for a client with OpenCart. I needed to import data from an existing osCommerce store so I purchased an osCommerce to OpenCart script. The script was a great help but it needed a lot of changes to work nicely and fail gracefully. I emailed the changes back to the [...]]]></description>
			<content:encoded><![CDATA[<p>I am building an online store for a client with OpenCart. I needed to import data from an existing osCommerce store so I purchased an <a href="http://stscript.info/oscommerce-to-opencart-complete-support">osCommerce to OpenCart script</a>.</p>
<p>The script was a great help but it needed a lot of changes to work nicely and fail gracefully. I emailed the changes back to the script author. At my request he has added a credit link to the <a href="http://stscript.info/oscommerce-to-opencart-complete-support">script page</a>.</p>
<p>Below is a summary of the changes I made:</p>
<ul>
<li>Add mysql_query() query string to error messages to help track down problem query.</li>
<li>Use one <a href="http://ie2.php.net/manual/en/function.strtr.php">strtr()</a> call instead of multiple calls to <a href="http://ie2.php.net/manual/en/function.str-replace.php">str_replace()</a> when creating $seo urls.</li>
<li>Do not add the product_id (or category_id or manufacturer_id) to the SEO url unless there is a url clash.</li>
<li>Count the number of products/categories/manufacturers copied to OpenCart and display at the end.</li>
<li>Don&#8217;t die() when a mysql_query() fails &#8211; store the error and display it later (for  product/category/manufacturer copying).</li>
<li>Put &#8220;Back&#8221; button inside &#8216;p&#8217; tags.</li>
<li>Added &#8216;manufacturer_to_store&#8217; table to the TRUNCATE list.</li>
<li>Reformat list of tables to truncate to make it easier to read.</li>
<li>Added setting at top of script to disable copying of image files (my osCommerce and OpenCart databases were on different servers).</li>
</ul>
<div class="box info  alignleft" style="width:500px;">I do <strong>not</strong> offer support for the <a href="http://stscript.info/oscommerce-to-opencart-complete-support">osCommerce to OpenCart script</a>. When you buy that script it comes with support so please <a href="http://stscript.info/index.php?route=information/contact">contact StsInfo</a> if you need any help with the script.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2011/01/oscommerce-to-opencart-script-enhancements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Like Button – vqmod script</title>
		<link>http://www.damiencarbery.com/2011/01/facebook-like-button-vqmod-script/</link>
		<comments>http://www.damiencarbery.com/2011/01/facebook-like-button-vqmod-script/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 12:14:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[opencart]]></category>
		<category><![CDATA[vqmod]]></category>

		<guid isPermaLink="false">http://www.damiencarbery.com/?p=619</guid>
		<description><![CDATA[I am currently developing an online store and using OpenCart. It is quite different from osCommerce as it uses MVC architecture but it is also modular so core files (generally) don&#8217;t need to be modified. Some OpenCart Extensions do require modifying core files and this is obviously bad practice and will make upgrades to the [...]]]></description>
			<content:encoded><![CDATA[<div class="box download " style="margin-bottom:0px"><a href="http://www.damiencarbery.com/wp-content/uploads/2011/01/vqmod-facebook-like-product.xml_.txt">vqmod-facebook-like-product.xml</a> (Rename from .txt)</div>
<p>I am currently developing an online store and using <a href="http://www.opencart.com/">OpenCart</a>. It is quite different from osCommerce as it uses <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC architecture</a> but it is also modular so core files (generally) don&#8217;t need to be modified.</p>
<p>Some <a href="http://www.opencart.com/index.php?route=extension/extension">OpenCart Extensions</a> do require modifying core files and this is obviously bad practice and will make upgrades to the core code difficult.</p>
<p>One of the OpenCart developers, <a href="http://theqdomain.com/ocstore/">Qphoria</a>, developed an amazing add-on that allows developers virtually modify files, including core files, with XML files. <a href="http://vqmod.com/">vQmod</a> is a Virtual File Modification System. It is fantastic!</p>
<p>Instead of modifying core files to include an extension, you use vqmod xml file to make the changes. It&#8217;s a bit more initial work but definitely worth it.</p>
<p>I am using <a href="http://www.opencart.com/index.php?route=extension/extension/info&amp;extension_id=231">Facebook Like button extension</a> to put a Facebook Like button on the product pages. It required modifying the product page&#8217;s template file. This would make theme upgrades painful and error prone so in steps vQmod.</p>
<div class="box download ">Here is the vQmod xml file: <a href="http://www.damiencarbery.com/wp-content/uploads/2011/01/vqmod-facebook-like-product.xml_.txt">vqmod-facebook-like-product.xml</a> (Rename from .txt)</div>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2011/01/facebook-like-button-vqmod-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Brooks Running insulting Ireland?</title>
		<link>http://www.damiencarbery.com/2010/10/brooks-running-insulting-ireland/</link>
		<comments>http://www.damiencarbery.com/2010/10/brooks-running-insulting-ireland/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 14:13:19 +0000</pubDate>
		<dc:creator>damien</dc:creator>
				<category><![CDATA[Laziness]]></category>
		<category><![CDATA[Typo]]></category>
		<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://www.damiencarbery.com/?p=528</guid>
		<description><![CDATA[Brooks Running has a new &#8220;Brite Green&#8221; range of hi-viz running gear for the dark evenings. Hi-Viz gear seems to keep moving through different colours as one colour becomes too prevalent (yellow was first, then orange and I&#8217;ve seen pink too). I went to their Stockists Locator page to see if there were any retailers [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.damiencarbery.com/wp-content/uploads/2010/10/brooks-rebuplic.jpg" rel="shadowbox[sbpost-528];player=img;" title="Brooks - Rebuplic typo"><img class="alignright size-thumbnail wp-image-529" title="Brooks - Rebuplic typo" src="http://www.damiencarbery.com/wp-content/uploads/2010/10/brooks-rebuplic-150x150.jpg" alt="Typo in Brooks Sports web page" width="150" height="150" /></a>Brooks Running has a new &#8220;Brite Green&#8221; range of <a href="http://www.brooksrunning.co.uk/products/210245-325/en_284/ESSENTIAL-RUN-JACKET.html">hi-viz running gear</a> for the dark evenings. Hi-Viz gear seems to keep moving through different colours as one colour becomes too prevalent (yellow was first, then orange and I&#8217;ve seen pink too).</p>
<p>I went to their <a href="http://www.brooksrunning.co.uk/dealer_uk.php">Stockists Locator page</a> to see if there were any retailers near me. The Region drop down list had a typo for Ireland (North &amp; Rebuplic of Ireland) where &#8220;Rebuplic&#8221; should be &#8220;Republic&#8221; (swap b and p).</p>
<p>I used the Customer Centre section to inform them and they replied telling me that the issue would be forwarded to the web site team to fix the issue.</p>
<p><a href="http://www.damiencarbery.com/wp-content/uploads/2010/10/brooks-repuplic-half-fix.jpg" rel="shadowbox[sbpost-528];player=img;" title="Brooks - Half fix of repuplic typo"><img class="alignright size-thumbnail wp-image-530" title="Brooks - Half fix of repuplic typo" src="http://www.damiencarbery.com/wp-content/uploads/2010/10/brooks-repuplic-half-fix-150x150.jpg" alt="Typo on Brooks web site not completely fixed" width="150" height="150" /></a>A few days later I checked the site and found that the list had been changed but that they had only half fixed it. Now it says &#8220;Repuplic&#8221; &#8211; the <strong>b</strong> was changed to a <strong>p</strong> but the other <strong>p</strong> wasn&#8217;t changed to a <strong>b</strong>.</p>
<p>I am sure that some would take this half-fix a deliberate slight against Irish people but I find that such offence takes a lot of energy.</p>
<p>Update: 4 November &#8211; the typos have finally been corrected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2010/10/brooks-running-insulting-ireland/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Your 5 mile time</title>
		<link>http://www.damiencarbery.com/2010/07/your-5-mile-time/</link>
		<comments>http://www.damiencarbery.com/2010/07/your-5-mile-time/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 20:37:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://www.damiencarbery.com/?p=423</guid>
		<description><![CDATA[Last Saturday I did the adidas Irish Runner 5 mile race in the Phoenix Park. My first mile split time was a unbelievably fast 5:07. As this was 8 seconds faster than I have ever run a mile I figured that the mile marker was in the wrong place. The rest of the mile markers [...]]]></description>
			<content:encoded><![CDATA[<p>Last Saturday I did the <a href="http://dublinmarathon.ie/race_series.php" target="_blank">adidas Irish Runner 5 mile race</a> in the Phoenix Park. My first mile split time was a unbelievably fast 5:07. As this was 8 seconds faster than I have ever run a mile I figured that the mile marker was in the wrong place.</p>
<p>The rest of the mile markers seemed to be placed reasonably accurately (well, mile 3 seemed a little long) but I finished the race a full minute faster than last year (29:47 vs 30:50). I was suspicious &#8211; I felt that something must be wrong.</p>
<p style="text-align: left;">Back home I was reading the <a href="http://www.boards.ie/vbulletin/showthread.php?t=2055954064" target="_blank">boards.ie thread on the race</a> and someone questioned whether the <a href="http://www.boards.ie/vbulletin/showthread.php?t=2055954064&amp;page=15#post66969610" target="_blank">course was short</a>. A number of others soon followed with the same conclusion, with Garmin and similar data to back it up.  My Polar HRM measured low too (it normally measures low but this time it was extra low).</p>
<p style="text-align: left;"><img class="alignright" title="5 miles script image" src="http://www.damiencarbery.com/5miles.png" alt="" width="130" height="70" />One guy <a href="http://www.boards.ie/vbulletin/showthread.php?t=2055954064&amp;page=25#post66979946" target="_blank">developed a chart</a> for people to use their chip time to extrapolate their time for a full 5 miles.  The chart only listed whole minutes so I wrote a <a href="http://www.damiencarbery.com/5mile-times.php" target="_blank">PHP script to extrapolate any time</a>.</p>
<p style="text-align: left;">I <a href="http://www.boards.ie/vbulletin/showpost.php?p=66987140&amp;postcount=392" target="_blank">posted this on the thread</a> and it was well received. I then posted it to the <a href="http://www.facebook.com/dublinmarathon?ref=ts" target="_blank">Dublin Marathon</a> page on Facebook and I saw a jump in visits to the page during the day.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2010/07/your-5-mile-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is the site actually finished?</title>
		<link>http://www.damiencarbery.com/2007/10/is-the-site-actually-finished/</link>
		<comments>http://www.damiencarbery.com/2007/10/is-the-site-actually-finished/#comments</comments>
		<pubDate>Thu, 18 Oct 2007 15:12:18 +0000</pubDate>
		<dc:creator>damien</dc:creator>
				<category><![CDATA[Laziness]]></category>
		<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://me.damiencarbery.com/2007/10/18/is-the-site-actually-finished/</guid>
		<description><![CDATA[This weekend my wife and I are attending an ante natal class at the Springfield Hotel in Leixlip. Off to the website to get directions. Nice looking site. I clicked on &#8216;Maps&#8217; at the bottom of the page. Nothing happened. The url in the status bar showed a &#8216;#&#8217; so I waited for a popup [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend my wife and I are attending an <a href="http://www.doreenbuckley.ie/Courses.html">ante natal class</a> at the <a href="http://www.springfieldhotel.ie/">Springfield Hotel</a> in Leixlip. Off to the website to get directions.</p>
<p>Nice looking site.</p>
<p>I clicked on &#8216;Maps&#8217; at the bottom of the page. Nothing happened. The url in the status bar showed a &#8216;#&#8217; so I waited for a popup window. Nothing happened. I looked at the source code (no tables &#8211; good stuff) and was quite surprised to see:</p>
<blockquote>
<pre id="line41">&lt;<span class="start-tag">a</span><span class="attribute-name"> href</span>=<span class="attribute-value">"#"</span>&gt;Maps&lt;/<span class="end-tag">a</span>&gt;</pre>
</blockquote>
<p>for all <strong>15 links</strong> in the footer! (i.e. no url, no javascript for a popup, no nuthin).</p>
<p>I did find the directions via the <a href="http://www.springfieldhotel.ie/contact.html">Contact Us</a> link at the top of the page.  Unfortunately the <a href="http://www.springfieldhotel.ie/directions.html">directions</a> seem to have been copied from the AA Route Planner &#8211; they are horribly verbose. The M50 and M1 toll prices are out of date too.</p>
<p>The page also mentions getting their by rail but omits which <a href="http://www.iarnrodeireann.ie/your_journey/your_station.asp?letter=L&amp;action=showdetail&amp;station_id=84" title="Leixlip Confey station info">Leixlip</a> <a href="http://www.iarnrodeireann.ie/your_journey/your_station.asp?letter=L&amp;action=showdetail&amp;station_id=85" title="Leixlip Louisa Bridge station info">station</a> to use and directions from the station to the hotel (it&#8217;s Leixlip Confey and it&#8217;s about <a href="http://www.gmap-pedometer.com/?r=1398363" title="Gmaps Pedometer route between station and hotel">1.25 miles from the station</a> to the hotel).</p>
<p>It then lists three <a href="http://www.dublinbus.ie">Dublin Bus</a> routes to Leixlip but gives a link to CIE&#8217;s website instead of to the timetables <a href="http://www.dublinbus.ie/your_journey/viewer.asp?route=66" title="Route 66 timetable">of</a> <a href="http://www.dublinbus.ie/your_journey/viewer.asp?route=66A" title="Route 66A timetable">each</a> <a href="http://www.dublinbus.ie/your_journey/viewer.asp?route=66B" title="Route 66B timetable">route</a>.</p>
<p>I reported the links, directions and train issues a week ago. Nothing has changed except for a typo (City Center -&gt; City Centre) being fixed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2007/10/is-the-site-actually-finished/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find the phone number</title>
		<link>http://www.damiencarbery.com/2007/10/find-the-phone-number/</link>
		<comments>http://www.damiencarbery.com/2007/10/find-the-phone-number/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 16:25:52 +0000</pubDate>
		<dc:creator>damien</dc:creator>
				<category><![CDATA[Shudder]]></category>
		<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://me.damiencarbery.com/2007/10/15/find-the-phone-number/</guid>
		<description><![CDATA[A friend asked me to look at the website for Cronin moving company because he couldn&#8217;t find the phone number. He wasn&#8217;t mistaken, it&#8217;s not on the site! Nor is the company address! The phone book was used to get the number. This omissions violates item 7 (Hidden Contact Details) in 10 reasons why your [...]]]></description>
			<content:encoded><![CDATA[<p>A friend asked me to look at the website for <a href="http://www.theartofmoving.com/comrelo.html">Cronin</a> moving company because he couldn&#8217;t find the phone number. He wasn&#8217;t mistaken, it&#8217;s not on the site! Nor is the company address! The phone book was used to get the number.</p>
<p>This omissions violates item 7 (Hidden Contact Details) in <a href="http://econsultancy.com/blog/1811-10-reasons-why-your-website-sucks">10 reasons why your website sucks</a>. In the list it gives <a href="http://www.amazon.co.uk">Amazon.co.uk</a> as an example. From a web development perspective, the site is horrible &#8211; look at the source code. Shudder. It appears to have been generated by Adobe GoLive 4 (AFAIK current version is GoLive 9).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.damiencarbery.com/2007/10/find-the-phone-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

