<?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>ThinkRobot &#187; Wordpress</title>
	<atom:link href="http://think-robot.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://think-robot.com</link>
	<description>Design &#38; Development Blog</description>
	<lastBuildDate>Sun, 22 Apr 2012 23:58:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Quick fix for the Social Counter Widget plugin</title>
		<link>http://think-robot.com/2012/04/quick-fix-for-the-social-counter-widget-plugin/</link>
		<comments>http://think-robot.com/2012/04/quick-fix-for-the-social-counter-widget-plugin/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 23:58:32 +0000</pubDate>
		<dc:creator>Joanna</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://think-robot.com/?p=308</guid>
		<description><![CDATA[I&#8217;ve been doing some charity work recently and as they will have a social presence the blog was in need of some social media buttons. I thought the Social Counter Widget plugin looked quite nice (after the slightly prettier Social Impact Widget decided to just error when I did not enter a Google plus account [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing some charity work recently and as they will have a social presence the blog was in need of some social media buttons. I thought the <a href="http://wordpress.org/extend/plugins/social-counter-widget" target="_blank">Social Counter Widget</a> plugin looked quite nice (after the slightly prettier <a href="http://wordpress.org/extend/plugins/social-impact-widget/" target="_blank">Social Impact Widget</a> decided to just error when I did not enter a Google plus account &#8211; guess you have to go all or nothing for this plugin).</p>
<p>Unfortunately it wouldn&#8217;t even install, giving the following error:</p>
<pre><code>PHP Parse error:  syntax error, unexpected $end in <br/>/(...)/wp-content/plugins/social-counter-widget/scw_stats.class.php on line 73
</code></pre>
<p>A quick check revealed that it was a mistyped php open tag on line 70 that caused the problems. If you need to fix it before the plugin author submits an updated version just change &#8220;&lt;?&#8221; to &#8220;&lt;?php&#8221; on line 70 of the <strong>wp-content/plugins/social-counter-widget/scw_stats.class.php</strong> file.</p>
<div id="crp_related"><h2>Related Articles:</h2><ul><li><a href="http://think-robot.com/2008/11/wordpress-nextgen-gallery-tweak/" rel="bookmark">WordPress NextGen gallery tweak</a></li><li><a href="http://think-robot.com/2011/06/wordpress-update-permission-issues/" rel="bookmark">WordPress update permission issues</a></li><li><a href="http://think-robot.com/2010/12/zend-application-resource-plugin-loading-issues/" rel="bookmark">Zend Application Resource Plugin Loading Issues</a></li><li><a href="http://think-robot.com/2009/07/redirect-in-controller-plugin-zend-framework-18/" rel="bookmark">Redirect in controller plugin - Zend Framework 1.8</a></li><li><a href="http://think-robot.com/2008/11/nested-sortable-using-jtree-clickable-links/" rel="bookmark">Nested sortable using jTree - clickable links</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://think-robot.com/2012/04/quick-fix-for-the-social-counter-widget-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress update permission issues</title>
		<link>http://think-robot.com/2011/06/wordpress-update-permission-issues/</link>
		<comments>http://think-robot.com/2011/06/wordpress-update-permission-issues/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 22:24:19 +0000</pubDate>
		<dc:creator>Joanna</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://think-robot.com/?p=297</guid>
		<description><![CDATA[WordPress can often be such a pain to deal with&#8230; Recently I was trying to get an installation updated as well as some of the plugins. What should have been a straightforward task, turned out to be several hours of messing around with permissions and trying to figure out why even 777 isn&#8217;t enough for [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress can often be such a pain to deal with&#8230;</p>
<p>Recently I was trying to get an installation updated as well as some of the plugins. What should have been a straightforward task, turned out to be several hours of messing around with permissions and trying to figure out why even 777 isn&#8217;t enough for the updates to NOT fail and what user should own what.</p>
<p>Well it turns out that it&#8217;s only partly the fault of WordPress as it is an <strong>issue with the FTP server</strong>. Still some better messaging would be helpful&#8230;</p>
<p>There were mentions about a patch and fixes in potentially in the <strong>3.2 WP version</strong> related to the error I was getting:</p>
<pre><code>Could not copy file.: /public_html/wp-admin/css/theme-editor.dev.css</code></pre>
<p>However only after stumbling across <a href="http://www.aeromental.net/2011/01/11/automatic-update-public_htmlwp-admincsstheme-editor-dev-css/" class="external">this page</a> I found an easy and quick solution.</p>
<p>Turns out it was enough to just switch from Pure-FTPD to <strong>Pro-FTPD</strong>.</p>
<div id="crp_related"><h2>Related Articles:</h2><ul><li><a href="http://think-robot.com/2012/04/quick-fix-for-the-social-counter-widget-plugin/" rel="bookmark">Quick fix for the Social Counter Widget plugin</a></li><li><a href="http://think-robot.com/2008/11/wordpress-nextgen-gallery-tweak/" rel="bookmark">WordPress NextGen gallery tweak</a></li><li><a href="http://think-robot.com/2010/12/installing-windows-7-guest-on-vmware-7-on-opensuse-113-host/" rel="bookmark">Installing Windows 7 Guest on VMWare 7 on OpenSuse 11.3 Host</a></li><li><a href="http://think-robot.com/2008/08/server-error-500-htaccess-require-valid-user/" rel="bookmark">Server Error 500 - htaccess require valid-user</a></li><li><a href="http://think-robot.com/2008/11/nested-sortable-using-jtree-clickable-links/" rel="bookmark">Nested sortable using jTree - clickable links</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://think-robot.com/2011/06/wordpress-update-permission-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress NextGen gallery tweak</title>
		<link>http://think-robot.com/2008/11/wordpress-nextgen-gallery-tweak/</link>
		<comments>http://think-robot.com/2008/11/wordpress-nextgen-gallery-tweak/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 20:39:03 +0000</pubDate>
		<dc:creator>Joanna</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[NextGen]]></category>
		<category><![CDATA[uploads]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.think-robot.com/?p=18</guid>
		<description><![CDATA[Recently I found myself in that very anoying situation where a very good piece of software seemed to lack just this one function&#8230; again. I have been doing a gallery website and used the NextGen gallery plugin to display the photos. Unfortunatelly it was a case of a gallery per post with about 1 or [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I found myself in that very anoying situation where a very good piece of software seemed to lack just this one function&#8230; again. I have been doing a gallery website and used the <a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NextGen gallery plugin</a> to display the photos. Unfortunatelly it was a case of a gallery per post with about 1 or 2 photos per gallery.</p>
<p>The biggest issue with this setting was the process of creating galleries. By default in NextGen you create the gallery on one page, upload the images in another, and then create new post yet elsewhere. But there had to be a way to at least merge the gallery creation with photo upload, especially considering a new gallery form consisted of a single &#8220;gallery name&#8221; field.<span id="more-18"></span>Surprisingly enough after checking the code, both actions are actually processed in the same place. Thus by adding a new field on the photo upload form this time consuming problem could be solved:</p>
<p>Edit the file: <strong>wp-content/plugins/nggallery/admin/wp25/addgallery.php (line: 15)</strong></p>
<pre>// link for the flash file
$swf_upload_link = NGGALLERY_URLPATH . 'admin/wp25/upload.php';
$swf_upload_link = wp_nonce_url($swf_upload_link, 'ngg_swfupload');
//flash doesn't seem to like encoded ampersands, so convert them back here
$swf_upload_link = str_replace('&amp;', '&amp;', $swf_upload_link);

$defaultpath = $ngg_options['gallerypath'];

if ($_POST['addgallery']<strong> || !empty($_POST['newgalleryname'])</strong>){
  <strong>if(!empty($_POST['newgalleryname']))
    $_POST['galleryname'] = $_POST['newgalleryname'];</strong>
  check_admin_referer('ngg_addgallery');
  $newgallery = attribute_escape($_POST['galleryname']);
  if (!empty($newgallery))
    <strong>$_POST['galleryselect'] = </strong>nggAdmin::create_gallery($newgallery, $defaultpath);
}
if ($_POST['zipupload']){</pre>
<p>Edit the file: <strong>wp-content/plugins/nggallery/admin/wp25/addgallery.php (line: 263)</strong></p>
<pre>	&lt;tr valign="top"&gt;
		&lt;th scope="row"&gt;&lt;?php _e('in to', 'nggallery') ;?&gt;&lt;/th&gt;
		&lt;td&gt;&lt;select name="galleryselect" id="galleryselect"&gt;
		&lt;option value="0" &gt;&lt;?php _e('Choose gallery', 'nggallery') ?&gt;&lt;/option&gt;
		&lt;?php
			$gallerylist = $wpdb-&gt;get_results("SELECT * FROM $wpdb-&gt;nggallery ORDER BY gid ASC");
			if(is_array($gallerylist)) {
				foreach($gallerylist as $gallery) {
					echo '&lt;option value="'.$gallery-&gt;gid.'" &gt;'.$gallery-&gt;name.' | '.$gallery-&gt;title.'&lt;/option&gt;'."n";
				}
			}
		?&gt;
		&lt;/select&gt;<strong> &lt;label&gt;or &lt;input type="text" name="newgalleryname"  /&gt;&lt;/label&gt;</strong>
		&lt;br /&gt;&lt;?php echo _e('Note : The upload limit on your server is ','nggallery') . "&lt;strong&gt;" . ini_get('upload_max_filesize') . "Byte&lt;/strong&gt;n"; ?&gt;
		&lt;br /&gt;&lt;?php if ((IS_WPMU) &amp;&amp; wpmu_enable_function('wpmuQuotaCheck')) display_space_usage(); ?&gt;&lt;/td&gt;
	&lt;/tr&gt;</pre>
<p>Edit the file: <strong>wp-content/plugins/nggallery/admin/wp25/functions.php (line: 77)</strong></p>
<pre>if ($result) {
	nggallery::show_error(__('Gallery', 'nggallery').' &lt;strong&gt;'.$galleryname.'&lt;/strong&gt; '.__('already exists', 'nggallery'));
	return false;
} else {
	$result = $wpdb-&gt;query("INSERT INTO $wpdb-&gt;nggallery (name, path, title) VALUES ('$galleryname', '$nggpath', '$gallerytitle') ");
	if ($result) nggallery::show_message(__('Gallery', 'nggallery').' &lt;strong&gt;'.$wpdb-&gt;insert_id." : ".$galleryname.'&lt;/strong&gt; '.__('successfully created!','nggallery')."
".__('You can show this gallery with the tag','nggallery').'&lt;strong&gt; &lt;/strong&gt;');
	<strong>return $wpdb-&gt;insert_id;</strong>
}  </pre>
<div id="crp_related"><h2>Related Articles:</h2><ul><li><a href="http://think-robot.com/2012/04/quick-fix-for-the-social-counter-widget-plugin/" rel="bookmark">Quick fix for the Social Counter Widget plugin</a></li><li><a href="http://think-robot.com/2011/06/wordpress-update-permission-issues/" rel="bookmark">WordPress update permission issues</a></li><li><a href="http://think-robot.com/2009/04/zend_db_select-multiple-table-joins-explained/" rel="bookmark">Zend_Db_Select multiple table joins explained</a></li><li><a href="http://think-robot.com/2008/10/display-meetings-from-entourage-using-geektool/" rel="bookmark">Display Meetings From Entourage Using GeekTool</a></li><li><a href="http://think-robot.com/2010/09/using-textmate-for-easier-css3/" rel="bookmark">Using TextMate for easier CSS3</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://think-robot.com/2008/11/wordpress-nextgen-gallery-tweak/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

