<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Awstats plugin</title>
	<link>http://www.curioso.org/2005/04/05/awstats-plugin/</link>
	<description>Curiosity killed the cat</description>
	<pubDate>Thu, 28 Aug 2008 13:33:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on Awstats plugin by: Sandro kensan</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-78949</link>
		<pubDate>Sun, 09 Mar 2008 23:52:23 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-78949</guid>
					<description>Hi Curioso,
I have found a bug in your plugin, if the file is

AWSTATS DATA FILE 6.5 (build 1.857)
# If you remove this file, all statistics for date 200706 will be lost/reset.

# Position (offset in bytes) in this file of beginning of each section for
# direct I/O access. If you made changes somewhere in this file, you should
# also remove completely the MAP section (AWStats will rewrite it at next
# update).
BEGIN_MAP 27
POS_GENERAL 1864
POS_TIME 2548
etc, etc

you must use the offset for found the correct section. You found the section serching, for example, the words &quot;BEGIN_SIDER&quot; and the words &quot;END_SIDER&quot; that they can into other section.

For example:

AWSTATS DATA FILE 6.5 (build 1.857)
BEGIN_MAP 2
POS_AAA xxx
POS_BBB yyy
END_MAP

BEGIN_AAA 2
BEGIN_BBB.html gfsdgsdfgh ghgfhf
END_BBB.html fdghhdgfhfd hfghf
END_AAA

BEGIN_BBB 2
wqerqwe
sfsafsad
END_BBB

I think the plugin cant found the correct BBB section.

The bug is in this serching:

preg_match('/\nBEGIN_'.$section.' \d+\n(.*)\nEND_'.$section.'\n/s',
			 $awstats_text, $match)

do you agree?</description>
		<content:encoded><![CDATA[	<p>Hi Curioso,<br />
I have found a bug in your plugin, if the file is</p>
	<p>AWSTATS DATA FILE 6.5 (build 1.857)<br />
# If you remove this file, all statistics for date 200706 will be lost/reset.</p>
	<p># Position (offset in bytes) in this file of beginning of each section for<br />
# direct I/O access. If you made changes somewhere in this file, you should<br />
# also remove completely the MAP section (AWStats will rewrite it at next<br />
# update).<br />
BEGIN_MAP 27<br />
POS_GENERAL 1864<br />
POS_TIME 2548<br />
etc, etc</p>
	<p>you must use the offset for found the correct section. You found the section serching, for example, the words &#8220;BEGIN_SIDER&#8221; and the words &#8220;END_SIDER&#8221; that they can into other section.</p>
	<p>For example:</p>
	<p>AWSTATS DATA FILE 6.5 (build 1.857)<br />
BEGIN_MAP 2<br />
POS_AAA xxx<br />
POS_BBB yyy<br />
END_MAP</p>
	<p>BEGIN_AAA 2<br />
BEGIN_BBB.html gfsdgsdfgh ghgfhf<br />
END_BBB.html fdghhdgfhfd hfghf<br />
END_AAA</p>
	<p>BEGIN_BBB 2<br />
wqerqwe<br />
sfsafsad<br />
END_BBB</p>
	<p>I think the plugin cant found the correct BBB section.</p>
	<p>The bug is in this serching:</p>
	<p>preg_match(&#8217;/\nBEGIN_&#8217;.$section.&#8217; \d+\n(.*)\nEND_&#8217;.$section.&#8217;\n/s&#8217;,<br />
			 $awstats_text, $match)</p>
	<p>do you agree?
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: ivie</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-42087</link>
		<pubDate>Thu, 19 Jul 2007 02:45:26 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-42087</guid>
					<description>hello. I use your plugin for one of my blog and it's so cool. but btw, i want to know how to show the monthlly and total hit? thanks for your help</description>
		<content:encoded><![CDATA[	<p>hello. I use your plugin for one of my blog and it&#8217;s so cool. but btw, i want to know how to show the monthlly and total hit? thanks for your help
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: Ian Smith</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-40503</link>
		<pubDate>Fri, 29 Jun 2007 15:41:24 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-40503</guid>
					<description>Thanks for the reply. Gz are Gzip files which require Winzip ($25). Powweb are pretty inflexible about downloading the files I need in Gzip. I don't even know if I have the right files off them yet. Maybe there's away of generating my own Awstats Summary File. I'm pretty sure there is.</description>
		<content:encoded><![CDATA[	<p>Thanks for the reply. Gz are Gzip files which require Winzip ($25). Powweb are pretty inflexible about downloading the files I need in Gzip. I don&#8217;t even know if I have the right files off them yet. Maybe there&#8217;s away of generating my own Awstats Summary File. I&#8217;m pretty sure there is.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: Curioso</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-40484</link>
		<pubDate>Fri, 29 Jun 2007 13:38:18 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-40484</guid>
					<description>Normally awstats log files are named like awstats062007.www.curioso.org.txt, where 06 is the month, 2007 is the year, and www.curioso.org is the name of the site. There is one file generated for each month. On my server they are stored in /var/lib/awstats.

The contents looks like:

AWSTATS DATA FILE 6.5 (build 1.857)
# If you remove this file, all statistics for date 200706 will be lost/reset.

# Position (offset in bytes) in this file of beginning of each section for
# direct I/O access. If you made changes somewhere in this file, you should
# also remove completely the MAP section (AWStats will rewrite it at next
# update).
BEGIN_MAP 27
POS_GENERAL 1864                
POS_TIME 2548                
POS_VISITOR 76701               
POS_DAY 346798              
POS_DOMAIN 3570    

etc.

access_log_20070629.gz looks more like a compressed raw web server log file.
awstats.pl processes such files and generates the monthly files I described above.</description>
		<content:encoded><![CDATA[	<p>Normally awstats log files are named like awstats062007.www.curioso.org.txt, where 06 is the month, 2007 is the year, and <a href='http://www.curioso.org' rel='nofollow'>www.curioso.org</a> is the name of the site. There is one file generated for each month. On my server they are stored in /var/lib/awstats.</p>
	<p>The contents looks like:</p>
	<p>AWSTATS DATA FILE 6.5 (build 1.857)<br />
# If you remove this file, all statistics for date 200706 will be lost/reset.</p>
	<p># Position (offset in bytes) in this file of beginning of each section for<br />
# direct I/O access. If you made changes somewhere in this file, you should<br />
# also remove completely the MAP section (AWStats will rewrite it at next<br />
# update).<br />
BEGIN_MAP 27<br />
POS_GENERAL 1864<br />
POS_TIME 2548<br />
POS_VISITOR 76701<br />
POS_DAY 346798<br />
POS_DOMAIN 3570    </p>
	<p>etc.</p>
	<p>access_log_20070629.gz looks more like a compressed raw web server log file.<br />
awstats.pl processes such files and generates the monthly files I described above.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: Ian Smith</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-40467</link>
		<pubDate>Fri, 29 Jun 2007 11:38:05 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-40467</guid>
					<description>I instructed my host Powweb to send Awstats log files which arrived in the form of a gz file. access_log_20070629.gz. 

I tried every combination of amendment to the Awstats plugin file:

$awstats_dir = '/';
$awstats_site = 'holditupforridicule.com';

and, 

$awstats_dir = '/';
$awstats_site = awstats_getsite(get_settings(’siteurl’));

and, 
$awstats_dir = '/access_log_20070629.gz';
$awstats_site = awstats_getsite(get_settings(’siteurl’));

and so on. I want browser stats displayed in my sidebar using:

Browsers:
        
 

I just get the text Browsers: every time:

I guess access_log_20070629.gz isn't the correct Awstat summary file I need to use the plugin. Any idea how I get the summary file I need? Or is it something else I'm doing wrong?</description>
		<content:encoded><![CDATA[	<p>I instructed my host Powweb to send Awstats log files which arrived in the form of a gz file. access_log_20070629.gz. </p>
	<p>I tried every combination of amendment to the Awstats plugin file:</p>
	<p>$awstats_dir = &#8216;/&#8217;;<br />
$awstats_site = &#8216;holditupforridicule.com&#8217;;</p>
	<p>and, </p>
	<p>$awstats_dir = &#8216;/&#8217;;<br />
$awstats_site = awstats_getsite(get_settings(’siteurl’));</p>
	<p>and,<br />
$awstats_dir = &#8216;/access_log_20070629.gz&#8217;;<br />
$awstats_site = awstats_getsite(get_settings(’siteurl’));</p>
	<p>and so on. I want browser stats displayed in my sidebar using:</p>
	<p>Browsers:</p>
	<p>I just get the text Browsers: every time:</p>
	<p>I guess access_log_20070629.gz isn&#8217;t the correct Awstat summary file I need to use the plugin. Any idea how I get the summary file I need? Or is it something else I&#8217;m doing wrong?
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: Ian Smith</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-40456</link>
		<pubDate>Fri, 29 Jun 2007 10:43:46 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-40456</guid>
					<description>Thanks for the free plugin. It's exactly what I want to display my host Powweb's awstats.</description>
		<content:encoded><![CDATA[	<p>Thanks for the free plugin. It&#8217;s exactly what I want to display my host Powweb&#8217;s awstats.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: Spadge</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-37918</link>
		<pubDate>Thu, 07 Jun 2007 17:53:00 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-37918</guid>
					<description>Hey CK, you manage to post Barczyk’s code yet?</description>
		<content:encoded><![CDATA[	<p>Hey CK, you manage to post Barczyk’s code yet?
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: Kham Tran</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-35276</link>
		<pubDate>Tue, 15 May 2007 06:17:49 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-35276</guid>
					<description>I'm also wanting not to display the count &quot;(X)&quot; at the end of each post in the lists. How can I do that?</description>
		<content:encoded><![CDATA[	<p>I&#8217;m also wanting not to display the count &#8220;(X)&#8221; at the end of each post in the lists. How can I do that?
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: Kham Tran</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-35275</link>
		<pubDate>Tue, 15 May 2007 06:14:04 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-35275</guid>
					<description>Mad plugin! It took me a while to figure out as nothing was being displayed. I changed both the default values and now it works a treat.

$awstats_dir = '/home/khamtran/tmp/awstats';
$awstats_site = 'khamtran.com';

I'm running cPanel and WordPress version 2.1.3</description>
		<content:encoded><![CDATA[	<p>Mad plugin! It took me a while to figure out as nothing was being displayed. I changed both the default values and now it works a treat.</p>
	<p>$awstats_dir = &#8216;/home/khamtran/tmp/awstats&#8217;;<br />
$awstats_site = &#8216;khamtran.com&#8217;;</p>
	<p>I&#8217;m running cPanel and WordPress version 2.1.3
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Awstats plugin by: Die besten WordPress Plugins - Statistik &#187; Tipps zur Suchmaschinenoptimierung</title>
		<link>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-32562</link>
		<pubDate>Mon, 23 Apr 2007 13:27:10 +0000</pubDate>
		<guid>http://www.curioso.org/2005/04/05/awstats-plugin/#comment-32562</guid>
					<description>[...] Awstats Plugin This is a simple plugin that retrieves information from Awstats log files. It provides template functions for including this information on your WordPress site. [...]</description>
		<content:encoded><![CDATA[	<p>[&#8230;] Awstats Plugin This is a simple plugin that retrieves information from Awstats log files. It provides template functions for including this information on your WordPress site. [&#8230;]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
