<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WassUp Forums &#187; Tag: query - Recent Posts</title>
		<link>http://www.wpwp.org/forums/tags/query</link>
		<description>WassUp Forums &raquo; Tag: query - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Thu, 09 Feb 2012 08:13:11 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.wpwp.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.wpwp.org/forums/rss/tags/query" rel="self" type="application/rss+xml" />

		<item>
			<title>helene on "No Search Queries: PHP Warning"</title>
			<link>http://www.wpwp.org/forums/topic/no-search-queries-php-warning#post-730</link>
			<pubDate>Tue, 19 May 2009 18:32:23 +0000</pubDate>
			<dc:creator>helene</dc:creator>
			<guid isPermaLink="false">730@http://www.wpwp.org/forums/</guid>
			<description>&#60;p&#62;Thanks the heads up. That's one bug that we had already caught and squashed for the next revision. Let us know if you spot any more.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dez on "No Search Queries: PHP Warning"</title>
			<link>http://www.wpwp.org/forums/topic/no-search-queries-php-warning#post-729</link>
			<pubDate>Tue, 19 May 2009 17:30:29 +0000</pubDate>
			<dc:creator>dez</dc:creator>
			<guid isPermaLink="false">729@http://www.wpwp.org/forums/</guid>
			<description>&#60;p&#62;I modified the code.  Fix if you feel necessary.  Here are the lines affected.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
if ($top_results &#38;gt; 0) {&#60;br /&#62;
                foreach ($top_results as $top10) { ?&#38;gt;&#60;br /&#62;
&#38;lt;li class=&#34;charts&#34;&#38;gt;&#38;lt;?php echo $top10-&#38;gt;top_count.': &#60;a&#62;top_link.'&#34; target=&#34;_BLANK&#34;&#38;gt;'.stringShortener(preg_replace('/'.preg_quote($siteurl,'/').'/i', '', $top10-&#38;gt;top_item)&#60;br /&#62;
,$char_len).'&#60;/a&#62;'; ?&#38;gt;&#38;lt;?php } ?&#38;gt;&#38;lt;/td&#38;gt;&#38;lt;?php&#60;br /&#62;
                }&#60;br /&#62;
                else { ?&#38;gt;&#60;br /&#62;
                        &#38;lt;li class=&#34;charts&#34;&#38;gt;&#38;lt;?php echo &#34;No Results&#34;;&#60;br /&#62;
                }&#60;br /&#62;
                } // end if topsearch
&#60;/p&#62;&#60;/blockquote&#62;</description>
		</item>
		<item>
			<title>dez on "No Search Queries: PHP Warning"</title>
			<link>http://www.wpwp.org/forums/topic/no-search-queries-php-warning#post-728</link>
			<pubDate>Tue, 19 May 2009 17:19:39 +0000</pubDate>
			<dc:creator>dez</dc:creator>
			<guid isPermaLink="false">728@http://www.wpwp.org/forums/</guid>
			<description>&#60;p&#62;When there are no search queries in the lightbox for the top-ten, the area fatals with this message:&#60;/p&#62;
&#60;p&#62;Warning: Invalid argument supplied for foreach() in ../htdocs/wp-content/plugins/wassup/lib/action.php on line 259&#60;/p&#62;
&#60;p&#62;This goes away when there's a valid search referrer with keyword.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>enli on "SQL query to fetch IP addresses of some date X"</title>
			<link>http://www.wpwp.org/forums/topic/sql-query-to-fetch-ip-addresses-of-some-date-x#post-705</link>
			<pubDate>Thu, 30 Apr 2009 19:06:14 +0000</pubDate>
			<dc:creator>enli</dc:creator>
			<guid isPermaLink="false">705@http://www.wpwp.org/forums/</guid>
			<description>&#60;p&#62;Thanks for the explanatory reply, the query really helps a lot.&#60;/p&#62;
&#60;p&#62;Also another plugin &#34;WP-SpamFree&#34; sounds good too.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>helene on "SQL query to fetch IP addresses of some date X"</title>
			<link>http://www.wpwp.org/forums/topic/sql-query-to-fetch-ip-addresses-of-some-date-x#post-704</link>
			<pubDate>Thu, 30 Apr 2009 18:23:23 +0000</pubDate>
			<dc:creator>helene</dc:creator>
			<guid isPermaLink="false">704@http://www.wpwp.org/forums/</guid>
			<description>&#60;p&#62;Nope. Nothing wrong with accessing your own data.&#60;br /&#62;
The timestamp value for 24 hours ago is &#60;code&#62;time()-24*60*60&#60;/code&#62;.  If you set a variable in PHP &#60;code&#62;$yesterday=time()-24*60*60;&#60;/code&#62; you can use it to build your Mysql query.&#60;br /&#62;
ex: &#60;code&#62;$query = &#38;quot;SELECT...WHERE...AND timestamp &#38;gt;$yesterday&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;If you are working directly in MySql, the syntax is:&#60;br /&#62;
&#60;code&#62;SELECT...WHERE...AND timestamp&#38;gt;(UNIX_TIMESTAMP()-24*60*60);&#60;/code&#62;&#60;br /&#62;
There are some timezone issues that I am ignoring here, but I will leave it up to you to add or subtract more seconds from &#34;unix_timestamp()&#34; to get exactly 24 hours worth of data.&#60;/p&#62;
&#60;p&#62;Good luck with your banning effort. I found it to be a lot of hard work for little gain, myself. Spammers learned years ago to quickly rotate their IP addresses and domains to get around IP and domain blocking. &#60;/p&#62;
&#60;p&#62;Might I suggest that in addition to WP-Ban, you add an anti-spam plugin like Akismet, add a security question or captcha to your comments via a comment or contact plugin, and possibly install another gatekeeper plugin like &#60;a href=&#34;http://wordpress.org/extend/plugins/bad-behavior/&#34;&#62;Bad Behavior&#60;/a&#62; that uses a more heuristic method to find and block spammers before they get to your blog. This &#34;triple-block&#34; method is very effective on my own site.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>enli on "SQL query to fetch IP addresses of some date X"</title>
			<link>http://www.wpwp.org/forums/topic/sql-query-to-fetch-ip-addresses-of-some-date-x#post-703</link>
			<pubDate>Wed, 29 Apr 2009 13:03:08 +0000</pubDate>
			<dc:creator>enli</dc:creator>
			<guid isPermaLink="false">703@http://www.wpwp.org/forums/</guid>
			<description>&#60;p&#62;Why was my previous account was deleted for no reason?&#60;/p&#62;
&#60;p&#62;I just need to know how to get date from wassup table.&#60;/p&#62;
&#60;p&#62;All i am trying to achieve is, make a query to MY OWN sql database and get the count of pagevisits of some visitor. The purpose is to ban abuser after looking for entry in &#60;a href=&#34;http://www.projecthoneypot.org/&#34; rel=&#34;nofollow&#34;&#62;http://www.projecthoneypot.org/&#60;/a&#62;. Whats wrong in that?&#60;/p&#62;
&#60;p&#62;Anyways, so far i have this query that will tell me number of hits by certain IP.&#60;/p&#62;
&#60;p&#62;SELECT count(timestamp) from wp_wassup where ip=&#34;XYZ&#34;;&#60;/p&#62;
&#60;p&#62;I just need to add condition that will specify to get only TODAYS hits.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sninnyliada on "SQL query to fetch IP addresses of some date X"</title>
			<link>http://www.wpwp.org/forums/topic/sql-query-to-fetch-ip-addresses-of-some-date-x#post-702</link>
			<pubDate>Tue, 28 Apr 2009 07:48:26 +0000</pubDate>
			<dc:creator>Sninnyliada</dc:creator>
			<guid isPermaLink="false">702@http://www.wpwp.org/forums/</guid>
			<description>&#60;p&#62;Hi, I have lots of spammers on my site and I am using wp-ban plugin to ban them all individually. For this, i need to know the IP of spammers which wassup already tracks.&#60;/p&#62;
&#60;p&#62;Now the problem is I dont know how to get all IP addresses of some date. I see the column timestamp in wassup table structure, but not sure how it is calculated.&#60;/p&#62;
&#60;p&#62;I would be great if somebody would give me a SQL query to get all visitors IP addresses of some date X, or atleast todays visitors.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
EnLi
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

