<?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>Thesis: Hosting &#187; WordPress</title>
	<atom:link href="http://www.thesishosting.com/topics/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thesishosting.com</link>
	<description>Down &#38; Dirty Web Hosting Resource</description>
	<lastBuildDate>Mon, 21 Nov 2011 20:02:53 +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>Manually Adding an Admin User to a WP Database</title>
		<link>http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database</link>
		<comments>http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database#comments</comments>
		<pubDate>Tue, 13 Apr 2010 19:02:53 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Mu]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=406</guid>
		<description><![CDATA[Lost your admin password? Need in to the WP admin but client hasn't given you access? If you can access the database directly--easiest using a tool like PHPmyAdmin, you can give yourself whatever access you need.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database" title="Permanent link to Manually Adding an Admin User to a WP Database"><img class="post_image alignnone" src="http://farm2.static.flickr.com/1353/1209594912_1354c1716a.jpg" width="500" height="382" alt="Retrieving Lost WordPress WP Admin Password" /></a>
</p><p>Lost your admin password? Need in to the WP admin but client hasn&#8217;t given you access? If you can access the database directly&#8211;easiest using a tool like PHPmyAdmin&#8211;you can give yourself whatever access you need. <sup><a href="http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database#footnote_0_406" id="identifier_0_406" class="footnote-link footnote-identifier-link" title="Big hugs and kisses out to DNA Web Agency for this uber-helpful information lifted for this tutorial.">1</a></sup></p>
<p><strong>Locate the right database</strong>&#8211;if you have FTP, looking at the wp-config.php file at the root of your WP installation is the fastest route. Otherwise, if you have multiple WP installs, check out the options table to match urls and make sure you&#8217;re looking in the right database.</p>
<p>In your<strong> wp_users table</strong>, you insert a new record:</p>
<ol>
<li><strong>user_login</strong> –username to access <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a></li>
<li><strong>user_pass</strong> – password &#8211; be certain to select <strong>MD5</strong> from the phpMyAdmin  Function dropdown menu; it&#8217;s stored encrypted)</li>
<li><strong>user_nicename</strong> – how you&#8217;d like to refer to yourself, not login</li>
<li><strong>user_email</strong> – email for this user</li>
<li><strong>user_url</strong> – optional<a href="http://www.dnawebagency.com/"></a></li>
<li><strong>user_registered</strong> –   just select a date</li>
<li><strong>user_activation_key</strong> – leave this blank</li>
<li><strong>user_status</strong> – leave this set to 0</li>
<li><strong>display_name</strong> – what displays, can be same as nicename</li>
</ol>
<p>Note the user ID, as you&#8217;ll need it for the next steps.</p>
<p><strong>To give yourself access permissions, head on over to insert a record into the wp_usersmeta table.<br />
</strong></p>
<ol>
<li><strong>umeta_id </strong>- automatically  generated</li>
<li><strong>user_id</strong> – ID of the user you just created</li>
<li><strong>meta_key</strong> –  <strong>wp_capabilities</strong></li>
<li><strong>meta_value</strong> copy and paste this:</li>
</ol>
<p>1</p>
<p><strong>Insert another row</strong>, with this information:</p>
<ol>
<li><strong>umeta_id </strong>- automatically  generated</li>
<li><strong>user_id</strong> – use the ID you created</li>
<li><strong>meta_key</strong> – insert <strong>wp_user_level</strong></li>
<li><strong>meta_value</strong> – insert 10</li>
</ol>
<p>Save your work and go log in!</p>
<ol class="footnotes"><li id="footnote_0_406" class="footnote">Big hugs and kisses out to DNA Web Agency for <a title="Manually Adding Admin User to WP database" href="http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database">this uber-helpful information</a> lifted for this tutorial.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Auto Updates for Servers Requiring 777 Permissions</title>
		<link>http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions</link>
		<comments>http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions#comments</comments>
		<pubDate>Fri, 02 Apr 2010 20:22:13 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[Config]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Mu]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=384</guid>
		<description><![CDATA[How to avoid WP and plugin update errors like "cannot copy file" or "cannot move file" or "cannot remove old plugin" and eliminate need to provide FTP info on each update for server configuraitons requiring 0777 writable permissions.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions" title="Permanent link to WP Auto Updates for Servers Requiring 777 Permissions"><img class="post_image alignnone" src="http://farm4.static.flickr.com/3456/3237164755_e34da6809e.jpg" width="500" height="419" alt="Secure WP WordPress Auto Updates Plugin Updates Servers Requring 0777 Permissions FTP info request" /></a>
</p><p>If you&#8221;ve got a WP installation on a server not running under suPHP (i.e. requiring some folders set to 777 permissions), you may find your WP requests FTP info to do any updates, and get miscellaneous errors even with this info provided.<sup><a href="http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions#footnote_0_384" id="identifier_0_384" class="footnote-link footnote-identifier-link" title="Why not run under the more restrictive permissions provided by suPHP? Maybe you want to run opcache&nbsp; like e Accelerarter that requires a different configuration, for example. ">1</a></sup> The <a title="WP Auto FTP Plugin Saves FTP info" href="http://wordpress.org/extend/plugins/auto-ftp/">AutoFTP plugin</a> can help by saving the FTP credentials, but you may still see the errors. I did.</p>
<p>In addition to being annoying, this  can also be confusing for some webmasters. Since it&#8217;s a lousy idea to make your entire wp-content folder  world-writable to allow for easier plugin updates, let&#8217;s look at a better  solution:<sup><a href="http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions#footnote_1_384" id="identifier_1_384" class="footnote-link footnote-identifier-link" title="Thanks to &amp;#8220;detroiter&amp;#8221; for this solution.">2</a></sup></p>
<p>First, let&#8217;s <strong>add some protection for your wp-config.php file to your .htaccess file</strong>:</p>
<p>1</p>
<p>Verify your <strong>&#8220;wp-content&#8221; folder permissions are set to 0755</strong>.</p>
<p>Then, <strong>chmod your wp-config.php file to 0644</strong>.</p>
<p><strong>In your wp-config.php file</strong> (at the root of your WP installation),<strong> add the code below.</strong> Be sure to provide the correct paths for your server, and do not add a port to your FTP host:</p>
<p>1</p>
<p>This should take care of the requirement to enter FTP information for every automatic update, and eliminates those annoying &#8220;cannot copy file&#8221; and &#8220;cannot move file&#8221; error messages when trying to do auto-upgrades of WP and plugins.</p>
<ol class="footnotes"><li id="footnote_0_384" class="footnote">Why not run under the more restrictive permissions provided by <a title="suPHP" href="http://www.suphp.org/Home.html">suPHP</a>? Maybe you want to run opcache  like <a title="eAccelerator caching" href="http://www.eaccelerator.net/">e Accelerarter</a> that requires a different configuration, for example. </li><li id="footnote_1_384" class="footnote">Thanks to &#8220;detroiter&#8221; for <a title="Help with WP plugin update errors" href="http://wordpress.org/support/topic/266008?replies=25#post-1462427">this solution</a>.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Disabling WordPress Plugins When You Cannot Access Admin Area</title>
		<link>http://www.thesishosting.com/2010/03/topics/wordpress/disabling-wordpress-plugins-when-you-cannot-access-admin-area</link>
		<comments>http://www.thesishosting.com/2010/03/topics/wordpress/disabling-wordpress-plugins-when-you-cannot-access-admin-area#comments</comments>
		<pubDate>Thu, 11 Mar 2010 01:41:45 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=358</guid>
		<description><![CDATA[How to disable all WP plugins when you can't access the site's admin area.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/03/topics/wordpress/disabling-wordpress-plugins-when-you-cannot-access-admin-area" title="Permanent link to Disabling WordPress Plugins When You Cannot Access Admin Area"><img class="post_image alignnone" src="http://farm1.static.flickr.com/132/357105400_7742bbce74.jpg" width="500" height="375" alt="Cannot Access WordPress Admin WP Backend" /></a>
</p><p>When you cannot access the admin of a <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> installation because of a plugin issue, you can delete the plugins directly from a database management tool like PHPmyAdmin. (And if you can&#8217;t access the WP backend, there&#8217;s a good chance it is because of a plugin issue.)</p>
<p>This helpful tidbit comes from <a title="diable WP plugins in database" href="http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F">the WP FAQ</a></p>
<ul>
<blockquote>
<li> In the table wp_options, under the <em>option_name</em> column  (field) find the <em>active_plugins</em> row</li>
<li> Change the <em>option_value</em> field to: <strong>a:0:{}</strong></li>
</blockquote>
</ul>
<p>If you have FTP access, you can also rename your original plugin folder (/wp-contents/plugins) and and add an empty plugin folder. After you sign on to your WP admin area, you can delete the dummy folder and rename the plugin folder back to &#8220;plugins,&#8221; as it will have deactivated all  your plugins when you signed on with the empty folder.</p>
<p>Happy WordPressing!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/03/topics/wordpress/disabling-wordpress-plugins-when-you-cannot-access-admin-area/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SQL: Closing Comments on WordPress Installation</title>
		<link>http://www.thesishosting.com/2010/02/topics/web-hosting/sql-closing-comments-on-wordpress-installation</link>
		<comments>http://www.thesishosting.com/2010/02/topics/web-hosting/sql-closing-comments-on-wordpress-installation#comments</comments>
		<pubDate>Mon, 22 Feb 2010 20:04:37 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[hosting move]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=328</guid>
		<description><![CDATA[mySQL command for closing all comments and pingbacks in WordPress installation; handy for closing comments on old server during hosting move. This also allows clients to easily check domain resolution.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/02/topics/web-hosting/sql-closing-comments-on-wordpress-installation" title="Permanent link to SQL: Closing Comments on WordPress Installation"><img class="post_image alignnone" src="http://farm1.static.flickr.com/5/7625211_0a84127b34.jpg" width="500" height="333" alt="Closing Comments on WordPress WP Database mySQL for hosting move" /></a>
</p><p><strong>During domain propagation when changing hosts for a <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> blog, you may want to close comments to keep from losing anything.</strong> While you can certainly use the <a title="Turning WP comments off via Template" href="http://thesishosting.com/topics/web-hosting/quickie-disable-wordpress-comments-temporarily">WP comment template technique</a>, this is an especially convenient way of turning off comments en masse on a WP installation.</p>
<p><strong>After transferring the blog databases to the new host, access PHPmyAdmin on the old host with this bit of SQL</strong>; if you have a different prefix to your table that &#8220;wp_&#8221; you&#8217;ll need to adjust the command accordingly.</p>
<pre class="brush: sql; title: ; notranslate">UPDATE wp_posts p SET comment_status = 'closed', ping_status = 'closed' WHERE comment_status = 'open'</pre>
<p><strong>This approach also makes it very easy for a client to check domain propagation.</strong> If the comments are closed, the site is being served from the old host. If comments are open, it&#8217;s being  served from the new host. Easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/02/topics/web-hosting/sql-closing-comments-on-wordpress-installation/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mass Delete Pending Spam Comments from WordPress Database</title>
		<link>http://www.thesishosting.com/2010/01/topics/wordpress/mass-delete-pending-spam-comments-from-wordpress-database</link>
		<comments>http://www.thesishosting.com/2010/01/topics/wordpress/mass-delete-pending-spam-comments-from-wordpress-database#comments</comments>
		<pubDate>Tue, 26 Jan 2010 19:08:31 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[hosting move]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=269</guid>
		<description><![CDATA[Quick how-to on mass deletion of Spam in WordPress database via SQL statement. Take back your blog!]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/01/topics/wordpress/mass-delete-pending-spam-comments-from-wordpress-database" title="Permanent link to Mass Delete Pending Spam Comments from WordPress Database"><img class="post_image alignnone frame" src="http://farm1.static.flickr.com/32/56256773_2050d0ebc1.jpg" width="375" height="500" alt="Mass Deleting WP WordPress Spam via SQL Statements" /></a>
</p><p><strong>If you&#8217;ve got 14,500 and some pending spam comments in your WP database, I feel your pain.</strong> I just transferred a WP site in exactly that state.</p>
<p>Fortunately, you don&#8217;t have to scroll through hundreds of pages of the comments moderation que, clicking away to get rid of the junk. <strong>A simple line of SQL is all you need to conquer the  spam dragon in a matter of mere seconds.</strong> Pop this query into something like PHPmyAdmin where you can run SQL statements directly, and you&#8217;re golden.</p>
<pre class="brush: sql; title: ; notranslate">DELETE FROM wp_comments WHERE comment_approved = '0'</pre>
<p>Ideally, run this on the source database before transfer to make your life easier. Why would you want to move thousands of spam comments anyway, right? As a plus, you may be able to import your database using PHPmyAdmin if you can get your database dump to a reasonable file size via deleting an out-of-control spamfest.</p>
<p class="alert">Note:  This command will delete ALL unapproved comments. No second chances, review or confirmation. Make sure that&#8217;s your goal before you go running SQL statements all willy-nilly. The management is not responsible for outcomes. Use the force wisely, Luke.</p>
<p><span style="font-size: xx-small;color: #ccc"><br />
<img src="http://th1.s3.amazonaws.com/files/2010/01/cc.png?cda6c1" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" /> photo credit: <a title="chotda" href="http://www.flickr.com/photos/48600074651@N01/56256773/" target="_blank">chotda</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/01/topics/wordpress/mass-delete-pending-spam-comments-from-wordpress-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving WordPress Installation to New Domain &#8211; SQL</title>
		<link>http://www.thesishosting.com/2009/12/topics/wordpress/moving-wordpress-installation-to-new-domain-sql</link>
		<comments>http://www.thesishosting.com/2009/12/topics/wordpress/moving-wordpress-installation-to-new-domain-sql#comments</comments>
		<pubDate>Thu, 31 Dec 2009 23:34:38 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hosting move]]></category>
		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://thesishosting.dixiblog.com/?p=249</guid>
		<description><![CDATA[Moving WP to a new domain? Beyond just moving the files, you'll need to make a couple key database changes to make your new installation work properly.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/12/topics/wordpress/moving-wordpress-installation-to-new-domain-sql" title="Permanent link to Moving WordPress Installation to New Domain &#8211; SQL"><img class="post_image alignnone" src="http://farm4.static.flickr.com/3044/2569459457_a67265f888.jpg" width="500" height="399" alt="Moving Your WordPress to New Domain" /></a>
</p><p><strong>A few database changes need to be done when moving WP from one domain to another</strong>; information below taken from a very  <a title="Moving WordPress to New Location" href="http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/">helpful article at My Digital Life</a>:</p>
<blockquote><p>To update <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> options with the new blog location, use the following SQL command:</p>
<p><code>UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';</code></p>
<p>After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. The URL values in this field are stored as absolute URLs instead of relative URLs, so it needs to be changed with the following SQL query:</p>
<p><code>UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');</code></p>
<p>If you have linked internally within blog posts or pages with absolute URLs, these links will point to wrong locations after you move the blog location. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages:</p>
<p><code>UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/12/topics/wordpress/moving-wordpress-installation-to-new-domain-sql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up TimThumb in WPMU &#8211; Yes! It&#039;s Possible!</title>
		<link>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible</link>
		<comments>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible#comments</comments>
		<pubDate>Fri, 06 Nov 2009 20:27:30 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WordPress Mu]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=167</guid>
		<description><![CDATA[WPMU admins have long been frustrated by the fact TimThumb, the popular thumbnail generation script, doesn't play nicely with WPMU. This quick hack to the script allows you to use themes in your WPMU that require the script without setting up a specific instance of the script for each blog using it and hardcoding the path.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible" title="Permanent link to Setting up TimThumb in WPMU &#8211; Yes! It&#39;s Possible!"><img class="post_image alignnone" src="http://thesishosting.dixiblog.com/files/2009/11/mu-header-logo.png" width="442" height="124" alt="timthumb working in wpmu" /></a>
</p><p><strong><a title="timthumb script wpmu" href="http://code.google.com/p/timthumb/">TimThumb</a> is a cool little thumbnail script in vogue for WP theme designers. It&#8217;s also notorious for not playing nicely with WPMU. </strong>Specifically, the rewrite magic used to run WPMU chokes the script in generating the thumbnail, as it&#8217;s looking for &#8220;/files/date/filename.ext&#8221; instead of &#8220;/blogs.dir/X/files/date/filename.ext&#8221;&#8211;where X is the $blog_id variable.</p>
<p>This is easy enough to fix if you want to hardcode your path into the script, but what if you want to set up a theme on WPMU that utilizes the script and open it to more than one blog? Maybe you&#8217;re a <a title="Thesis Theme" href="http://diythemes.com">Thesis</a> fan, perhaps? Well you can.</p>
<p class="alert"><strong>Please note</strong>: This technique requires hacking the timthumb script and as such, it&#8217;s never going to be an ideal solution. However, since many WP themes have timthumb deeply integrated and WPMU admins may well want to make such themes available to their users without requiring a users themes plugin, this IS an option that will allow multiple users to access a single version of the script and have it work properly.</p>
<p>Here&#8217;s how:</p>
<p>Towards the top of your script, you&#8217;ll need to <strong>include the wp-blog-header.php</strong> file.  This allows you to access <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> variables from within the external script. This path worked for the Thesis theme setup, where the timthumb script, &#8220;thumb.php,&#8221; is located in the folder &#8220;/wp-content/themes/thesis_16/lib/scripts/&#8221; &#8211; you will need to adjust the path as appropriate to go from your actual script location up to the root of your WPMU install.<sup><a href="http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible#footnote_0_167" id="identifier_0_167" class="footnote-link footnote-identifier-link" title="Code note: There are probably better ways of doing this. I am not a programmer; I am a hack. Feel free to share your wisdom in the comments. Also, I&amp;#8217;m squishing the declare global of $blog_id for these two functions we&amp;#8217;re editing into the same line as the new code in the interest of keeping line numbers consistent. If that bugs you, then adjust as required.">1</a></sup></p>
<pre class="brush: php; first-line: 17; title: ; notranslate">require_once('../../../../../wp-blog-header.php');</pre>
<p>From this:</p>
<pre class="brush: php; first-line: 450; title: ; notranslate">$src = get_document_root($src) . '/' . $src;</pre>
<p>To this:</p>
<pre class="brush: php; first-line: 450; title: ; notranslate">global $blog_id; $src = get_document_root($src) . '/wp-content/blogs.dir/'. $blog_id.'/' . $src;</pre>
<p>And from this:</p>
<pre class="brush: php; first-line: 459; title: ; notranslate">// check for unix servers
 if (@file_exists($_SERVER['DOCUMENT_ROOT'] . '/' . $src))</pre>
<p>To This</p>
<pre class="brush: php; first-line: 459; title: ; notranslate">global $blog_id;    // check for unix servers
 if (@file_exists($_SERVER['DOCUMENT_ROOT'] .'/wp-content/blogs.dir/'. $blog_id.'/' . $src))</pre>
<p><a href="../wp-content/uploads/Thumbs_up_by_Wakalani.jpg"><img class="alignright" title="Thumbs_up_by_Wakalani" src="../wp-content/uploads/Thumbs_up_by_Wakalani-150x150.jpg" alt="Thumbs_up_by_Wakalani" width="150" height="150" /></a>That&#8217;s it. You now should have thumbs showing up where they belong!</p>
<p>Troubleshooting quick tips:</p>
<ul>
<li>If you get an &#8220;failed to open stream: No such file or directory&#8221; error, then your path to wp-blog-header file is probably off.</li>
<li>If you&#8217;re getting a &#8220;file not found&#8221; error, trying replacing the $blog_id variable with a hardcoded number of the blog id to see if the problem is in your code itself or in accessing the variable.</li>
</ul>
<ol class="footnotes"><li id="footnote_0_167" class="footnote">Code note: There are probably better ways of doing this. I am not a programmer; I am a hack. Feel free to share your wisdom in the comments. Also, I&#8217;m squishing the declare global of $blog_id for these two functions we&#8217;re editing into the same line as the new code in the interest of keeping line numbers consistent. If that bugs you, then adjust as required.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Setting Up Wildcard DNS for WPMU on cPanel</title>
		<link>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-wildcard-dns-for-wpmu</link>
		<comments>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-wildcard-dns-for-wpmu#comments</comments>
		<pubDate>Mon, 02 Nov 2009 21:44:12 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[WHM/cPanel]]></category>
		<category><![CDATA[WordPress Mu]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Wildcard DNS]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=148</guid>
		<description><![CDATA[Down and dirty method for setting up Wildcard DNS required for WPMU installation via cPanel. You'll never go back to editing DNS records again!]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-wildcard-dns-for-wpmu" title="Permanent link to Setting Up Wildcard DNS for WPMU on cPanel"><img class="post_image alignnone" src="http://thesishosting.dixiblog.com/files/2009/11/mu-header-logo.png" width="442" height="124" alt="WordPress MU Wildcard DNS Setup" /></a>
</p><p><strong>Allowing people to set up blogs for <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> MU at blog.domain.tld requires installing your WPMU in the site root and setting up wildcard DNS. </strong>In setting up my first WPMU, I ran across <a title="Wildcard DNS" href="http://ma.tt/2003/10/wildcard-dns-and-sub-domains/">this tutorial</a> by Matt Mullenweg of WordPress fame, linked from the WordPress MU docs.</p>
<p>Since I&#8217;m not the queen of DNS or anything, I checked with my admin folks to make sure I got the Virtual Host entries correct. I found out this is extremely easy to do if you have a cPanel setup.</p>
<p>Here&#8217;s How from my SysAdmin:</p>
<blockquote><p>To add wildcard DNS and vhost settings in one swoop, simply add a new sub domain to the account and name it &#8216;*&#8217; (the asterisk character). Make sure it&#8217;s document root is pointed to the same directory that your WordPress MU is setup in and cPanel will add everything else to all of the configuration files.</p></blockquote>
<p>Sure enough, worked like a charm, took 30 seconds, and didn&#8217;t require anything scary like restarting Apache&#8211;there is no time that runs slower in the time-space continuum than waiting for httpd to restart, man.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-wildcard-dns-for-wpmu/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Editing TimThumb Script to Allow Specific External Host</title>
		<link>http://www.thesishosting.com/2009/10/topics/wordpress/editing-timthumb-script-to-allow-specific-external-host</link>
		<comments>http://www.thesishosting.com/2009/10/topics/wordpress/editing-timthumb-script-to-allow-specific-external-host#comments</comments>
		<pubDate>Mon, 26 Oct 2009 21:25:47 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[timthumb]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=112</guid>
		<description><![CDATA[If you use a different domain for your images to speed page load, here's how to work around TimThumb script's prohibition of off-site thumbnailing.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/10/topics/wordpress/editing-timthumb-script-to-allow-specific-external-host" title="Permanent link to Editing TimThumb Script to Allow Specific External Host"><img class="post_image alignnone" src="http://thesishosting.dixiblog.com/files/2009/10/Thumbs_up_by_Wakalani.jpg" width="388" height="374" alt="TimThumb Script from External URL" /></a>
</p><p class="alert">This can now also be accomplished via the <a title="Thumbnail" href="http://www.binarymoon.co.uk/2009/07/timthumb-beta-test/">beta script</a>, which contains an array with allowed hostnames. But still good info to know.</p>
<p>Love the <strong><a title="timthumb script" href="http://code.google.com/p/timthumb/">TimThumb script</a> for auto-generating thumbnails in <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a></strong>, but feeling hemmed in by the requirement the image be hosted on your domain? If you use another domain for your image storage&#8211;to parallelize domains as recommended by <a title="Google Pagespeed" href="http://code.google.com/speed/page-speed/">Google&#8217;s Page Speed</a>&#8211;you can, with a simple edit to the script.</p>
<p class="note"><strong>Note:</strong> This only works for a using single, different domain from your blog, parked atop your current blog domain.</p>
<ol>
<li>So first, get your domain set up and parked.</li>
<li>Then, change the upload settings in WordPress (under &#8220;Settings &gt; Miscellaneous&#8221;) . Leave the &#8220;Store uploads in this folder&#8221; setting alone. But for the &#8220;Full URL Path to files, enter &#8221; http://mydomain.com/wp-content/uploads&#8221;<sup><a href="http://www.thesishosting.com/2009/10/topics/wordpress/editing-timthumb-script-to-allow-specific-external-host#footnote_0_112" id="identifier_0_112" class="footnote-link footnote-identifier-link" title="Without the quotes in the WordPress settings, and of course, replacing &amp;#8220;mydomain.com&amp;#8221; with your own domain. Duh.">1</a></sup></li>
<li>Then, you dig into the script to make your adjustment. Find this line:</li>
</ol>
<pre class="brush: php; first-line: 435; title: ; notranslate">$host = $_SERVER[&quot;HTTP_HOST&quot;];</pre>
<p>And replace with this line:</p>
<pre class="brush: php; first-line: 435; title: ; notranslate">$host = &quot;mydomain.com&quot;;</pre>
<p>Now, all your uploaded images will be stored in exactly the same folder as before physically, but use the parked domain&#8217;s url to display, which makes your site load faster since browsers only fetch a specific number of resources at a time, grouped by source domain. And your generated thumbnails will work without incident!</p>
<p>While I generally don&#8217;t advocate editing a core script file to get the desired behavior, it&#8217;s a small edit for a reasonably good payout of faster page load speed. Just make sure you note the changes someplace where you can find them so you&#8217;re not scratching your head as to why your thumbnails quit working when you upgrade the script next time around.</p>
<ol class="footnotes"><li id="footnote_0_112" class="footnote">Without the quotes in the WordPress settings, and of course, replacing &#8220;mydomain.com&#8221; with your own domain. Duh.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/10/topics/wordpress/editing-timthumb-script-to-allow-specific-external-host/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quickie &#8211; Disable WordPress Comments Temporarily</title>
		<link>http://www.thesishosting.com/2009/10/topics/web-hosting/quickie-disable-wordpress-comments-temporarily</link>
		<comments>http://www.thesishosting.com/2009/10/topics/web-hosting/quickie-disable-wordpress-comments-temporarily#comments</comments>
		<pubDate>Sun, 18 Oct 2009 01:54:34 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hosting move]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=70</guid>
		<description><![CDATA[Quick technique to temporarily disable all comments on a WordPress blog - handy for hosting moves.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/10/topics/web-hosting/quickie-disable-wordpress-comments-temporarily" title="Permanent link to Quickie &#8211; Disable WordPress Comments Temporarily"><img class="post_image alignnone" src="http://thesishosting.dixiblog.com/files/2009/10/500px-Computer_n_screen.svg_.png" width="500" height="517" alt="moving your wordpress blog" /></a>
</p><p>Very handy if you&#8217;re moving a <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> blog during DNS  propagation time. <em>This is best suited to remove the ability to comment on their blog without changing the comment status of posts in their database. </em>See the alternative <a title="SQL to turn off comments pingbacks on WP blog" href="http://thesishosting.com/topics/web-hosting/sql-closing-comments-on-wordpress-installation">SQL method to turn off comments and pingbacks on a WP blog in hosting transition</a> here.</p>
<p>From <a title="temporarily turn off wordpress comments" href="http://www.theblog.ca/wordpress-temporarily-disable-comments">http://www.theblog.ca/wordpress-temporarily-disable-comments</a>:</p>
<blockquote><p>1) Turn off the display of the comment form in your Comments file in your template. To do this, go to “Presentation… Theme Editor…” then edit the Comments file.</p></blockquote>
<p>You&#8217;ll see something like this.</p>
<p style="padding-left: 30px">
<pre class="brush: php; title: ; notranslate">?php if ('open' == $post-&gt;comment_status) : ?&gt;
&lt;h3 id=&quot;respond&quot;&gt;Leave a Reply&lt;/h3&gt;</pre>
</p>
<p>Replace it with something like this:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php // if ('open' == $post-&gt;comment_status) : ?&gt;
 &lt;p&gt;Comments are temporarily disabled&lt;/p&gt;</pre>
<p>Note: I see no need for the author&#8217;s suggestion of renaming the wp-comments-post.php file because we don&#8217;t need to worry about the spam comments accumulating during a hosting move.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/10/topics/web-hosting/quickie-disable-wordpress-comments-temporarily/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.thesishosting.com @ 2012-02-07 00:01:41 by W3 Total Cache -->
