<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Who Sees Ads 1.3.2</title>
	<atom:link href="http://planetozh.com/blog/2007/10/who-sees-ads-132/feed/" rel="self" type="application/rss+xml" />
	<link>http://planetozh.com/blog/2007/10/who-sees-ads-132/?source=rss</link>
	<description>A bit of my personal life, mainly focused on my kids. A bit of code, mainly focused on Wordpress and PHP. Overall, bits of nothing in particular.</description>
	<lastBuildDate>Sat, 13 Mar 2010 20:56:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ozh</title>
		<link>http://planetozh.com/blog/2007/10/who-sees-ads-132/comment-page-1/#comment-39859</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Fri, 19 Oct 2007 14:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2007/10/who-sees-ads-132/#comment-39859</guid>
		<description>Jean-Paul Â» unfortunately to this point I think I cannot be of much help. I have no idea what it could be, but there seem to be something weird with your server itself. On all my machines things work fine. FYI the cookies are perfectly stored &amp; incremented for me on your main page, but they don&#039;t get updated on your test page. This makes totally no sense to me...</description>
		<content:encoded><![CDATA[<p>Jean-Paul Â» unfortunately to this point I think I cannot be of much help. I have no idea what it could be, but there seem to be something weird with your server itself. On all my machines things work fine. FYI the cookies are perfectly stored &#038; incremented for me on your main page, but they don&#8217;t get updated on your test page. This makes totally no sense to me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Paul Horn</title>
		<link>http://planetozh.com/blog/2007/10/who-sees-ads-132/comment-page-1/#comment-39852</link>
		<dc:creator>Jean-Paul Horn</dc:creator>
		<pubDate>Fri, 19 Oct 2007 10:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2007/10/who-sees-ads-132/#comment-39852</guid>
		<description>Hi Ozh,

For myself (Firefox, guest user) I have this:
[code]
Cookie check:
Number of visits:
Last time was: 1 January 1970, 01:00

WSA check:
function wp_ozh_wsa_regularvisitor() returns: bool(false)
[/code]
I routed two other friends to &lt;a href=&quot;http://www.iphoneclub.nl/visitcheck.php&quot; rel=&quot;nofollow&quot;&gt;my test page&lt;/a&gt; and each of them got different results. One has the empty cookie as above (and we checked both if the cookie wasn&#039;t being blocked). The other has a correct cookie set:
[code]
Cookie check:
Number of visits: 134
Last time was: 19 October 2007, 12:12

WSA check:
function wp_ozh_wsa_regularvisitor() returns: bool(true)
[/code]
I&#039;m completely lost here. From looking at my AdSense page views for the last couple of days it looks like the cookie isn&#039;t working for most of the blog users :-( It&#039;s almost the only function I need to have :)

Thanks again, appreciate your time and efforts. If you need a better bug report, please let me know!</description>
		<content:encoded><![CDATA[<p>Hi Ozh,</p>
<p>For myself (Firefox, guest user) I have this:</p>
<div class="igBar"><span id="lcode-1"><a href="#" onclick="javascript:showPlainTxt('code-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-1">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Cookie check:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Number of visits:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Last time was: <span style="color:#800000;color:#800000;">1</span> January <span style="color:#800000;color:#800000;">1970</span>, <span style="color:#800000;color:#800000;">01</span>:<span style="color:#800000;color:#800000;">00</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">WSA check:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">function wp_ozh_wsa_regularvisitor<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> returns: bool<span style="color:#006600; font-weight:bold;">&#40;</span>false<span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
I routed two other friends to <a href="http://www.iphoneclub.nl/visitcheck.php" rel="nofollow">my test page</a> and each of them got different results. One has the empty cookie as above (and we checked both if the cookie wasn't being blocked). The other has a correct cookie set:</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Cookie check:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Number of visits: <span style="color:#800000;color:#800000;">134</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Last time was: <span style="color:#800000;color:#800000;">19</span> October <span style="color:#800000;color:#800000;">2007</span>, <span style="color:#800000;color:#800000;">12</span>:<span style="color:#800000;color:#800000;">12</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">WSA check:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">function wp_ozh_wsa_regularvisitor<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> returns: bool<span style="color:#006600; font-weight:bold;">&#40;</span>true<span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
I'm completely lost here. From looking at my AdSense page views for the last couple of days it looks like the cookie isn't working for most of the blog users :-( It's almost the only function I need to have :)</p>
<p>Thanks again, appreciate your time and efforts. If you need a better bug report, please let me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozh</title>
		<link>http://planetozh.com/blog/2007/10/who-sees-ads-132/comment-page-1/#comment-39838</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Fri, 19 Oct 2007 07:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2007/10/who-sees-ads-132/#comment-39838</guid>
		<description>Jean-Paul Â» I think this function *does* work.
The cookie values for last visit and page views are fetched and increment by function wp_ozh_wsa_setcookie(), which is called on hook &#039;plugins_loaded&#039;
Variable $diff = $time - $last, where $time is time() as defined a line above, and $last is cookie for last visit&#039;s time as defined from cookie 4 lines above.
Check by yourself: place &lt;a href=&quot;http://phpfi.com/269916&quot; rel=&quot;nofollow&quot;&gt;this file&lt;/a&gt; on your blog root and see what it says. If it doesn&#039;t work as expected, it must be once again a caching problem.</description>
		<content:encoded><![CDATA[<p>Jean-Paul Â» I think this function *does* work.<br />
The cookie values for last visit and page views are fetched and increment by function wp_ozh_wsa_setcookie(), which is called on hook 'plugins_loaded'<br />
Variable $diff = $time - $last, where $time is time() as defined a line above, and $last is cookie for last visit's time as defined from cookie 4 lines above.<br />
Check by yourself: place <a href="http://phpfi.com/269916" rel="nofollow">this file</a> on your blog root and see what it says. If it doesn't work as expected, it must be once again a caching problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Paul Horn</title>
		<link>http://planetozh.com/blog/2007/10/who-sees-ads-132/comment-page-1/#comment-39815</link>
		<dc:creator>Jean-Paul Horn</dc:creator>
		<pubDate>Thu, 18 Oct 2007 23:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2007/10/who-sees-ads-132/#comment-39815</guid>
		<description>I hope it&#039;s not the last update :-(

I seem to have problems with the &#039;regular visitors&#039; feature. I asked some of my blog visitors and they keep seeing the rule for non-regular visitors. We discussed this in the advanced rules blogpost before. I took a look at the code and noticed you used the variable $last for the $diff calculation, but the variable itself is never defined. Isn&#039;t that supposed to be $lasttime? Could you please have a look at that piece of code (for regular visitors) again just to set my mind at ease? :)

Thanks for the update. Too bad about the WP-Cache support, but it never worked for me anyway :-( Alas I&#039;m completely dependent on the caching due to the visitor numbers.</description>
		<content:encoded><![CDATA[<p>I hope it's not the last update :-(</p>
<p>I seem to have problems with the 'regular visitors' feature. I asked some of my blog visitors and they keep seeing the rule for non-regular visitors. We discussed this in the advanced rules blogpost before. I took a look at the code and noticed you used the variable $last for the $diff calculation, but the variable itself is never defined. Isn't that supposed to be $lasttime? Could you please have a look at that piece of code (for regular visitors) again just to set my mind at ease? :)</p>
<p>Thanks for the update. Too bad about the WP-Cache support, but it never worked for me anyway :-( Alas I'm completely dependent on the caching due to the visitor numbers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
