<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Some stuff &#187; stupid script</title>
	<atom:link href="http://blog.yhuang.org/?feed=rss2&#038;tag=stupid-script" rel="self" type="application/rss+xml" />
	<link>https://blog.yhuang.org</link>
	<description>here.</description>
	<lastBuildDate>Wed, 27 Aug 2025 08:50:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>How to (maybe) get WordPress Stats to accept the API key</title>
		<link>https://blog.yhuang.org/?p=88</link>
		<comments>https://blog.yhuang.org/?p=88#comments</comments>
		<pubDate>Tue, 15 Jan 2008 23:44:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Akismet]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[course stats]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[database index]]></category>
		<category><![CDATA[hidden image]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[stupid script]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=88</guid>
		<description><![CDATA[WordPress stats is a nice little filter for WordPress, one of those devious hidden image IP trackers. Unfortunately, getting it to accept the API key doesn&#8217;t always work (even if it works for Akismet without complaint). You may keep getting Enter your WordPress.com API key to link this blog to your WordPress.com account. Be sure [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/extend/plugins/stats/">WordPress stats</a> is a nice little filter for WordPress, one of those devious hidden image IP trackers. Unfortunately, getting it to accept the API key doesn&#8217;t always work (even if it works for Akismet without complaint).</p>
<p>You may keep getting</p>
<blockquote><p>Enter your WordPress.com API key to link this blog to your WordPress.com account. Be sure to use your own API key! Using any other key will lock you out of your stats.</p></blockquote>
<p>even if the API key is correct. or if you hard code the API key</p>
<blockquote><p>An API Key is present in the source code but it did not work.</p>
<p>The WordPress.com Stats Plugin is not working because it needs to be linked to a<br />
WordPress.com account.</p></blockquote>
<p>I didn&#8217;t find a solution in any of the forums, so I looked at the stupid script some more. Basically it uses the API key to get a &#8220;blog_id&#8221; (database index, most likely) from WordPress.com and can&#8217;t find one. So I made up a blog_id in the code. That shut up the plug-in, but of course stats aren&#8217;t tracked.</p>
<p>Finally, I went to <a href="http://dashboard.wordpress.com">http://dashboard.wordpress.com</a>, logged into the account, made a new garbage *.Wordpress.com blog, then a bit later took out the made-up blog_id from the code, de-activated and re-activated, and &#8230; everything works. The external blog shows in the &#8220;Global dashboard.&#8221; Also the real blog_id is returned from code. But, if I take out the hard coded API key, it stops working again.</p>
<p>This is definitely a WordPress.com problem with registering externally hosted blogs, so to make it work, hard code the API key, make sure there is at least one *.Wordpress.com blog, wait a little bit, then re-activate the stats plug in.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=88</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
