<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support User Favorites: pnaw10</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support User Favorites: pnaw10</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 04:32:24 +0000</pubDate>

<item>
<title>pnaw10 on "[Plugin: WordPress.com Stats] Stats Displays Wrong Post Titles"</title>
<link>http://wordpress.org/support/topic/187904#post-800077</link>
<pubDate>Thu, 10 Jul 2008 08:10:53 +0000</pubDate>
<dc:creator>pnaw10</dc:creator>
<guid isPermaLink="false">800077@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'd like to know why WordPress.com Stats sometimes shows the wrong titles on the list of &#34;Top Posts&#34; for the day?&#60;/p&#62;
&#60;p&#62;For example, some posts are displayed with a default title like &#60;code&#62;&#38;quot;Draft created on July 8, 2008 at 1:20 am&#60;/code&#62;.&#34;&#60;/p&#62;
&#60;p&#62;In one case, I had a &#34;working title&#34; for a post before it was published.  I saved it as a draft, came back a few hours later, and changed the title before publishing the article.  but WP Stats lists it under the OLD title.&#60;/p&#62;
&#60;p&#62;For both cases, the common theme is that Stats is showing titles that existed &#60;strong&#62;before&#60;/strong&#62; the articles were even published.  How does Stats get a hold of these &#34;original&#34; titles, when they were changed before the articles went public?&#60;/p&#62;
&#60;p&#62;Making this even more confusing -- depending on which page I'm looking at (today, 7 day, etc.) sometimes Stats actually shows the correct title... but one click to a different page, and it goes back to showing the wrong titles.&#60;/p&#62;
&#60;p&#62;I haven't been able to determine exactly what causes the &#34;wrong&#34; titles to show up... it just seems to happen at random.&#60;/p&#62;
&#60;p&#62;Other than this minor annoyance (sometimes I have to click the link to figure out which &#34;Draft&#34; is being referenced), Stats is great.  It's doing a much better job of tracking my traffic than FeedBurner.  I wish it would also show me how many people just visit the homepage... might be helpful to know how many just view it and leave, or to figure out if people are hitting certain pages directly without going through the homepage.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/stats/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/stats/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Republic on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-687468</link>
<pubDate>Mon, 04 Feb 2008 16:46:39 +0000</pubDate>
<dc:creator>Republic</dc:creator>
<guid isPermaLink="false">687468@http://wordpress.org/support/</guid>
<description>&#60;p&#62;citizenkeith - were you able to get the code to work?  I have almost the same need for the code for a similar application.&#60;/p&#62;
&#60;p&#62;If it is working, can you post the code and a link to your site?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>citizenkeith on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-679099</link>
<pubDate>Sat, 19 Jan 2008 14:05:19 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">679099@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Sorry, posted the wrong code. And it's not working. :(&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;img src=&#38;quot;http://www.domain.com/picture&#38;lt;?php
$now = getdate();
$hour = $now[&#38;#39;hours&#38;#39;];
$weekday = $now[&#38;#39;wday&#38;#39;]; // 0 = Sun, 6 = Sat
if ($hour &#38;gt;= 1 &#38;#38;&#38;#38; $hour &#38;lt; 4 &#38;#38;&#38;#38; $weekday &#38;gt;= 2) {
	$timepic = &#38;#39;0100pic&#38;#39;;
} elseif ($hour &#38;gt;= 6 &#38;#38;&#38;#38; $hour &#38;lt; 9 &#38;#38;&#38;#38; $weekday &#38;gt;= 1 &#38;#38;&#38;#38; $weekday &#38;lt;= 5) {
	$timepic = &#38;#39;0600pic&#38;#39;;
} elseif ($hour &#38;gt;= 9 &#38;#38;&#38;#38; $hour &#38;lt; 12 &#38;#38;&#38;#38; $weekday &#38;gt;= 1 &#38;#38;&#38;#38; $weekday &#38;lt;= 5) {
	$timepic = &#38;#39;0900pic&#38;#39;;
} elseif ($hour &#38;gt;= 12 &#38;#38;&#38;#38; $hour &#38;lt; 15 &#38;#38;&#38;#38; $weekday &#38;gt;= 1 &#38;#38;&#38;#38; $weekday &#38;lt;= 5) {
	$timepic = &#38;#39;1200pic&#38;#39;;
} elseif ($hour &#38;gt;= 15 &#38;#38;&#38;#38; $hour &#38;lt; 17 &#38;#38;&#38;#38; $weekday &#38;gt;= 1 &#38;#38;&#38;#38; $weekday &#38;lt;= 5) {
	$timepic = &#38;#39;1500pic&#38;#39;;
} elseif ($hour &#38;gt;= 17 &#38;#38;&#38;#38; $hour &#38;lt; 18 &#38;#38;&#38;#38; $weekday &#38;gt;= 1 &#38;#38;&#38;#38; $weekday &#38;lt;= 5) {
	$timepic = &#38;#39;1700pic&#38;#39;;
} elseif ($hour &#38;gt;= 18 &#38;#38;&#38;#38; $hour &#38;lt; 20 &#38;#38;&#38;#38; $weekday &#38;gt;= 1 &#38;#38;&#38;#38; $weekday &#38;lt;= 5) {
	$timepic = &#38;#39;1800pic&#38;#39;;
} elseif ($hour &#38;gt;= 20 &#38;#38;&#38;#38; $hour &#38;lt; 23 &#38;#38;&#38;#38; $weekday &#38;gt;= 1 &#38;#38;&#38;#38; $weekday &#38;lt;= 5) {
	$timepic = &#38;#39;2000pic&#38;#39;;
} elseif ($hour &#38;gt;= 23 &#124;&#124; $hour &#38;lt; 16 &#38;#38;&#38;#38; $weekday &#38;gt;= 1 &#38;#38;&#38;#38; $weekday &#38;lt;= 5) {
	$timepic = &#38;#39;2300pic&#38;#39;;
} else {
	$timepic = &#38;#39;nobody&#38;#39;;
}
echo $timepic;
?&#38;gt;.jpg&#38;quot; alt=&#38;quot;On The Air Now&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I want every image to appear Monday through Friday only, except 0100pic which will appear Tuesday through Saturday. All other times the default &#34;nobody&#34; image will appear.&#60;/p&#62;
&#60;p&#62;The time of day is working correctly, but the day of the week isn't working. It's Saturday, and all the regular images are showing.
&#60;/p&#62;</description>
</item>
<item>
<title>citizenkeith on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-678837</link>
<pubDate>Fri, 18 Jan 2008 22:20:16 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">678837@http://wordpress.org/support/</guid>
<description>&#60;p&#62;How does this look? One show is on from 1am-4am, Tuesday through Saturday.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;img src=&#38;quot;http://www.domain.com/picture&#38;lt;?php
$now = getdate();
$hour = $now[&#38;#39;hours&#38;#39;];
$weekday = $now[&#38;#39;wday&#38;#39;]; // 0 = Sun, 6 = Sat
if ($hour &#38;gt;= 1 &#38;#38;&#38;#38; $hour &#38;lt; 4 &#38;#38;&#38;#38; weekday &#38;gt;=2) {
	$timepic = &#38;#39;0100pic&#38;#39;;
} elseif ($hour &#38;gt;= 6 &#38;#38;&#38;#38; $hour &#38;lt; 9) {
	$timepic = &#38;#39;0600pic&#38;#39;;
} elseif ($hour &#38;gt;= 9 &#38;#38;&#38;#38; $hour &#38;lt; 12) {
	$timepic = &#38;#39;0900pic&#38;#39;;
} elseif ($hour &#38;gt;= 12 &#38;#38;&#38;#38; $hour &#38;lt; 15) {
	$timepic = &#38;#39;1200pic&#38;#39;;
} elseif ($hour &#38;gt;= 15 &#38;#38;&#38;#38; $hour &#38;lt; 17) {
	$timepic = &#38;#39;1500pic&#38;#39;;
} elseif ($hour &#38;gt;= 17 &#38;#38;&#38;#38; $hour &#38;lt; 18) {
	$timepic = &#38;#39;1700pic&#38;#39;;
} elseif ($hour &#38;gt;= 18 &#38;#38;&#38;#38; $hour &#38;lt; 20) {
	$timepic = &#38;#39;1800pic&#38;#39;;
} elseif ($hour &#38;gt;= 20 &#38;#38;&#38;#38; $hour &#38;lt; 23) {
	$timepic = &#38;#39;2000pic&#38;#39;;
} elseif ($hour &#38;gt;= 23 &#124;&#124; $hour &#38;lt; 16) {
	$timepic = &#38;#39;2300pic&#38;#39;;
} else {
	$timepic = &#38;#39;nobody&#38;#39;;
}
echo $timepic;
?&#38;gt;.jpg&#38;quot; alt=&#38;quot;On The Air Now&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>citizenkeith on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-672668</link>
<pubDate>Mon, 07 Jan 2008 20:33:52 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">672668@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks! That did the trick.&#60;/p&#62;
&#60;p&#62;Now I'll try out the weekend code and see what happens. But I'll have to wait until the weekend, I guess. :-D
&#60;/p&#62;</description>
</item>
<item>
<title>Otto42 on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-672657</link>
<pubDate>Mon, 07 Jan 2008 20:12:22 +0000</pubDate>
<dc:creator>Otto42</dc:creator>
<guid isPermaLink="false">672657@http://wordpress.org/support/</guid>
<description>&#60;p&#62;No, now that logic error I do see.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;...
} elseif ($hour &#38;gt; 12 or $hour &#38;lt; 15) {
	$timepic = &#38;#39;1200pic
} elseif ($hour &#38;gt; 15 or $hour &#38;lt; 18) {
	$timepic = &#38;#39;1500pic&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What happens when the hour is 3 pm exactly? Ahh, that one is not covered.&#60;/p&#62;
&#60;p&#62;You need to make all of them like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;} elseif ($hour &#38;gt;= 12 &#38;#38;&#38;#38; $hour &#38;lt; 15) {
	$timepic = &#38;#39;1200pic
} elseif ($hour &#38;gt;= 15 &#38;#38;&#38;#38; $hour &#38;lt; 18) {
	$timepic = &#38;#39;1500pic&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The &#38;gt;= is a greater-than-or-equal-to.
&#60;/p&#62;</description>
</item>
<item>
<title>citizenkeith on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-672655</link>
<pubDate>Mon, 07 Jan 2008 20:07:36 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">672655@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Like I said, I'm no expert coder. I'm just guessing for the most part. :-)&#60;/p&#62;
&#60;p&#62;However, it's 3pm and the banner just defaulted to picturenobody.jpg. Weird.
&#60;/p&#62;</description>
</item>
<item>
<title>Otto42 on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-672640</link>
<pubDate>Mon, 07 Jan 2008 19:36:50 +0000</pubDate>
<dc:creator>Otto42</dc:creator>
<guid isPermaLink="false">672640@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Damn. I can't believe I missed that logic error. Probably because you used the word &#60;code&#62;or&#60;/code&#62; instead of the more common &#60;code&#62;&#124;&#124;&#60;/code&#62; symbol. If it had been &#60;code&#62;&#124;&#124;&#60;/code&#62;'s I would have spotted it instantly. :-)
&#60;/p&#62;</description>
</item>
<item>
<title>citizenkeith on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-672630</link>
<pubDate>Mon, 07 Jan 2008 19:15:58 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">672630@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks Otto,&#60;/p&#62;
&#60;p&#62;I made the recommended change, and that didn't do anything. And since I'm not using WP-Cache or WP-Super-Cache, I was at a loss.&#60;/p&#62;
&#60;p&#62;However, I made this change:&#60;br /&#62;
&#60;code&#62;($hour &#38;gt; 1 or $hour &#38;lt; 6)&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;to &#60;/p&#62;
&#60;p&#62;&#60;code&#62;($hour &#38;gt; 1 and $hour &#38;lt; 6)&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That worked. :)&#60;/p&#62;
&#60;p&#62;If I knew anything about making plugins, I'd see if I could  adapt this script. But I still have a LOT of work to do on this site, so I probably won't be learning how to write plugins anytime soon. If anybody's interested in tackling this one, go for it. :)
&#60;/p&#62;</description>
</item>
<item>
<title>Otto42 on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-672578</link>
<pubDate>Mon, 07 Jan 2008 17:22:23 +0000</pubDate>
<dc:creator>Otto42</dc:creator>
<guid isPermaLink="false">672578@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Instead of&#60;br /&#62;
&#60;code&#62;$hour = date(&#38;#39;H&#38;#39;); // hour of the day, 24 hour clock&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Try using this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$now = getdate();
$hour = $now[&#38;#39;hours&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;While it shouldn't make any difference, I can see where it might. PHP is a typed language, it just hides the types well.&#60;/p&#62;
&#60;p&#62;As for how you display weekends, well, that's simpler.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$weekday = $now[&#38;#39;wday&#38;#39;]; // 0 = Sun, 6 = Sat
if ($weekday == 0 or $weekday == 6) {
  $timepic = &#38;#39;weekend&#38;#39;;
} elseif ($hour &#38;gt; 1 or $hour &#38;lt; 6) {
	$timepic = &#38;#39;0100pic&#38;#39;;
... etc ...&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;As for why it doesn't change... Are you using WP-Cache or WP-Super-Cache? Those will cache the whole page, including the results of running this code. If you're using either of those, you may want to set the expire time to 20-30 minutes or so.
&#60;/p&#62;</description>
</item>
<item>
<title>citizenkeith on "Timed Images Code"</title>
<link>http://wordpress.org/support/topic/150777#post-672562</link>
<pubDate>Mon, 07 Jan 2008 16:56:08 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">672562@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm using WordPress as a CMS for a radio station. I'm trying to display an image during certain hours of the day that corresponds to the current show that is on the air.&#60;/p&#62;
&#60;p&#62;I found some discussion here:&#60;br /&#62;
&#60;a href=&#34;http://ask.metafilter.com/50423/Rotating-header-based-on-time-of-day&#34; rel=&#34;nofollow&#34;&#62;http://ask.metafilter.com/50423/Rotating-header-based-on-time-of-day&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;One uses javascript, the other uses PHP. I decided to go with the PHP solution.&#60;/p&#62;
&#60;p&#62;I'm not an expert coder, so I have no idea why it's not working. :D&#60;/p&#62;
&#60;p&#62;Here's the schedule&#60;/p&#62;
&#60;p&#62;1am-6am Show 1&#60;br /&#62;
6am-9am Show 2&#60;br /&#62;
9am-12pm Show 3&#60;br /&#62;
12pm-3pm Show 4&#60;br /&#62;
3pm-6pm Show 5&#60;br /&#62;
6pm-8pm Show 6&#60;br /&#62;
8pm-10pm Show 7&#60;br /&#62;
10pm-1am Show 8&#60;/p&#62;
&#60;p&#62;Here's the code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;img src=&#38;quot;http://www.domain.com/images/rotation/picture&#38;lt;?php
$hour = date(&#38;#39;H&#38;#39;); // hour of the day, 24 hour clock
if ($hour &#38;gt; 1 or $hour &#38;lt; 6) {
	$timepic = &#38;#39;0100pic&#38;#39;;
} elseif ($hour &#38;gt; 6 or $hour &#38;lt; 9) {
	$timepic = &#38;#39;0600pic&#38;#39;;
} elseif ($hour &#38;gt; 9 or $hour &#38;lt; 12) {
	$timepic = &#38;#39;0900pic&#38;#39;;
} elseif ($hour &#38;gt; 12 or $hour &#38;lt; 15) {
	$timepic = &#38;#39;1200pic
} elseif ($hour &#38;gt; 15 or $hour &#38;lt; 18) {
	$timepic = &#38;#39;1500pic&#38;#39;;
} elseif ($hour &#38;gt; 18 or $hour &#38;lt; 20) {
	$timepic = &#38;#39;1800pic&#38;#39;;
} elseif ($hour &#38;gt; 20 or $hour &#38;lt; 23) {
	$timepic = &#38;#39;2000pic&#38;#39;;
} elseif ($hour &#38;gt; 23 or $hour &#38;lt; 1) {
	$timepic = &#38;#39;2300pic&#38;#39;;
} else {
	$timepic = &#38;#39;nobody&#38;#39;;
}
echo $timepic;
?&#38;gt;.jpg&#38;quot; alt=&#38;quot;On The Air Now&#38;quot; width=&#38;quot;340&#38;quot; height=&#38;quot;200&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The image doesn't change from the first image, picture0100pic.jpg.&#60;/p&#62;
&#60;p&#62;Any ideas? Also, how would I display these only during weekdays, and using picturenobody.jpg during the weekend?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
