<?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"
	>
<channel>
	<title>Comments on: Average Posts Per Day</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/</link>
	<description></description>
	<pubDate>Fri, 08 Aug 2008 19:38:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Michelle</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11223</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11223</guid>
		<description>Yeah, it took me a minute, but add this just before the echo:

$posts_per_day = substr ( $posts_per_day, 0, ### );
$posts_per_day = substr ( $posts_per_day, 0, strlen( $posts_per_day ) - strpos( strrev( $posts_per_day ), " " ) );
$posts_per_day = trim ( $posts_per_day );

$days_per_post = substr ( $days_per_post, 0, ### );
$days_per_post = substr ( $days_per_post, 0, strlen( $days_per_post ) - strpos( strrev( $days_per_post ), " " ) );
$days_per_post = trim ( $days_per_post );

Replace both of the ### with the number of characters you want shown, INCLUDING the decimal.  So 1.62 would be 4 characters, 1.6 would be 3, etc.</description>
		<content:encoded><![CDATA[<p>Yeah, it took me a minute, but add this just before the echo:</p>
<p>$posts_per_day = substr ( $posts_per_day, 0, ### );<br />
$posts_per_day = substr ( $posts_per_day, 0, strlen( $posts_per_day ) - strpos( strrev( $posts_per_day ), &#8221; &#8221; ) );<br />
$posts_per_day = trim ( $posts_per_day );</p>
<p>$days_per_post = substr ( $days_per_post, 0, ### );<br />
$days_per_post = substr ( $days_per_post, 0, strlen( $days_per_post ) - strpos( strrev( $days_per_post ), &#8221; &#8221; ) );<br />
$days_per_post = trim ( $days_per_post );</p>
<p>Replace both of the ### with the number of characters you want shown, INCLUDING the decimal.  So 1.62 would be 4 characters, 1.6 would be 3, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelle</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11221</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11221</guid>
		<description>PS, you don't have to uncomment both echos, only the one you want to use.</description>
		<content:encoded><![CDATA[<p>PS, you don&#8217;t have to uncomment both echos, only the one you want to use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11222</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11222</guid>
		<description>Is there a way to restrict the amount of dp (decimal places) its given to, mine is avg. one post every 1.6266666666667 days which is a bit annoying ;)</description>
		<content:encoded><![CDATA[<p>Is there a way to restrict the amount of dp (decimal places) its given to, mine is avg. one post every 1.6266666666667 days which is a bit annoying <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelle</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11220</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11220</guid>
		<description>Right, you have to change USERNAME, PASSWORD, DATABASE, and TABLE.  I did it that way because I use my own journaling script rather than Moveable Type, and I don't know what the table is called, neither do I know if MT uses a column called ID.  This way it's pretty much compatible with anything that uses a MySQL db.</description>
		<content:encoded><![CDATA[<p>Right, you have to change USERNAME, PASSWORD, DATABASE, and TABLE.  I did it that way because I use my own journaling script rather than Moveable Type, and I don&#8217;t know what the table is called, neither do I know if MT uses a column called ID.  This way it&#8217;s pretty much compatible with anything that uses a MySQL db.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11218</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11218</guid>
		<description>Ok I got this now, I had to replace TABLE with mt_entry and uncomment the two echos</description>
		<content:encoded><![CDATA[<p>Ok I got this now, I had to replace TABLE with mt_entry and uncomment the two echos</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KMB</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11219</link>
		<dc:creator>KMB</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11219</guid>
		<description>Hi there

I think it could be a bit faster when you change the SQL-Statement to something like this:

"SELECT id FROM TABLE"

Now MySQL don't have to get all the info from the whole table. You probably have to change id to the name of a column in your table. Don't know if MT is using IDs...

Btw: Arvind you have to change the name of the TABLE too.</description>
		<content:encoded><![CDATA[<p>Hi there</p>
<p>I think it could be a bit faster when you change the SQL-Statement to something like this:</p>
<p>&#8220;SELECT id FROM TABLE&#8221;</p>
<p>Now MySQL don&#8217;t have to get all the info from the whole table. You probably have to change id to the name of a column in your table. Don&#8217;t know if MT is using IDs&#8230;</p>
<p>Btw: Arvind you have to change the name of the TABLE too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11217</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11217</guid>
		<description>Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/arvinds/public_html/blog/sidebar2.php on line 298

Warning: Division by zero in /home/arvinds/public_html/blog/sidebar2.php on line 307

Why does this happen. Edited the db stuff and changed date of first post</description>
		<content:encoded><![CDATA[<p>Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/arvinds/public_html/blog/sidebar2.php on line 298</p>
<p>Warning: Division by zero in /home/arvinds/public_html/blog/sidebar2.php on line 307</p>
<p>Why does this happen. Edited the db stuff and changed date of first post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelle</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11224</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11224</guid>
		<description>Actually, that has an extra line in it, that makes it not end in the middle of a word, which isn't necessary here.  You can just add this (and replace the ### both times):

$posts_per_day = substr ( $posts_per_day, 0, ### );
$posts_per_day = trim ( $posts_per_day );

$days_per_post = substr ( $days_per_post, 0, ### );
$days_per_post = trim ( $days_per_post );</description>
		<content:encoded><![CDATA[<p>Actually, that has an extra line in it, that makes it not end in the middle of a word, which isn&#8217;t necessary here.  You can just add this (and replace the ### both times):</p>
<p>$posts_per_day = substr ( $posts_per_day, 0, ### );<br />
$posts_per_day = trim ( $posts_per_day );</p>
<p>$days_per_post = substr ( $days_per_post, 0, ### );<br />
$days_per_post = trim ( $days_per_post );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelle</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11225</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11225</guid>
		<description>I should do more testing before I post...  It turns out you only need the first line for each variable:

$posts_per_day = substr ( $posts_per_day, 0, ### );
$days_per_post = substr ( $days_per_post, 0, ### );

I copied this straight from the rss feed I wrote, and I guess I didn't understand the concept as well as I thought.  Hey, at least my feed works, right?  ;)</description>
		<content:encoded><![CDATA[<p>I should do more testing before I post&#8230;  It turns out you only need the first line for each variable:</p>
<p>$posts_per_day = substr ( $posts_per_day, 0, ### );<br />
$days_per_post = substr ( $days_per_post, 0, ### );</p>
<p>I copied this straight from the rss feed I wrote, and I guess I didn&#8217;t understand the concept as well as I thought.  Hey, at least my feed works, right?  <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11226</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/15/average-posts-per-day/#comment-11226</guid>
		<description>I get a parse problem when I put that code into my template just above the echo</description>
		<content:encoded><![CDATA[<p>I get a parse problem when I put that code into my template just above the echo</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.286 seconds -->
