<?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>Equal Design are WordPress Consultants, Web Design &#38; Computer Services in Leyland, Lancashire, Preston &#187; twitter</title>
	<atom:link href="http://equaldesign.co.uk/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://equaldesign.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 11 Apr 2010 14:06:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Your Short URL for Twitter</title>
		<link>http://equaldesign.co.uk/blog/shorttwitterurl/</link>
		<comments>http://equaldesign.co.uk/blog/shorttwitterurl/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 23:15:27 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[TinyURL]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://equalmark.net/?p=55</guid>
		<description><![CDATA[Everyone seems to be using Twitter at the moment and it was with this in mind that I decided to include in this site the &#8220;Tweet this Post&#8221; icon that you can see to the right of each post title.  What is a little different about this Tweet This button is that instead of using [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone seems to be using Twitter at the moment and it was with this in mind that I decided to include in this site the &#8220;Tweet this Post&#8221; icon that you can see to the right of each post title.  What is a little different about this Tweet This button is that instead of using one of the many URL shortening services, it uses WordPress functionality to keep the shortened URL on your own domain name.  This post with talk you though how I did this.</p>
<p>First of all it is nothing complicated.  The WordPress default permalink structure is always much shorter than the pretty permalink version of your URLs and therefore I thought why not use this when adding link to Twitter.  The problem is, is that you don&#8217;t want to change your permalink structure of your site just so that you can use the links in Twitter.  The great thing is, is that you don&#8217;t have to.<span id="more-55"></span><a href="http://equaldesign.co.uk/wp-content/uploads/2010/01/shorturl.jpg"><img class="alignnone size-large wp-image-68" title="Using a Shortened Version of Your Own Domain for Tweeting" src="http://equalmark.net/wp-content/uploads/2010/01/shorturl-500x255.jpg" alt="" width="500" height="255" /></a></p>
<p>Lets use this post as an example.  In the WordPress dashboard I can see that WordPress has assigned this post a post ID of 55. However the permalink of the post is &#8220;http://equalmark.net/tutorials/shorttwitterurls&#8221;.  This permalink is good as it makes sense to the reader, but it is long.  The great thing with WordPress is that if you actually use the non pretty permalink version i.e. http://equalmark.net/?p=55 it still takes you to the same post and replaces the URL with the correct &#8216;pretty&#8217; version.  So the question I was trying to solve was how to generate this link for each post.</p>
<p>The best way was to create a PHP function that could be used in your themes function.php file and then call the function wherever it is needed in the theme template files.  I added the following to functions.php.</p>
<pre class="brush: php;">

&lt;?php

// simple function to get a shortened version of your posts URL for twitter.  Uses the format yourdomain.com/?p=postid
function tweeturl() {
$thispost = bloginfo('url');
$tweetmiddle = &quot;/?p=&quot;;
global $wp_query;
$theid = $wp_query-&gt;post-&gt;ID;
echo $thispost . $tweetmiddle . $theid;
}
?&gt;
</pre>
<p>Lets just take a look at exactly what this does.  Line 4 sets up the name of the function that you need to call in your themes template files to make use of the functions.  Line 5 gets the blogs URL (in this case http://equalmark.net) and stores this in the variable $thispost.  Line 6 builds the middle part of the URL which all your posts will have and stores this in the variable $tweetmiddle. Line 7 and 8 get the current posts ID and then the rest is a matter of stitching everything together.</p>
<p>So to use this in your theme you will need to add the following to your themes template files:</p>
<pre class="brush: php;">&lt;?php tweeturl(); ?&gt;</pre>
<p>That code will output or echo the current posts URL in the shortened version.  I have used it on this site like this:</p>
<pre class="brush: php;">&lt;a href=&quot;http://twitter.com/home?status=Been reading this great article - &lt;?php tweeturl(); ?&gt;&quot;&gt;Tweet this Post&lt;/a&gt;</pre>
<p>The only different is instead of clicking on the text &#8220;Tweet this Post&#8221; I have replaced this with an image.</p>
<p>The benefits of using a function like this rather than one of the more popular URL shortening services is that whenever you want to include a link in your tweets that is your domain it means that you can keep your domain name in the actual Tweet content.  This means that more people will see your domain name and therefore could increase you traffic.  Let me know how you get on and any problems or issues (hopefully not) that you may come across.</p>
]]></content:encoded>
			<wfw:commentRss>http://equaldesign.co.uk/blog/shorttwitterurl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating Social Meda to Your Website</title>
		<link>http://equaldesign.co.uk/blog/socialmediaandyoursite/</link>
		<comments>http://equaldesign.co.uk/blog/socialmediaandyoursite/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 12:04:53 +0000</pubDate>
		<dc:creator>Equal Design</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://equaldesign.co.uk/?p=280</guid>
		<description><![CDATA[Social media is all around us at the moment with literally millions of users using sites such as Facebook and Twitter everyday it is becoming more and more essential that your website can integrate with your Twitter and Facebook accounts.  This article will explain how this can be done, to help drive traffic to your [...]]]></description>
			<content:encoded><![CDATA[<p>Social media is all around us at the moment with literally millions of users using sites such as <a href="http://www.facebook.com" target="_blank">Facebook</a> and <a href="http://twitter.com" target="_blank">Twitter</a> everyday it is becoming more and more essential that your website can integrate with your Twitter and Facebook accounts.  This article will explain how this can be done, to help drive traffic to your website.</p>
<p>Facebook has around 300 million users.  Twitter use is growing at over 1000%.  It seems pretty clear that in order to drive traffic to your site it is important that your site utilises social media.  I mention Facebook and Twitter because it is clear that these tend to be the main players.  Ask almost anyone (under the age of around 50) do you have a Facebook account and the answer tends to be yes.</p>
<p>When integrating the two into your website we need to look at your website as the hub for all your goings on, on the web.  This is where you want people to be.  When they are looking at your website it means that they are viewing your products and services that you are offering and therefore there is a chance of a sale and the possibility of making more money.  So what you need to do is use these social media sites in order to help drive traffic to your website, the hub and purpose of your online presence.</p>
<p>Another key point to mention here is the word consistency.  By that I mean consistency in brand look and naming across the social media sites as well of course on your own site.  It is more and more important that you try and get your companies name on social networking sites, rather than something else.  Your companies name is what people will look for and what you want people to associate you with.  The good things is that there are several tools that can help you secure your &#8216;username&#8217; on a wealth of social networking sites, including Twitter and Facebook.  Here are two that I have found and used:</p>
<p><a href="http://knowem.com/" target="_blank">Know Em Username Check</a> &#8211; a site that discovers whether your username, brand or company name is available of social websites across the internet.  There is a even a paid service that lets them sign up for all the sites leaving you time to get on with your every day tasks.</p>
<p><a href="http://namechk.com/" target="_blank">Namechk</a> &#8211; allows you to check your username availability across many different social networking sites.  It is a little simpler than Know Em but equally as effective, however there is no paid service for signing up for you.  The site tells where your name is available and you have to do the leg work.</p>
<p><img class="size-full wp-image-283 alignnone" title="name-check-sites" src="http://equaldesign.co.uk/wp-content/uploads/2009/12/name-check-sites.jpg" alt="name-check-sites" width="500" height="659" /></p>
<p>I would recommend that you reserve your name for all the major sites, even the ones that you do not intend to use.  Importantly it will stop anyone else using the name and posting content using your companies identify.</p>
<p>So once you have your usernames signed up for it is a matter of getting them into one place, so that it is easy to update all your websites.  The way that I do this is to use a Facebook application called &#8216;<a href="http://www.facebook.com/apps/application.php?id=115463795461" target="_blank">Selective Twitter</a>&#8216;.  This means that any Twitter updates that you post that you end with &#8216;#fb&#8217; will be posted as your status on Facebook.  Therefore you never really need to visit Facebook again in order to update your Facebook profile.</p>
<p>When it comes to updating your Twitter status, I tend to opt for <a href="http://www.tweetdeck.com/" target="_blank">TweetDeck</a>.  This allows you to use a desktop application in order to update your statuses and it can also handle multiple accounts if you have a personal Twitter account as well.  However there are several tools which you can use in order to update your status for your WordPress Dashboard.  A search for &#8216;Twitter&#8217; or &#8216;Social Media&#8217; in the WordPress plugins repository will provide several plugins that will do the job, depending on the complexity of your needs.</p>
<p><img class="alignnone size-full wp-image-284" title="tweetdeck-screen" src="http://equaldesign.co.uk/wp-content/uploads/2009/12/tweetdeck-screen.jpg" alt="tweetdeck-screen" width="500" height="312" /></p>
<p>Once you have everything working I would then recommend branding your Twitter page.  Once you have logged into Twitter from their homepage you can click on settings and design and then choose some suitable colours and perhaps even a background image that will match your website.  This will enable visitors to easily identify the brand, product or company to which the Twitter page is referring to.  A simple but important step in my point of view.</p>
<p>So there you have it, a quick guide to integrating social media to your website and outlining some of the benefits that it can bring to your business and your own website.</p>
]]></content:encoded>
			<wfw:commentRss>http://equaldesign.co.uk/blog/socialmediaandyoursite/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
