<?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>Lauren&#039;s FileMaker Blog</title>
	<atom:link href="http://www.laurenkuhlman.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.laurenkuhlman.com</link>
	<description>Fun with FileMaker</description>
	<lastBuildDate>Mon, 18 Jan 2010 15:23:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Connecting FileMaker and your WordPress Blog</title>
		<link>http://www.laurenkuhlman.com/connecting-filemaker-and-your-wordpress-blog-4</link>
		<comments>http://www.laurenkuhlman.com/connecting-filemaker-and-your-wordpress-blog-4#comments</comments>
		<pubDate>Sun, 03 Jan 2010 04:32:11 +0000</pubDate>
		<dc:creator>Lauren Kuhlman</dc:creator>
				<category><![CDATA[FileMaker]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.laurenkuhlman.com/?p=65</guid>
		<description><![CDATA[You can post to WordPress from FileMaker:
1. Enable xml-rpc publishing protocols in Wordpress. From your wordpress dashboard, Settings &#62; Writing &#62; Check XML-RPC Enable the Wordpress&#8230;

2. Install the SmartPill PHP Edition plugin for FileMaker. Download, unzip and put the .fmplugin file in your FileMaker extensions folder. It works for a half hour at a time [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.laurenkuhlman.com%2Fconnecting-filemaker-and-your-wordpress-blog-4"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.laurenkuhlman.com%2Fconnecting-filemaker-and-your-wordpress-blog-4" height="61" width="51" /></a></div><p><strong>You can post to WordPress from FileMaker:</strong></p>
<p>1. Enable xml-rpc publishing protocols in Wordpress. From your wordpress dashboard, Settings &gt; Writing &gt; Check XML-RPC Enable the Wordpress&#8230;<br />
<span id="more-65"></span><br />
2. Install the <a href="http://www.scodigo.com/products/smartpill-php">SmartPill PHP Edition plugin</a> for FileMaker. Download, unzip and put the .fmplugin file in your FileMaker extensions folder. It works for a half hour at a time before you register it. This is a great FileMaker plugin, you should own it anyway.</p>
<p>3. Write a script. Here is mine:</p>
<p><code>Set Variable [ $result; PHP_Execute </code></p>
<p><code> </code></p>
<p><code>"function wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$categories){<br />
$XML = \"&lt;title&gt;$title&lt;/title&gt;\".<br />
\"&lt;category&gt;$categories&lt;/category&gt;\".<br />
$body;<br />
$params = array('','',$username,$password,$XML,1);<br />
$request = xmlrpc_encode_request('blogger.newPost',$params);<br />
$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);<br />
curl_setopt($ch, CURLOPT_URL, $rpcurl);<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($ch, CURLOPT_TIMEOUT, 1);<br />
curl_exec($ch);<br />
curl_close($ch);<br />
return $ch;<br />
}<br />
$result = wpPostXMLRPC ( " &amp;<br />
Quote ( Blog::Headline ) &amp; ", " &amp;<br />
"\"" &amp; Blog::body &amp; "\"" &amp; ", " &amp;<br />
Quote ( Resource::siteUrlXmlRpc ) &amp; ", " &amp;<br />
Quote ( Author::Wordpress UserName ) &amp; ", " &amp;<br />
Quote ( Author::Wordpress Password ) &amp; ", 1 );<br />
echo $result;"</p>
<p>) ]<br />
Show Custom Dialog [$result]</p>
<p></code></p>
<p><H2>Notes about Connecting FileMaker and WordPress</H2><BR></p>
<p>I am using the blogger.newPost. Wordpress accepts this API. Blogger requires these variables: appkey, blogid, username, password, content, publish. I pass these variables and the method call using xmlrpc_encode_request. Ignore appkey and blogid WordPress does. Username/password are pretty self-explanatory. Use what you use for Wordpress. If you add &lt;title&gt;&lt;/title&gt; and &lt;category&gt;&lt;/category&gt; tags inside the content variable, they will show up correctly. I default category to 1 which is uncategorized in this WordPress blog. I will post another blog about getting a list of WordPress categories, placing them in a portal on a FileMaker layout and choosing multiples. (An array is accepted for category.) Publish is a boolean; 1 will publish it immediately to your WordPress blog. $rpcurl is the location of your xmlrpc.php file. For example, mine is http://laurenkuhlman.com/xmlrpc.php. Yours may be in a wordpress subfolder.</p>
<p>You should only have to change these parts of the code to your FileMaker fields: Blog::Headline, Blog::body, Resource::siteUrlXmlRpc, Author::Wordpress UserName and Author::Wordpress Password.</p>
<p>I didn&#8217;t actually post this with the FileMaker script. I can&#8217;t seem to figure out how to pass PHP code without it doing funky things like not displaying the $variables. I am working on it. Promise. I am also trying to figure out how to get the postID back so I can get blogger.editPost working without having to look it up in the browser. All in good time.</p>
<p>If you have any questions/comments/know how to solve above mentioned issues, post them.</p>
<p><H2>Why FileMaker and WordPress</H2><BR></p>
<p>I absolutely love both FileMaker and WordPress so connecting them just makes good sense. You can now manage FileMaker data alongside your WordPress blogs. This makes analyzing information about your WordPress campaigns alongside FileMaker data (leads, etc) so much simpler.</p>
<p>Cheers.</p>
<p>P.S. If you love it, share it!<br />
<!-- AddThis Button BEGIN --></p>
<div class="addthis_toolbox addthis_default_style"><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_friendfeed"></a><a class="addthis_button_delicious"></a><a class="addthis_button_technorati"></a><a class="addthis_button_tumblr"></a><a class="addthis_button_slashdot"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_netvibes"></a><a class="addthis_button_googlereader"></a><a class="addthis_button_aim"></a><a class="addthis_button_email"></a><a class="addthis_button_favorites"></a><a class="addthis_button_print"></a><span class="addthis_separator">|</span><a href="http://addthis.com/bookmark.php?v=250&amp;username=laurenkuhlman" class="addthis_button_expanded">More</a></div>
<p><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=laurenkuhlman"></script><!-- AddThis Button END --></p>
<p><a href="http://www.filemaker.com"rel="nofollow">FileMaker</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.laurenkuhlman.com/connecting-filemaker-and-your-wordpress-blog-4/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Connecting FileMaker Pro to Twitter</title>
		<link>http://www.laurenkuhlman.com/connecting-filemaker-pro-to-twitter</link>
		<comments>http://www.laurenkuhlman.com/connecting-filemaker-pro-to-twitter#comments</comments>
		<pubDate>Sun, 29 Nov 2009 04:20:41 +0000</pubDate>
		<dc:creator>Lauren Kuhlman</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.laurenkuhlman.com/2010/01/04/connecting-filemaker-pro-to-twitter/</guid>
		<description><![CDATA[You can connect FileMaker Pro to Twitter. On Macs, you don&#8217;t even need a plug-in.
Here is the code using the Native Applescript (Mac Only) script step:

set username to cell &#8220;username&#8221; of current record
set pw to cell &#8220;pw&#8221; of current record
set sta to cell &#8220;sta&#8221; of current record
do shell script &#8220;curl -u &#8221; &#038; username &#038; [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.laurenkuhlman.com%2Fconnecting-filemaker-pro-to-twitter"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.laurenkuhlman.com%2Fconnecting-filemaker-pro-to-twitter" height="61" width="51" /></a></div><p>You can connect FileMaker Pro to Twitter. On Macs, you don&#8217;t even need a plug-in.</p>
<p>Here is the code using the Native Applescript (Mac Only) script step:<br />
<span id="more-92"></span><br />
set username to cell &#8220;username&#8221; of current record<br />
set pw to cell &#8220;pw&#8221; of current record<br />
set sta to cell &#8220;sta&#8221; of current record<br />
do shell script &#8220;curl -u &#8221; &#038; username &#038; &#8220;:&#8221; &#038; pw &#038; &#8221; -d status=\&#8221;" &#038; sta &#038; &#8220;\&#8221; http://twitter.com/statuses/update.json&#8221;<br />
set cell &#8220;WebResult&#8221; of current record to result</p>
<p>You need three fields on your layout. In my example, they are name username, pw and sta; pw is password and sta is status. For some reason, it fails when you user the word status.</p>
<p>I will post the info for how to do it on Windows using <a href="http://www.scodigo.com/products/smartpill-php">SmartPill PHP Edition plugin</a> tomorrow. Also, forthcoming: using bit.ly&#8217;s API in conjunction with it to share a link.</p>
<p>Enjoy! If you love it, share it!</p>
<p><!-- AddThis Button BEGIN --></p>
<div class="addthis_toolbox addthis_default_style"><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_friendfeed"></a><a class="addthis_button_delicious"></a><a class="addthis_button_technorati"></a><a class="addthis_button_tumblr"></a><a class="addthis_button_slashdot"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_netvibes"></a><a class="addthis_button_googlereader"></a><a class="addthis_button_aim"></a><a class="addthis_button_email"></a><a class="addthis_button_favorites"></a><a class="addthis_button_print"></a><span class="addthis_separator">|</span><a href="http://addthis.com/bookmark.php?v=250&amp;username=laurenkuhlman" class="addthis_button_expanded">More</a></div>
<p><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=laurenkuhlman"></script><!-- AddThis Button END --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.laurenkuhlman.com/connecting-filemaker-pro-to-twitter/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
