<?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>Chris Wallace &#187; twitter</title>
	<atom:link href="http://www.chris-wallace.com/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chris-wallace.com</link>
	<description>User experience designer and infamous WordPress developer.</description>
	<lastBuildDate>Sat, 21 Jan 2012 15:50:46 +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>Elsewhere on the Web: 16 Genuine, Authentic Designers on Twitter</title>
		<link>http://www.chris-wallace.com/2009/03/23/elsewhere-on-the-web-16-genuine-authentic-designers-on-twitter/</link>
		<comments>http://www.chris-wallace.com/2009/03/23/elsewhere-on-the-web-16-genuine-authentic-designers-on-twitter/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 13:55:58 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Design Inspiration]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.chris-wallace.com/?p=899</guid>
		<description><![CDATA[If it seems like I haven&#8217;t posted much recently on Designer&#38;Developer, well, yes, that&#8217;s true. But to be fair, I have been extremely busy with some monstrous projects. Even with all those crazy projects going on, I still had some [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-912" href="http://cdn.chris-wallace.com/wp-content/uploads/twitter-follow.jpg"><img class="aligncenter size-full wp-image-912" title="twitter-follow" src="http://cdn.chris-wallace.com/wp-content/uploads/twitter-follow.jpg" alt="twitter-follow" width="560" height="240" /></a></p>
<p>If it seems like I haven&#8217;t posted much recently on Designer&amp;Developer, well, yes, that&#8217;s true. But to be fair, I have been extremely busy with some monstrous projects. Even with all those crazy projects going on, I still had some time to pull together a post for my buddy Jacob Gube of <a href="http://www.sixrevisions.com">Six Revisions</a> called &#8220;<a href="http://sixrevisions.com/graphics-design/16-genuine-authentic-designers-on-twitter/">16 Genuine, Authentic Designers on Twitter</a>.&#8221;</p>
<p>Now, I know what you&#8217;re all thinking, &#8220;<em>Oh no, not another list of designers on Twitter, we&#8217;ve seen like 40 of those in the past three weeks.</em>&#8221; Well, this one is quite different, listing 16 designers who&#8217;s updates and work I find quite interesting and worth a follow, if I do say so myself. Some of them you know, some you don&#8217;t. There were even a few designers <a href="http://sixrevisions.com/graphics-design/16-genuine-authentic-designers-on-twitter/#comment-31367">a bit chafed</a> they weren&#8217;t on the list, and for that, I do apologize. I wanted to keep this list brief, instead of finding 200+ designers which would be overwhelming to most people. If you haven&#8217;t already stopped by to take a gander, <a href="http://sixrevisions.com/graphics-design/16-genuine-authentic-designers-on-twitter/">please do</a>!</p>
<p>You can look forward to more posts of mine on Six Revisions as well. If you have any ideas or questions, don&#8217;t hesitate to <a href="http://card.chris-wallace.com/#contact">hit me up</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-wallace.com/2009/03/23/elsewhere-on-the-web-16-genuine-authentic-designers-on-twitter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Into the Twittersphere!</title>
		<link>http://www.chris-wallace.com/2009/03/20/into-the-twittersphere/</link>
		<comments>http://www.chris-wallace.com/2009/03/20/into-the-twittersphere/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 00:03:45 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Random Stuff]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.chris-wallace.com/?p=921</guid>
		<description><![CDATA[As you probably know, I am a frequent Twitterer. You can follow me at @chriswallace. Most people have no clue what it is or why it&#8217;s useful, fun, informational, &#60;insert your reason for using it here&#62;. Instead, they see it [...]]]></description>
			<content:encoded><![CDATA[<p>As you probably know, I am a frequent Twitterer. You can follow me at <a href="http://twitter.com/chriswallace">@chriswallace</a>. Most people have no clue what it is or why it&#8217;s useful, fun, informational, &lt;insert your reason for using it here&gt;. Instead, they see it from the same angle as this hilarious cartoon from Current TV.</p>
<p><object width="560" height="330"><param name="movie" value="http://www.youtube.com/v/PN2HAroA12w&#038;ap=%2526fmt%3D18"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/PN2HAroA12w&#038;ap=%2526fmt%3D18" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-wallace.com/2009/03/20/into-the-twittersphere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically Post Job Listings to Twitter from Jobberbase</title>
		<link>http://www.chris-wallace.com/2008/12/01/automatically-post-job-listings-to-twitter-from-jobberbase/</link>
		<comments>http://www.chris-wallace.com/2008/12/01/automatically-post-job-listings-to-twitter-from-jobberbase/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 23:47:31 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[Jobberbase]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.chris-wallace.com/?p=272</guid>
		<description><![CDATA[Want to post new jobs to popular micro-blogging service Twitter? Of course you do. Follow the tutorial below to make your Jobberbase site almost as cool as AllDevJobs.com. To avoid conflicting with newer versions of Jobberbase, I am writing this [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.alldevjobs.com"><img class="alignnone size-full wp-image-460" title="AllDevJobs.com" src="http://cdn.chris-wallace.com/wp-content/uploads/alldev.gif" alt="AllDevJobs.com" width="580" height="160" /></a></p>
<p>Want to post new jobs to popular micro-blogging service Twitter? Of course you do. Follow the tutorial below to make your Jobberbase site almost as cool as <a title="All Development Jobs" href="http://www.alldevjobs.com">AllDevJobs.com</a>.<span id="more-272"></span></p>
<p><a href="http://cdn.chris-wallace.com/wp-content/uploads/featured-twitter.jpg"><img class="alignnone size-full wp-image-278" title="Automaticall Post Jobs to Twitter" src="http://cdn.chris-wallace.com/wp-content/uploads/featured-twitter.jpg" alt="" width="500" height="191" /></a><br />
<!--more--><br />
To avoid conflicting with newer versions of Jobberbase, I am writing this tutorial for any version so it should always work. As always, make sure you back up your site before you proceed with the following changes.</p>
<h2>Step 1: Create a Twitter Account</h2>
<p>This may seem obvious, but yes, you need to create a new account. <a href="http://twitter.com/signup">Create Account »</a></p>
<h2>Step 2: Modify config.php</h2>
<p>In the root directory of your Jobberbase installation, you have a &#8216;config.php&#8217; file. In that file you will want to add your Twitter account information. I added mine at line 41. The bolded text indicates the places you need to add your account info.</p>
<pre><code>/* Twitter username &amp; password */
define('TWITTER_ENABLED',1);
define('TWITTER_USERNAME','<strong>username_goes_here</strong>');
define('TWITTER_PASSWORD','<strong>password_goes_here</strong>');
</code></pre>
<p>After that&#8217;s done, you also need to add a reference to the Twitter function you&#8217;ll be creating in Step 4. Around line 87, you should see the following:</p>
<pre><code>// Function and classes includes
require_once '_includes/function.validate_email.php';
require_once '_includes/function.redirect_to.php';
require_once '_includes/function.printr.php';
require_once '_includes/function.escape.php';
require_once '_includes/functions.php';
require_once '_includes/class.phpmailer.php';
require_once '_includes/class.Postman.php';
...</code></pre>
<p>You need to add <code>require_once '_includes/function.Twitter.php';</code> to this list. I added it just after <code>require_once '_includes/functions.php';</code>.</p>
<p>When done, it should look like this:</p>
<pre><code>// Function and classes includes
require_once '_includes/function.validate_email.php';
require_once '_includes/function.redirect_to.php';
require_once '_includes/function.printr.php';
require_once '_includes/function.escape.php';
<strong>require_once '_includes/function.Twitter.php';</strong>
require_once '_includes/functions.php';
require_once '_includes/class.phpmailer.php';
require_once '_includes/class.Postman.php';
require_once '_includes/class.Textile.php';
require_once '_includes/class.Sanitizer.php';
require_once '_includes/class.Db.php';
require_once '_includes/class.Job.php';
require_once '_includes/class.JobRequest.php';
require_once '_includes/class.Paginator.php';
require_once '_includes/class.Feed.php';
require_once '_includes/class.SpamReport.php';
require_once '_includes/class.Api.php';
require_once '_includes/class.JobApplication.php';
require_once '_includes/class.SearchKeywords.php';
require_once '_includes/smarty/libs/Smarty.class.php';</code></pre>
<h2>Step 3: Edit file &#8216;_includes/class.Job.php&#8217;</h2>
<p>You will shortly be creating a new Twitter function that will post the job listings for you, however, you need to find the right place to call that function, which would be immediately after the job listing is activated, not necessarily when it&#8217;s been posted, because you don&#8217;t want people just posting anything to Twitter before you&#8217;ve reviewed it.</p>
<p>Around line 873, you&#8217;ll need to replace the entire <code>public function Publish()</code> with the following code:</p>
<pre><code>
	// Publishes a newly created job post (is_temp =&gt; 0)
	public function Publish()
	{
		global $db;
		if ($this-&gt;CheckPosterEmail())
		{
			$sql = 'UPDATE jobs SET is_temp = 0, is_active = 1 WHERE id = ' . $this-&gt;mId;
			$db-&gt;query($sql);

			$sql = 'SELECT type_id, id, title, company FROM jobs WHERE id = ' . $this-&gt;mId;
			$result = $db-&gt;query($sql);
			$row = $result-&gt;fetch_assoc();

		  $formattedMessage = $row['title'] . " at " .$row['company'] . " " . BASE_URL . "job/" .$row['id'] . "/";
		  Tweet($formattedMessage);

		}
		else
		{
			$sql = 'UPDATE jobs SET is_temp = 0, is_active = 0 WHERE id = ' . $this-&gt;mId;
			$db-&gt;query($sql);
		}

	}</code></pre>
<h2>Step 4: Create file &#8216;_includes/function.Twitter.php&#8217;</h2>
<p>In your main includes directory, you need to create a new file for the script to post Twitter messages. You will need to have cURL enabled on your server for this to work.</p>
<p>Inside the new file, add this:</p>
<pre><code>&lt;?php
/**
 * Twitter post API
 */

function Tweet($msg){
	if(TWITTER_ENABLED==1){

		$username = TWITTER_USERNAME;
		$password = TWITTER_PASSWORD; 

		$message = $msg;

		$url = 'http://twitter.com/statuses/update.xml';
		// Alternative JSON version
		// $url = 'http://twitter.com/statuses/update.json';

		$curl_handle = curl_init();
		curl_setopt($curl_handle, CURLOPT_URL, "$url");
		curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
		curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($curl_handle, CURLOPT_POST, 1);
		curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message");
		curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
		$buffer = curl_exec($curl_handle);
		curl_close($curl_handle);
		// check for success or failure
		if (empty($buffer)) {
				echo 'Post failed. Please add listing manually.';
		} else {
				echo 'Success';
		}
	}
}

?&gt;</code></pre>
<p>That&#8217;s it. Upload your files and you&#8217;re ready to post to Twitter. Please let me know if you have any difficulties with this tutorial and I will update it accordingly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-wallace.com/2008/12/01/automatically-post-job-listings-to-twitter-from-jobberbase/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/20 queries in 0.007 seconds using disk: basic
Object Caching 413/449 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: cdn.chris-wallace.com

Served from: www.chris-wallace.com @ 2012-02-09 11:30:03 -->
