<?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 &#187; forum admin</title>
	<atom:link href="http://www.web-threads.com/tag/forum-admin/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>
<div class='wp_likes' id='wp_likes_post-356'><a class='like' href="javascript:wp_likes.like(356);" 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(356);">Unlike</a></div>
</div>
]]></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>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.
Like
Unlike

]]></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>
<div class='wp_likes' id='wp_likes_post-208'><a class='like' href="javascript:wp_likes.like(208);" 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(208);">Unlike</a></div>
</div>
]]></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>
	</channel>
</rss>
