<?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>Web Threads</title>
	<atom:link href="http://www.web-threads.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-threads.com</link>
	<description>Websites for Business and Online Communities</description>
	<lastBuildDate>Tue, 10 Aug 2010 21:48:35 +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>Find Deleted SMF User Posts</title>
		<link>http://www.web-threads.com/2010/08/find-deleted-smf-user-posts/</link>
		<comments>http://www.web-threads.com/2010/08/find-deleted-smf-user-posts/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 21:48:35 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[forum admin]]></category>
		<category><![CDATA[smf]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=356</guid>
		<description><![CDATA[When an SMF member deletes their account and then contacts you to delete their posts, it&#8217;s not an easy request because the posts are no longer attached to a user account. What can you do? You can query the database for the list of the messages they posted.

SELECT * FROM smf_messages WHERE posterName='{deletedusername}'

Replace all of {deletedusername} with the username of the deleted member and update your table name for smf_messages.
You could run a DELETE query, but this could result in some odd behaviour, forum message counts would be wrong and if it&#8217;s the first post of a topic, it could make the whole topic out of kilter. It&#8217;s best to manually delete these. (And you might consider wanting to charge people for your trouble!) 
After running the above query in phpmyadmin, click the export link at the bottom and save to excel csv. 
Once you have the excel file, you ...]]></description>
			<content:encoded><![CDATA[<p>When an SMF member deletes their account and then contacts you to delete their posts, it&#8217;s not an easy request because the posts are no longer attached to a user account. What can you do? You can query the database for the list of the messages they posted.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> smf_messages <span style="color: #990099; font-weight: bold;">WHERE</span> posterName<span style="color: #CC0099;">=</span><span style="color: #008000;">'{deletedusername}'</span></pre></div></div>

<p><strong>Replace all of {deletedusername} with the username of the deleted member and update your table name for smf_messages.</strong></p>
<p>You <em>could</em> run a DELETE query, <strong>but</strong> this could result in some odd behaviour, forum message counts would be wrong and if it&#8217;s the first post of a topic, it could make the whole topic out of kilter. It&#8217;s best to manually delete these. (And you might consider wanting to charge people for your trouble!) </p>
<p>After running the above query in phpmyadmin, click the export link at the bottom and save to excel csv. </p>
<p>Once you have the excel file, you can copy the full link to the the forum index.php?topic= in a new inserted column. Copy from the first row and highlight the rest to paste to all cells. Delete or move the second column (message numbers) so that the link column is next to the topic number. You could then highlight both columns and paste to a text file for list of links to the topics, or concatenate (merge) both columns in another new column.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/08/find-deleted-smf-user-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Query to Disable Comments on Node by Content Type</title>
		<link>http://www.web-threads.com/2010/04/drupal-query-to-disable-comments-on-node-by-content-type/</link>
		<comments>http://www.web-threads.com/2010/04/drupal-query-to-disable-comments-on-node-by-content-type/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 19:42:23 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=345</guid>
		<description><![CDATA[A handy drupal snippet, when someone&#8217;s added hundreds of nodes with comments allowed and you need to bulk disable them without editing them each by hand.


UPDATE drup_node SET `comment`=0 WHERE type='review';

Modify as needed with the correct drupal node table name for your installation, and set the type= to whatever the type you&#8217;d like to update.
Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p>A handy drupal snippet, when someone&#8217;s added hundreds of nodes with comments allowed and you need to bulk disable them without editing them each by hand.<br />
<span id="more-345"></span></p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> drup_node <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #008000;">`comment`</span><span style="color: #CC0099;">=</span><span style="color: #008080;">0</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #990099; font-weight: bold;">type</span><span style="color: #CC0099;">=</span><span style="color: #008000;">'review'</span><span style="color: #000033;">;</span></pre></div></div>

<p>Modify as needed with the correct drupal node table name for your installation, and set the type= to whatever the type you&#8217;d like to update.</p>
<div class='wp_likes' id='wp_likes_post-345'><a class='like' href="javascript:wp_likes.like(345);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(345);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/04/drupal-query-to-disable-comments-on-node-by-content-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Plugin Exec-PHP Hack &#8211; Disable For Post</title>
		<link>http://www.web-threads.com/2010/01/wordpress-plugin-exec-php-hack-disable-for-post/</link>
		<comments>http://www.web-threads.com/2010/01/wordpress-plugin-exec-php-hack-disable-for-post/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 16:54:05 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=343</guid>
		<description><![CDATA[If you&#8217;re running the Exec-PHP plugin in Wordpress and struggling with posting your php code blocks without it being executed, I&#8217;ve made a quick hack to disable this plugin per post by adding a custom field. You just have to remember not to upgrade automatically or you&#8217;ll lose the changes. With a few lines of code and a Custom field in on your post entry page, you can disable Exec-PHP and it will skip this content. Note it will still run on other elements, just not the content.

In file plugins/exec-php/includes/runtime.php find the block that starts at line 52:

	function filter_user_content&#40;$content&#41;
	&#123;
		global $post;

Add after it:

		// check if this post has disabled exec-php in custom fields
		$custom_fields = get_post_custom&#40;&#41;; 
		$php_disable_this_post = $custom_fields&#91;'disablephp_exec'&#93;;
		$phpexecdisable= $php_disable_this_post&#91;0&#93;;
		if &#40;$phpexecdisable =='1'&#41;
			return $content;

Add the Custom Field to your post, &#8216;disablephp_exec&#8217; and give it a value of 1. 
Upload your new runtime.php file and you&#8217;re off.
This is a great plugin, very useful, but ...]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running the Exec-PHP plugin in Wordpress and struggling with posting your php code blocks without it being executed, I&#8217;ve made a quick hack to disable this plugin per post by adding a custom field. <em>You just have to remember not to upgrade automatically or you&#8217;ll lose the changes.</em> With a few lines of code and a Custom field in on your post entry page, you can disable Exec-PHP and it will skip this content. Note it will still run on other elements, just not the content.</p>
<p><span id="more-343"></span><br />
In file plugins/exec-php/includes/runtime.php find the block that starts at line 52:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">function</span> filter_user_content<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add after it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #666666; font-style: italic;">// check if this post has disabled exec-php in custom fields</span>
		<span style="color: #000088;">$custom_fields</span> <span style="color: #339933;">=</span> get_post_custom<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
		<span style="color: #000088;">$php_disable_this_post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$custom_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'disablephp_exec'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$phpexecdisable</span><span style="color: #339933;">=</span> <span style="color: #000088;">$php_disable_this_post</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$phpexecdisable</span> <span style="color: #339933;">==</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add the Custom Field to your post, &#8216;disablephp_exec&#8217; and give it a value of 1. </p>
<p>Upload your new runtime.php file and you&#8217;re off.</p>
<p>This is a great plugin, very useful, but I wish it used code tags instead of standard php tags.</p>
<p><a href="http://wordpress.org/extend/plugins/exec-php/">Exec-PHP Plugin on Wordpress</a><br />
<a href="http://bluesome.net/post/2005/08/18/50/">Exec-PHP Homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/01/wordpress-plugin-exec-php-hack-disable-for-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assign Guest Posts to New Member in SMF</title>
		<link>http://www.web-threads.com/2010/01/assign-guest-posts-to-new-member-smf/</link>
		<comments>http://www.web-threads.com/2010/01/assign-guest-posts-to-new-member-smf/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 10:18:02 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[forum admin]]></category>
		<category><![CDATA[smf]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=216</guid>
		<description><![CDATA[Or as I like to call it, &#8220;Query to assign guest posts to user who threw a tantrum and deleted their account and then wanted it back again.&#8221; We get these at least twice a year, usually around the holidays.

Have them create a new account and then run this query:

UPDATE smf_messages SET ID_MEMBER = &#123;newaccountnumber&#125; WHERE posterName = '{username}';

Always always back up before running queries or making changes.
Be sure to change {newaccountnumber} to the id of the new account, {username} to name of the old account (remove curly braces) and smf_messages to the correct table name/prefix.
]]></description>
			<content:encoded><![CDATA[<p>Or as I like to call it, &#8220;Query to assign guest posts to user who threw a tantrum and deleted their account and then wanted it back again.&#8221; We get these at least twice a year, usually around the holidays.<br />
<span id="more-216"></span></p>
<p>Have them create a new account and then run this query:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> smf_messages <span style="color: #990099; font-weight: bold;">SET</span> ID_MEMBER <span style="color: #CC0099;">=</span> <span style="color: #FF00FF;">&#123;</span>newaccountnumber<span style="color: #FF00FF;">&#125;</span> <span style="color: #990099; font-weight: bold;">WHERE</span> posterName <span style="color: #CC0099;">=</span> <span style="color: #008000;">'{username}'</span><span style="color: #000033;">;</span></pre></div></div>

<p><strong>Always always back up before running queries or making changes.</strong></p>
<p>Be sure to change <strong>{newaccountnumber}</strong> to the id of the new account, <strong>{username}</strong> to name of the old account (remove curly braces) and smf_messages to the correct table name/prefix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/01/assign-guest-posts-to-new-member-smf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Spam Private Message Content in SMF</title>
		<link>http://www.web-threads.com/2010/01/remove-spam-private-message-content-in-smf/</link>
		<comments>http://www.web-threads.com/2010/01/remove-spam-private-message-content-in-smf/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 09:50:47 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[forum admin]]></category>
		<category><![CDATA[smf]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=208</guid>
		<description><![CDATA[A useful MySQL query to delete a spam PM content on Simple Machines Forum.

Change the &#8216;numberhere&#8217; to be the spammer&#8217;s user id number and change the table prefix to your own prefix if different. This does not delete the PM, but does replace the spam content.

&#160;
UPDATE `smf_instant_messages` SET `body` = 'Message deleted due to spam' WHERE `ID_MEMBER_FROM` = 'numberhere';

Always always back up before running queries or making changes.
This is useful in the case of porn spam, however, people will have gotten any PM notifications of that.
]]></description>
			<content:encoded><![CDATA[<p>A useful MySQL query to delete a spam PM content on Simple Machines Forum.</p>
<p><span id="more-208"></span><br />
Change the &#8216;numberhere&#8217; to be the spammer&#8217;s user id number and change the table prefix to your own prefix if different. This does not delete the PM, but does replace the spam content.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">&nbsp;
<span style="color: #990099; font-weight: bold;">UPDATE</span> <span style="color: #008000;">`smf<span style="color: #008080; font-weight: bold;">_</span>instant<span style="color: #008080; font-weight: bold;">_</span>messages`</span> <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #008000;">`body`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'Message deleted due to spam'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`ID<span style="color: #008080; font-weight: bold;">_</span>MEMBER<span style="color: #008080; font-weight: bold;">_</span>FROM`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'numberhere'</span><span style="color: #000033;">;</span></pre></div></div>

<p><strong>Always always back up before running queries or making changes.</strong></p>
<p>This is useful in the case of porn spam, however, people will have gotten any PM notifications of that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/01/remove-spam-private-message-content-in-smf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UK Yankee -community website management</title>
		<link>http://www.web-threads.com/2009/12/uk-yankee/</link>
		<comments>http://www.web-threads.com/2009/12/uk-yankee/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:02:30 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[social community]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/wtnew/?p=74</guid>
		<description><![CDATA[WebThreads has sponsored and maintained the UK Yankee website since its inception in 1999. It is a reputable and busy resource for expat Americans in the UK. It is driven by several integrated PHP content management systems such as Dokuwiki, Nucleus and Simple Machines Forum.


This expat website began as an information resource and grew to a thriving community over the past decade. It has a Google pagerank of 4/10 and gets over a million page views per month.

We are currently working on a revamp of the site design and migrating the data to Drupal.
 Website: http://www.uk-yankee.com.
Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.web-threads.com/press/wp-content/uploads/2009/12/UK-Yankee-150x150.png" alt="Expat community website" title="UK-Yankee" width="150" height="150" class="alignleft size-thumbnail wp-image-75" />WebThreads has sponsored and maintained the UK Yankee website since its inception in 1999. It is a reputable and busy resource for expat Americans in the UK. It is driven by several integrated PHP content management systems such as Dokuwiki, Nucleus and Simple Machines Forum.</p>
<p><span id="more-74"></span></p>
<p></p>
<p>This expat website began as an information resource and grew to a thriving community over the past decade. It has a Google pagerank of 4/10 and gets over a million page views per month.</p>
<p><a href="http://www.web-threads.com/wtnew/wp-content/uploads/2009/12/alexa-rank.png"><img src="http://www.web-threads.com/press/wp-content/uploads/2009/12/alexa-rank-300x192.png" alt="" title="alexa-rank" width="300" height="192" class="aligncenter size-medium wp-image-80" /></a></p>
<p>We are currently working on a revamp of the site design and migrating the data to Drupal.<br />
 <strong>Website</strong>: <a href="http://www.uk-yankee.com">http://www.uk-yankee.com</a>.</p>
<div class='wp_likes' id='wp_likes_post-74'><a class='like' href="javascript:wp_likes.like(74);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(74);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/12/uk-yankee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kneeguru &#8211; Health Support Community</title>
		<link>http://www.web-threads.com/2009/10/kneeguru-health-support-community/</link>
		<comments>http://www.web-threads.com/2009/10/kneeguru-health-support-community/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 13:31:08 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[social community]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/wtnew/?p=86</guid>
		<description><![CDATA[ Web Threads has provided technical support and advice to KNEEguru.co.uk for over 5 years. This is a large site with knee condition information and a thriving support community.

The Administrators created their own HTML design and we customised their system themes for an integrated Drupal driven website and Simple Machines Forum. We provide advice and technical scripting help when needed.
Website: http://www.kneeguru.co.uk
Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.web-threads.com/press/wp-content/uploads/2009/12/kneeguru-150x150.png" alt="" title="kneeguru" width="150" height="150" class="alignleft size-thumbnail wp-image-87" /> Web Threads has provided technical support and advice to KNEEguru.co.uk for over 5 years. This is a large site with knee condition information and a thriving support community.</p>
<p><span id="more-86"></span></p>
<p>The Administrators created their own HTML design and we customised their system themes for an integrated Drupal driven website and Simple Machines Forum. We provide advice and technical scripting help when needed.</p>
<p><b>Website:</b> <a href="http://www.kneeguru.co.uk">http://www.kneeguru.co.uk</a></p>
<div class='wp_likes' id='wp_likes_post-86'><a class='like' href="javascript:wp_likes.like(86);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(86);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/10/kneeguru-health-support-community/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal: mq4 File Attachments Open As Plain Text</title>
		<link>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/</link>
		<comments>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 19:43:43 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=270</guid>
		<description><![CDATA[A quick fix this morning for a client with a Drupal issue, links to mq4 files were opening as plain text in the browser window instead of presenting a download file prompt.
This is due to the server configuration, apache mime-types. It is usually easily fixed in an .htaccess file.


AddType application/octet-stream mq4

If that doesn&#8217;t sort the issue after clearing the browser cache, you can also try adding:

&#60;Files *.mq4&#62;
ForceType application/octet-stream
Header set Content-Disposition attachment
&#60;/Files&#62;

See also:
Drupal Mime-Types
Apache mod_mime
Apache htaccess directives

Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p>A quick fix this morning for a client with a Drupal issue, links to mq4 files were opening as plain text in the browser window instead of presenting a download file prompt.</p>
<p>This is due to the server configuration, apache mime-types. It is usually easily fixed in an .htaccess file.<br />
<span id="more-270"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">AddType application<span style="color: #000000; font-weight: bold;">/</span>octet-stream mq4</pre></div></div>

<p>If that doesn&#8217;t sort the issue after clearing the browser cache, you can also try adding:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>Files <span style="color: #000000; font-weight: bold;">*</span>.mq4<span style="color: #000000; font-weight: bold;">&gt;</span>
ForceType application<span style="color: #000000; font-weight: bold;">/</span>octet-stream
Header <span style="color: #000000; font-weight: bold;">set</span> Content-Disposition attachment
<span style="color: #000000; font-weight: bold;">&lt;/</span>Files<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>See also:<br />
<a href="http://obor.us/node/2027" rel="nofollow">Drupal Mime-Types</a><br />
<a href="http://httpd.apache.org/docs/1.3/mod/mod_mime.html" rel="nofollow">Apache mod_mime</a><br />
<a href="http://httpd.apache.org/docs/1.3/howto/htaccess.html" rel="nofollow">Apache htaccess directives</a>
</p>
<div class='wp_likes' id='wp_likes_post-270'><a class='like' href="javascript:wp_likes.like(270);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(270);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Empty Tables in PhpMyAdmin (MySQL)</title>
		<link>http://www.web-threads.com/2009/08/how-to-empty-tables-in-phpmyadmin-mysql/</link>
		<comments>http://www.web-threads.com/2009/08/how-to-empty-tables-in-phpmyadmin-mysql/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 19:58:37 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Website Management]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=275</guid>
		<description><![CDATA[Recently I needed to empty the Drupal sessions and cache tables which had grown to some million+ rows and were causing weekly database errors on a busy health community website. In PhpMyAdmin, permissions to empty tables weren&#8217;t available.

I searched for a quick way to easily clear the table and found that truncate does the job and the permissions to do this was there even though it was not listed in the options of phpmyadmin.

TRUNCATE TABLE `drupal_sessions`

I also added a Drupal plugin to do database maintenance weekly to prevent this happening again. Sure enough, the site has been behaving and performing much better since, knock on wood.
Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to empty the Drupal sessions and cache tables which had grown to some million+ rows and were causing weekly database errors on a busy health community website. In PhpMyAdmin, permissions to empty tables weren&#8217;t available.<br />
<span id="more-275"></span><br />
I searched for a quick way to easily clear the table and found that <a title="MySQL Manual: Truncate" href="http://dev.mysql.com/doc/refman/5.0/en/truncate.html" rel="nofollow">truncate</a> does the job and the permissions to do this was there even though it was not listed in the options of phpmyadmin.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">TRUNCATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`drupal<span style="color: #008080; font-weight: bold;">_</span>sessions`</span></pre></div></div>

<p>I also added a Drupal plugin to do database maintenance weekly to prevent this happening again. Sure enough, the site has been behaving and performing much better since, knock on wood.</p>
<div class='wp_likes' id='wp_likes_post-275'><a class='like' href="javascript:wp_likes.like(275);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(275);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/08/how-to-empty-tables-in-phpmyadmin-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook, For Business and Pleasure</title>
		<link>http://www.web-threads.com/2009/08/facebook-for-business-and-pleasure/</link>
		<comments>http://www.web-threads.com/2009/08/facebook-for-business-and-pleasure/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 18:08:21 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[social community]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=258</guid>
		<description><![CDATA[Media has been buzzing with the success of social networks Facebook and Twitter. Information is being exchanged at a viral rate and is influencing the success of businesses and organisations. If you aren&#8217;t on Facebook, you might be wondering what&#8217;s the point. Myspace, Bebo, blogging, is it all the same? Not quite.
Myspace and Bebo have been around a long time and have been popular with teenagers. They could blog and share pictures with their friends (and even strangers). This seemed to hold little appeal for adults, we&#8217;re already too busy.
Facebook took the blog model and added a twist that appealed to adults. Instead of having to take the time to visit and read everyone&#8217;s individual pages, Facebook streams your friends updates into your facebook home page. Updates at a glance and gave the ability to acknowledge it with a thumbs up in one click, or leave a comment in a ...]]></description>
			<content:encoded><![CDATA[<p>Media has been buzzing with the success of social networks Facebook and Twitter. Information is being exchanged at a viral rate and is influencing the success of businesses and organisations. If you aren&#8217;t on Facebook, you might be wondering what&#8217;s the point. Myspace, Bebo, blogging, is it all the same? Not quite.</p>
<p><span id="more-258"></span>Myspace and Bebo have been around a long time and have been popular with teenagers. They could blog and share pictures with their friends (and even strangers). This seemed to hold little appeal for adults, we&#8217;re already too busy.</p>
<p>Facebook took the blog model and added a twist that appealed to adults. Instead of having to take the time to visit and read everyone&#8217;s individual pages, Facebook streams your friends updates into your facebook home page. Updates at a glance and gave the ability to acknowledge it with a thumbs up in one click, or leave a comment in a minute. In a few minutes you can get an overview of what&#8217;s happening to people who matter to you.</p>
<p>Social media has made the world seem smaller. With our families spanning the globe, Facebook can be a tool for strong communication, sharing events, sharing photos, videos and playing countless types of games, such as scrabble or bejeweled. You can even become a fan of <em>The Muppets</em> or <em>&#8220;The Cold Side of the Pillow&#8221;. </em></p>
<p>Facebook offers many privacy settings for your posted content. If there are things you&#8217;d share with your best mates that you might not want your mum to see, it&#8217;s not a problem. You can sort your friends into groups and assign your content to be viewed by some of those groups, or not. Spam is well under control, I can&#8217;t recall seeing any.</p>
<p>Businesses and organisations can also take advantage of Facebook by creating a Facebook Page (this is not the same as a Facebook Group). By doing this, you can share your page with customers, staff and friends. They can then become Fans of your page and be fed your updates in their page. Their friends could also find your page interesting and become Fans. Pages provide the facilities for targeted advertising, attracting new contacts and engaging them in discussion.</p>
<p>Recent studies are showing that companies using social media have increased their revenue by 18% in the past 12 months. (Source: <a href="http://www.engagementdb.com">www.engagementdb.com</a>) It is worth investigating what they are doing to defy the economic woes.</p>
<p>How does &#8220;Wiltshire&#8221; rank in Facebook search results? 35 Pages, 500+ Groups, and 313 Events posted. </p>
<p>Facebook is a diverse tool, and provides equal opportunities for all entities, with just a bit of effort.</p>
<div class='wp_likes' id='wp_likes_post-258'><a class='like' href="javascript:wp_likes.like(258);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(258);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/08/facebook-for-business-and-pleasure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.412 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-07 04:02:00 -->

