bstat Beta 4 Release
[[pageindex]]UPDATE: shout outs to Zach, Cliff, Justin, and Thomas who’ve submitted bug reports. Their feedback has been rolled in to the B4 July 20 release, available now (look for the link below).
This is likely the last release before the code gets bundled into bsuite (more details on that later).
Changes
This documentation supersedes any previous documentation.
More changes to the bstat_pulse() function; bstat_pulse_style() is no longer used. It’s been replaced by a flag in the call. See the usage example to understand. Want to customize the style? Start with that example, look at the XHTML it outputs, work from there. UPDATE thanks to Zach, these parameters are all optional. You can call it with nothing more than “bstat_pulse()”, if that’s your thing. Still, I’d recommend using the full example below.
There are a lot of improvements to the management console. The number of lines to display for each category and the date range (past day, week, month, etc.) are now configurable.
Quick Start Installation
- Download and unzip bstat.zip
- Place bstat.php in you wp-content/plugins directory
- Place spacer.gif in your wp-content directory
- Log in to your WordPress admin panel and activate the plugin, then visit the new bstat submenu of the options tab. This will allow bstat to create its database tables.
- Add the bstat_hitit function to the footer.php of your theme (or in some other place where it will be called once for each page load). This starts the counting; you can see the results in the bstat submenu of the manage tab of the WordPress admin panel.
In order to view the bstat results on your public pages, you’ll need to the bstat display functions to your pages.
Using bstat Functions
- bstat_hitit
It is essential that bstat_hitit be activated once (and only once) for every page load. In most themes (including the default and classic), it works perfectly when added to the bottom of the footer.php file.
<?php // this is the part that makes the bstats plugin work... global $id; if (!is_single()) $id = 0; bstat_hitit($id, "read"); ?>
(be careful of any "curly quotes" that might have been inserted in code samples)
Other functions are used to display lists of top stories, recently commented stories, recent comments, recent incoming search terms, etc. Most of these functions take similar arguments and output their results in similar ways.
Today’s Stats
- bstat_todaypop
- bstat_todayrefs
The functions bstat_todaypop and bstat_todayrefs each take the same arguments.
Usage:
bstat_todaypop({count}, "{before}", "{after}");
count is the total number of results to output
before is a string to output before each result
after is a string to output after each result
Example:
<h2>Today's Most Popular</h2> <ul><?php bstat_todaypop(15, "<li>", "</li>\n"); ?></ul>
Recent Stats
- bstat_recentpop
- bstat_recentrefs
The functions bstat_recentpop and bstat_recentrefs each take the same arguments.
Usage:
bstat_recentrefs({count}, "{days}", "{before}", "{after}");
count is the total number of results to output
days is the number of days back to look
before is a string to output before each result
after is a string to output after each result
Example:
<h2>Incoming Search Terms This Week</h2> <ul><?php bstat_recentrefs(15, 7, "<li>", "</li>\n"); ?></ul>
Recent Discussion
- bstat_discussionbypost
- bstat_discussionbycomment
The functions bstat_discussionbypost and bstat_discussionbycomment each take the same arguments.
Usage:
bstat_discussionbypost({count}, "{before}", "{after}");
count is the total number of results to output
before is a string to output before each result
after is a string to output after each result
Example:
<h2>Incoming Search Terms This Week</h2> <ul><?php bstat_discussionbypost(15, "<li>", "</li>\n"); ?></ul>
Special Functions
- bstat_refsforpost
Usage:
bstat_refsforpost({post_id}, "{before}", "{after}");
post_id is the post_id for the story, usually provided by a WP variable
before is a string to output before each result
after is a string to output after each result
Example:
<h3>All incoming search terms for this post</h3> <small><?php bstat_refsforpost($id, " ", " -"); ?></small>
- bstat_pulse
Usage:
bstat_pulse({post_id}, {max_width}, {display_text}, {display_credit}, {insert_styles});
post_id is the post_id for the story, usually provided by a WP variable
max_width is the maximum width the graph maw run
display_text (acceptable values: 0 or 1), switch to display stats for total views and average views per day
display_credit (acceptable values: 0 or 1), switch to display “powered by bstat” credit
insert_styles (acceptable values: 0 or 1), switch to output styles and wrap it in a div
Example:
<h3>Story pulse</h3><?php bstat_pulse($id, 525, 1, 1, 1); ?>
Function Descriptions
- bstat_hitit
The hamster on a wheel that makes it all work. It records hits for each page load, and hits for each incoming search term.
- bstat_todaypop
displays top stories for today only.
- bstat_recentpop
displays top stories for the past x days. This function reveals more useful data on sites with low traffic, but is somewhat slower than bstat_todaypop.
- bstat_todayrefs
displays top incoming search terms for today only.
- bstat_recentrefs
displays top incoming search terms for the past x days. This function reveals more useful data on sites with low traffic, but is somewhat slower than bstat_todayrefs.
- bstat_refsforpost
displays all incoming search terms for a specific post.
- bstat_discussionbypost
displays recently commented posts. Each post will appear only once.
- bstat_discussionbycomment
displays recent comments (and commenter). Better on sites with lots of community interaction.
- bstat_pulse
displays the "pulse" graph of hits over time.
Options
The bstat submenu of the options tab has three configurable settings:
- Make accurate pulse graphs
The graphs look best when you’ve got a few months of history to feed them. To fill out the graphs for new stories (and when you’re new to bstat), the pulse function will do some simple interpolation. The question here is if you want it to look jittery (and somewhat less accurate) or smooth (and more accurate). I prefer the jittery look, but you can do what you want.
- Filter incoming search terms using comment moderation and blacklist words.
Referrer spam is as much of a problem as trackback spam. There are a few tricks in bstat to prevent the problem, but here’s one you can configure. Selecting this option tells bstat to not display search terms that contain words in your moderation list or blacklist.
- Ignore hits from these IP numbers.
Sites with low traffic may find that activity by authors severely skews the stats tracking. Enter an IP address here to ignore it.
Tags: beta, blog pulse, bstat, bstats, graph, plugin, pulse, referrer, search term, statistics, stats tracking, stats, usage, wordpress plugin, wordpress
44 Comments
Comments RSS TrackBack Identifier URI
Sorry, the comment form is closed at this time.
The HTML that is generated to display the pulse isn’t valid XHTML. To fix the problem change line 1037 to this:
$hit_chart .= “”;
It looks like wordpress did a fine job of stripping out the HTML. Here is a link to the fix: http://cs.ubishops.ca/~tcort/bstat.txt
Thomas, thank you. I’m a sloppy coder and obviously need to spend a lot more time with the validator.
The cs.ubishops server wasn’t answering my calls, but I think I worked out the problem. The code is now updated (version is b4 July 20), but please alert me to to any other problems.
Thank you.
how come when i put the bstat_hitit function in footer.php then i get this error?
in /home/kahsoon/public_html/wp-includes/wp-db.php on line 155
Warning: mysql_affected_rows(): A link to the server could not be established in /home/kahsoon/public_html/wp-includes/wp-db.php on line 155
I ran into a couple of problems with the sample code in the footer. First, the comment line gave me errors until I changed it to the /* .. */ comment markers.
And second, there was some kind of conflict with the $id variable that caused a user level conflict on one of my websites (but somehow worked on the other… go figure!)
I also made a third mod, to check if the plugin is activated.
Here’s the footer code as I revised it…
The footer code as I revised it…
Casey, this is really a wonderful plugin. The data is good, and the presentation is wonderful. I can’t gush about it enough, and I’m excited to see where you go with it.
It’s easy to install and runs well.
I’m sorry I’m having trouble posting the code that fixed the problems I was having… since I’m not sure how to mark it up for you. In case there’s something you find of interest, I’m posting the revised source at http://ryowebsite.com/wp-content/bstat.phps
Here’s what I changed:
Line 42 Changed add_management_page code parameter 2 to 6 (User Level… I moved up the level of who can see stats)
Changed suggested footer code at line 157; Corrects $id error that was apparently resetting user_id somehow, fixed comment error; Checks for activated plugin; Counts page views as well as post views.
Line 753 added strip_tags twice and … To correct for people who put html in their titles. (’cause I’ve got a guy who does that)
Line 1040 added ‘plugins’ to path and changed name of spacer.gif to bstat.gif. I did that because it’s so much easier when it’s all in the plugins directory, and by renaming the gif I won’t forget what routine it goes with.
Another issue/feature/question: Is there a way to determine how long a visitor stays on webpage? I don’t know if that’s even possible, but I suppose in some cases it might be possible is they came to a page, then clicked to somewhere else in the website. It would be interesting to know how interesting a story was. The current info tell sus how interesting the headline is.
Thanks,
Rich
Is this software open source? If so, any interest in a port for Drupal?
Matt,
bstat is indeed open source as it is licensed under the GNU GPL. I’m not in a position to port it to Drupal myself, but I’d offer my code (it’s available at the download link above) and some assistance to the person who is.
Casey, good job on this! As someone who is new to blogging/wordpress (and has little familiarity with PHP) this could not have been easier to install!
Thanks for making this avalable!
Jon
[...] The most recent version of my WordPress stats tracking plugin makes it very easy to see and track my top stories. I don’t know whether I should be proud or ashamed by them, but here they are: [...]
What about upgrades? Is it safe to overwite b3 with b4 (and so on)?
Thanks. This is one of my favorite plugins
Robert: yes, it is safe to overwrite any previous version with beta 4, however, beware of some of the changes to functions calls an update your templates.
Work continues on bsuite, the collection of tools that is replacing bstat. Unfortunately, I’ll be changing more things — including table structure — so it will be a more complex upgrade.
I’m glad you like it bstat, and I hope you’ll try bsuite when I finally release it.
I just tried to install it, but when I click on the bstat submenu I get the following errors:
beneath “Quick Stats”
WordPress database error: [Table 'soes.wp_bstat_hits' doesn't exist]
SELECT SUM(hits_reads) AS note FROM wp_bstat_hits WHERE bstat_date = ‘2005-08-19′
WordPress database error: [Table 'soes.wp_bstat_hits' doesn't exist]
SELECT SUM(hits_reads) AS note FROM wp_bstat_hits
beneath “Pulse”
WordPress database error: [Table 'soes.wp_bstat_hits' doesn't exist]
SELECT SUM(hits_reads) AS hits_reads, bstat_date FROM wp_bstat_hits GROUP BY bstat_date ORDER BY bstat_date ASC
I am using WP 1.5.1.3 (letter head theme) and have several plugins installed, but no stat plugin so far.
Any ideas?
Antonio: be sure to complete each step of the quick start installation instructions, include the part of step four that that states
Cheers!
For some reason my blog URL (http://mediumbagel.org) kept getting listed in “Top (Non-Search Engine) Referrers,” so I added “AND (a.ref not like ‘%mediumbagel.org%’)” to the query. Does anyone else have this problem?
Thomas: yes, it’s a problem that I’ve half fixed. I hope to fully address it in my next release.
Semester startup and other projects are keeping me busy, but I have been working on bsuite — née bstat — and hope to get a new beta out around the beginning of September.
i want to see
Thanks for this awesome plug in
[...] bstat Pretty good stats tracking [...]
Casey, i have a problem with your plugin:
Why when i put the bstat_hitit function in footer.php then i get this error?
in /home/kahsoon/public_html/wp-includes/wp-db.php on line 155
Warning: mysql_affected_rows(): A link to the server could not be established in /home/kahsoon/public_html/wp-includes/wp-db.php on line 155
Can you help me on this? I’ve been living with this quite some time.
Kahsoon, I’m having trouble imagining where that error might come from in a working WordPress install. I guess I should add that I’ve not tested it on WP [...]
Update: Damn WP stripped the rest of my comment because of a “<” . I haven’t tested it in WP prior to 1.5.1.2 and I doubt it will work. The plugin uses all the standard WP stuff — including the wpdb function — so I’m not sure how it’s possible bstat could fail on any page that can display live WP content. Sadly, that doesn’t make it work for you.
I don’t have any answers, but please post some more details about your setup. Maybe somebody in the WP community will see a clue in them.
What you mean by you’ve not tested it on WP. This blog is powered by WP right? What actually cause the error? Any ideas.
See updated comment above.
Hello Casey, i install exactly the steps you gave. But as you can see eveything is working fine except i have this ugly error in my footer. You can see it at http://www.kahsoon.com
Can help?
[...] I just installed a Subscribe to Comments plugin where it enables the reader to subscribe to comments made after he/she posted the comment. This will come in handy for the reader if he or she has made some questions regarding a certain topic. Prior to the said plugin installation, I also installed BStat beta 4. It has some neat functions that would make you want to get rid of the other plugins that you may have installed. It’s capable of displaying top entries for the past number of days, top incoming search terms for today, incoming search terms for a particular post, recently commented posts, recent comments and the pulse graph of hits over a period of time. [...]
[...] MaisonBisson.com » Blog Archive » bstat Beta 4 Release recentrefs [...]
[...] ä¹…ã—ã¶ã‚Šã®Wordpressãƒã‚¿ã€‚ ã²ã‚‡ã£ã¨ã—ãŸã‚‰ãŠæ°—ã¥ãã®æ–¹ã‚‚ã„らã£ã—ゃるã‹ã‚‚ã—れã¾ã›ã‚“ãŒå…ˆé€±ã‹ã‚‰ã‚µã‚¤ãƒ‰ãƒãƒ¼ã«æœ¬æ—¥ã®äººæ°—エントリãªã‚‹ã‚‚ã®ã‚’載ã›ã¦ã„ã¾ã™ã€‚ã“れã¯Wordpressã®ãƒ—ラグインbstatã®æ©Ÿèƒ½ã‚’使ã£ã¦è¡¨ç¤ºã•ã›ã¦ãŠã‚Šã€æ©Ÿèƒ½ã¨ã—ã¦ã¯ãã®æ—¥ã®å†…ã«ã‚¢ã‚¯ã‚»ã‚¹ã®ã‚ã£ãŸè¨˜äº‹ã®ä¸ã§ãƒ’ット数ã®å¤šã„é †ã«ä¸Šä½ï¼‘ï¼ä»¶è¡¨ç¤ºã•ã›ã¾ã™ã€‚ï¼ˆã‚«ãƒƒã‚³å†…ã®æ•°å—ã¯ã‚¢ã‚¯ã‚»ã‚¹æ•°ï¼‰ [...]
[...] Thanks, bstats! [...]
Hi I was just wondering whether there was any special reason why you only tally for posts in bstat.
I want counts for my pages too so I put in the check for is_page() as well.
My counter seems to be climbing quite quickly though and I can’t decide whether it’s just because my site is more popular than I ever imagined, or whether I’ve screwed up.
I only added the code to the footer, and it’s only the page that’s climbing (although it’s the only useful part of my website - a screengrabbing extension).
re: Andy,
I hadn’t thought of how pages might be counted until now (I don’t use them), so I’ll have to go back and look at how best to do so.
In the suggested code above that calls hitit from the footer I’m basically checking to see if more than one post is being displayed on the page. This should be true for the front page, any category indexes, or a search page. In those cases I set the story id to 0 so that it can be counted without inflating the count of whatever post happens to be last in the list.
I’ll take a look and see how it can be done better.
[...] It’s a WordPress Plugin that puts named anchors on all of the <h1>, <h2>, <h*>-tagged content, and builds a list of links to those anchors that can be inserted anywhere on the page. An example can be seen in this post, and in the old bstat Beta 4 announcement. [...]
[...] çªå网志|WozLog采用WordPress系统æå»ºã€‚WP和一些开æºçš„CMSè½¯ä»¶ä¸€æ ·ï¼Œéƒ½æ˜¯æœ‰ä¸ªæ ¸å¿ƒç³»ç»Ÿï¼Œå¦å¤–å†åŠ ä¸Šå¯é€‰çš„æ¨¡æ¿å’Œæ’件。主题模æ¿å’Œæ’件是任何会设计和编程的WP爱好者制作的,WP的人气旺,所以这些资æºä¹Ÿéžå¸¸ä¸°å¯Œã€‚有了这些安装简å•而功能å„异的æ’件,æ¯ä¸ªWP用户都å¯å°†è‡ªå·±çš„WP站点åšå¾—功能强大,且具个性化。å¯ä»¥è¯´ï¼Œæ£æ˜¯æ— æ•°ä¸”ä¸æ–涌现的æ’件使WP更有å¸å¼•力和竞争力。 ä¸ºäº†åŠ å¼ºæ•´ä¸ªç«™ç‚¹çš„åŠŸèƒ½ï¼Œæ›´æ–¹ä¾¿ä½œè€…çš„ç®¡ç†å’Œè¯»è€…的阅读åŠå‚与,我在安装好自己的WPæ ¸å¿ƒç³»ç»Ÿä¹‹åŽï¼ŒèŠ±äº†å¾ˆå¤šæ—¶é—´åˆ°å¤„æœç½—适åˆè‡ªå·±çš„æ’ä»¶ã€‚åˆ°ç›®å‰ä¸ºæ¢å·²åœ¨è‡ªå·±ç«™ç‚¹ä¸Šä½¿ç”¨äº†è¶…过30ç§å½¢å½¢è‰²è‰²çš„WPæ’件。下é¢ç®€å•罗列一下我在使用的这些æ’ä»¶ï¼Œä»¥å’ŒåŒæ ·ä½¿ç”¨WP系统的åšå®¢äº¤æµï¼Œå¹¶ç»™ä¸€äº›WP新用户æä¾›äº›å‚考帮助。 (顺便说一å¥ï¼šèŠ±æ—¶é—´è¯¦ç»†ç½—åˆ—è¿™äº›ä¸œè¥¿ï¼Œä¸»è¦ç›®çš„æ˜¯æ•´ç†æ€è·¯å’Œæä¾›å‚考,也很欢迎WP新手借鉴使用。ä¸è¿‡ï¼Œé‰´äºŽæœ¬äººæ—¶é—´å’Œèƒ½åŠ›ä¸Šçš„æœ‰é™ï¼Œä¸ä¸ºä»¥ä¸‹å·¥å…·çš„安装使用æä¾›æŠ€æœ¯å’¨è¯¢æœåŠ¡ã€‚å‡å¦‚ä½ åœ¨ä½¿ç”¨è¿‡ç¨‹ä¸é‡åˆ°ä»»ä½•技术性问题,建议首先好好阅读帮助文档,一般都å¯è‡ªå·±è§£å†³ï¼›ä¸è¡Œçš„è¯ä¹Ÿå°½é‡å’¨è¯¢å…¶ä»–å¯ä»¥å¸®åŠ©çš„æœ‹å‹ï¼Œæˆ–者直接咨询原作者。) 现在使用ä¸çš„WordPressæ’件: 为更好阅读ç†è§£ï¼Œæˆ‘将我自己使用的这些æ’件分为四类:基本功能的æ’ä»¶ã€æ‰©å±•功能的æ’ä»¶ã€æœåŠ¡å¯¹æŽ¥çš„æ’件和管ç†åŠŸèƒ½çš„æ’件。所谓基本功能的æ’件是我觉得应该集æˆåˆ°WPæ ¸å¿ƒç³»ç»Ÿä¸çš„基本功能;扩展功能的æ’件则ä¸å¿…集æˆåˆ°æ ¸å¿ƒåŠŸèƒ½ä¸ï¼Œä½†å¯æä¾›æ›´ä¸°å¯Œçš„功能;æœåŠ¡å¯¹æŽ¥çš„æ’件则是将现有的其它网络æœåŠ¡åŠŸèƒ½é›†æˆåˆ°WP blogä¸ï¼Œå¦‚technoratiã€del.icio.usç‰ã€‚ 1ã€åŸºæœ¬åŠŸèƒ½çš„æ’件: Adhesive 功能:帮助将指定的帖å在首页置顶。 示例:本站首页帖å置顶ä½å†…容。 Customizable Post Listings åŠŸèƒ½ï¼šä¸€ä¸ªåŠŸèƒ½å¼ºå¤§çš„å¯æ˜¾ç¤ºæœ€è¿‘帖åã€éšæœºå¸–åçš„æ’ä»¶ï¼Œå¯æŒ‰è‡ªå·±æ„愿定制显示,比如é™å®šæ˜¾ç¤ºæŸä¸ªæ ç›®ä¸çš„若干个帖å,å¯ä»¥è®©è€å¸–åå‡ºæ¥æ™’晒太阳,ç‰ç‰ã€‚ 示例:本站首页侧边æ ä¸çš„â€œè‡ªèæ–‡ç« â€å’Œâ€œå¾€æ—¥å¸–åâ€æ 目。 Relative Posts for Chinese 功能:给æ¯ä¸ªå•独的帖åä¸åˆ—å‡ºç›¸å…³æ–‡ç« ã€‚ç›®å‰æ¤æ’ä»¶è¿˜åœ¨åˆæ¥æµ‹è¯•阶段,相关性有待æé«˜ã€‚ 示例:本站æ¯ç¯‡å¸–å独立页é¢ä¸çš„æ–‡ç« 末尾处。 Get Recent Comments 功能:å¯åˆ†åˆ«åˆ—出最近若干个commentså’Œtrackbacks。(å¦å¤–好åƒWPæ ¸å¿ƒç³»ç»Ÿä¸ä¹Ÿæ²¡æœ‰é¢„è®¾ç½®çš„èŽ·å–æœ€è¿‘若干帖å的功能,我现在使用的这功能是选用模æ¿ä¸è‡ªå¤‡çš„。) 示例:本站首页侧边æ ä¸çš„“最新评论â€å’Œâ€œæœ€æ–°å¼•ç”¨â€æ 目。 Comment Hacks åŠŸèƒ½ï¼šå¯æ˜¾ç¤ºè¯„论最多的帖ååŠè¯»è€…。 示例:本站主页侧边æ ä¸çš„“众评帖åâ€å’Œâ€œæœ€å¤šè´¡çŒ®â€æ 目。 Page Navigation 功能:在首页上显示帖å分页,方便æµè§ˆæ—§å¸–å。(比系统默认的更方便些) 示例:本站首页主体部分最底下ã€é¡µè„šä¸Šå¤´çš„pages导航部分。 Twilight AutoSave åŠŸèƒ½ï¼šå®‰è£…æ¤æ’ä»¶åŽï¼Œä»ŠåŽåœ¨WPä¸åœ¨çº¿å†™å¸–å,å†ä¹Ÿä¸ç”¨æ‹…心未ä¿å˜çš„æ–‡å—会丢失了,å³ä½¿æ–çº¿æˆ–æ»æœºï¼å¼ºçƒˆæŽ¨èï¼ ç¤ºä¾‹ï¼šè£…ä¸ŠåŽå†™å‡ 个å—ä¸ä¿å˜å°±å…³æŽ‰ï¼Œé‡æ–°å†™å¸–å,试试就知é“。 Site Statistics 功能:在页é¢ä¸Šç®€å•åœ°åˆ—å‡ºç«™ç‚¹ä¸Šçš„å¸–åæ•°ã€è¯„论数ã€ç›®å½•数和最新更新日期。 示例:本站首页上侧边边最下é¢çš„“站点信æ¯â€ã€‚ Edit Comments 功能:评论者在æäº¤è¯„论åŽå¯ä»¥åœ¨è®¾å®šæ—¶é—´å†…修改编辑已æäº¤æˆåŠŸçš„è¯„è®ºã€‚ 示例:本站ä¸è¯„论功能。 LMB^Box Comment Quicktags åŠŸèƒ½ï¼šåœ¨è¯„è®ºè¾“å…¥æ¡†ä¸Šæ·»åŠ HTMLæ ‡ç¾çš„quicktags,方便撰写简å•HTMLæ ¼å¼çš„回å¤ã€‚ 示例:本站ä¸è¯„论功能。 Talkback 功能:å¯å»ºç«‹é¡µé¢æŸ¥è¯¢æ¯ä¸ªè¯„论者在WP站点的全部评论历å²å†…容。简å•而éžå¸¸å®žç”¨çš„功能。 示例:æ£åœ¨åŠªåŠ›éƒ¨ç½²ï¼Œä½†å°šæœªæˆåŠŸï¼šï¼‰ 2ã€æ‰©å±•功能的æ’件: Jalenack’s Wordspew 功能:是一个基于Ajax技术的Shoutbox,方便读者快速留言,也å¯ä½œä¸´æ—¶IM用。 示例:本站首页侧边æ ä¸çš„“快速交æµâ€æ 目。 Democracy 功能:投票工具,å¯ç›´æŽ¥åœ¨ç®¡ç†ç•Œé¢ä¸åˆ›å»ºã€ç®¡ç†æŠ•票事项。是上é¢ShoutboxåŒä¸ªä½œè€…写的æ’件,比原æ¥çš„WP-Pollæ’件容易安装维护。 示例:本站首页侧边æ ä¸çš„â€œæŠ•ç¥¨è°ƒæŸ¥â€æ 目。 Countdown 功能:一个倒记时工具,在自己的blog上显示最近一些é‡è¦æ—¥åçš„æé†’。 示例:本站首页侧边æ ä¸çš„“过去未æ¥â€åæ 目。 Subscribe2 åŠŸèƒ½ï¼šé€šè¿‡é‚®ä»¶è®¢é˜…å¸–åæ›´æ–°çš„æ’ä»¶ã€‚ 示例:本站的邮件订阅页é¢ã€‚ Subscribe To Comments 功能:通过邮件订阅帖åçš„è¯„è®ºã€‚è¿™æ ·å¯ä»¥æ–¹ä¾¿å…³å¿ƒæŸä¸ªè¯é¢˜çš„读者跟踪和æŒç»å‚与讨论。 示例:本站的帖å评论表å•ä¸ã€‚ Category Visibility 功能:å¯ä»¥è®¾ç½®å„个分类æ 目的公开ç§éšæ€§ã€‚åœ¨WPå°šä¸æ”¯æŒä¸€ä¸ªç”¨æˆ·å¤šblog功能的情况下,å¯ä»¥åˆ©ç”¨è¿™ç®€å•功能在blog上给自己æä¾›ä¸€ç‚¹ä¸ªäººçš„空间。 示例:XXX:) FetchRSS 功能:一个新的新闻èšåˆå™¨çš„WPæ’件,æ‰åˆšå¼€å§‹æœªæˆç†Ÿï¼Œä¸è¿‡æ€»ç®—有了一个容易使用的WPæ–°é—»èšåˆå™¨äº†ã€‚ï¼ˆç›®å‰æˆ‘安装它åªä½œè¯•用,æ£å¼ä½¿ç”¨NewsGatoræœåŠ¡ã€‚å¾…æ¤æ’ä»¶æˆç†ŸåŽä¸æŽ’除使用它的å¯èƒ½ï¼‰ 示例:到æ’件页é¢ä¸çœ‹ä½œè€…自己的示例å§ã€‚ dwBliki 功能:一个将DukuWikiæ•´åˆåˆ°Wordpressä¸ï¼Œæˆä¸ºä¸€ä¸ªBlikiçš„æ’件。我觉得很有用的æ’件,ä¸è¿‡ç›®å‰å¯èƒ½æ˜¯å› 为é…ç½®çš„åŽŸå› ï¼Œæˆ‘è¿˜æ²¡å®‰è£…æˆåŠŸã€‚ 示例:未安装æˆåŠŸã€‚ Random Quotes åŠŸèƒ½ï¼šéšæœºæ˜¾ç¤ºå¼•用的精彩段å。 示例:本站首页上置顶ä½çš„éšæœºæ˜¾ç¤ºå¼•用è¯å¥ã€‚ Writing Projects 功能:一ç§åœ¨blogä¸çš„写作项目管ç†ã€‚è¿˜ä¸æ¸…楚其实际价值多大,现在装了玩玩看。 示例:在åŽå°ï¼Œæœªæ˜¾ç¤ºã€‚ Fallen Media Filter 功能:一个æä¾›å¤šåª’ä½“æ’æ”¾çš„WPæ’件。 示例:…… bstat 功能:一个跟踪整个站点和å„个帖å页é¢ç‚¹å‡»å’Œæœç´¢æ¥è®¿æ¬¡æ•°çš„WPæ’件,能以图形方å¼åŠ¨æ€æ˜¾ç¤ºé•¿æœŸå˜åŒ–。 示例:本站点上相关统计图形和æ 目。 Brian’s Threaded Comments 功能:将WPçš„è¯„è®ºåŠŸèƒ½å˜æˆå¯ä»¥åƒBBSã€Drupal系统ã€DailyKosç½‘å¿—ä¸€æ ·ï¼Œè¯„è®ºè€…ä¹‹é—´ç›¸äº’å›žå¤çš„çº¿ç¨‹ã€‚è¿™æ ·æ›´ä¾¿åˆ©äºŽç½‘å¿—è¯»è€…çš„å‚与和直接互动。 示例:本站点目å‰çš„帖å回å¤è¯„论功能。 3ã€æœåŠ¡å¯¹æŽ¥çš„æ’件: Technorati Tagging 功能:为帖ååŠ ä¸ŠTag进行分类管ç†ï¼Œè¿˜æ”¯æŒæ ‡ç¾äº‘显示;当然还支æŒå‘布到Technorati的相应tag分类ä¸ã€‚ 示例å¯çœ‹æˆ‘首页上置顶ä½çš„éšæœºæ˜¾ç¤ºã€‚ 示例:本站æ¯ç¯‡å¸–åæœ«å°¾çš„tags,和首页侧边æ ä¸çš„â€œæ–‡ç« æ ‡ç¾â€æ 目。 del.icio.us - Bookmark this! 功能:收è—到del.icio.usçš„åŠŸèƒ½ï¼Œæ–¹ä¾¿è¯»è€…æ”¶è—æ–‡ç« 。 示例:本站æ¯ç¯‡ç‹¬ç«‹å¸–åæœ«å°¾å¤„çš„â€œæ”¶è—æœ¬æ–‡åˆ°del.icio.usâ€ã€‚ Del.icio.us Integrator 功能:在blog䏿•´åˆæ˜¾ç¤ºæŸä¸ªè´¦æˆ·çš„del.icio.usæ”¶è—链接。 示例:本站首页侧边æ ä¸çš„â€œä»Šæ—¥ç½‘æ‘˜â€æ 目。 Feedburner Feed Replacement 功能:一个blog往往有多个feedå¯ä»¥è®¢é˜…,使用这个æ’件,å¯ä»¥å°†æ‰€æœ‰è¿™äº›feedéƒ½è½¬æ¢æˆfeedburnerçš„feedï¼Œè¿™æ ·è®©è¯»è€…è‡ªåŠ¨åœ°è®¢é˜…å•一个feedburner,方便统计。 示例:åŽå°çš„东西。 Kramer 功能:利用Technorati API,将Technorati所能找到的æ¯ä¸ªå¸–åçš„åå‘链接都作为帖å评论列在åŽé¢ã€‚ 示例:本站首页侧边æ ä¸çš„â€œæœ€æ–°é“¾æŽ¥â€æ 目。 TagsLinks 功能:对帖å䏿·»åŠ çš„tag链接æä¾›æ›´å¤šçš„外部tagæœåС延伏æœç´¢ã€‚ ç¤ºä¾‹ï¼šé¼ æ ‡åœç•™åœ¨æœ¬ç«™æ¯ç¯‡å¸–å结尾处的“延伸阅读â€çš„tag链接上é¢å³å¯çœ‹åˆ°ã€‚ WP Flickr DHTML Badge 功能:以éžflashæ ¼å¼å°†fllickr图片以Badgeæ–¹å¼æ˜¾ç¤ºåˆ°WP网志ä¸ã€‚ 示例:本站主页上侧边æ 的“图片收è—â€åæ 目。 FAlbum 功能:将flickr上的图片集æˆä¸ºWP网站上的相册。看起æ¥è¿˜ä¸é”™ï¼Œä¸è¿‡å’Œæˆ‘站点上个别æ’ä»¶å¥½åƒæœ‰äº›å†²çªï¼Œæš‚æ—¶å–æ¶ˆè¿è¡Œã€‚ ç¤ºä¾‹ï¼šæœ¬ç«™ç›¸å†Œã€‚ç›®å‰æš‚æ—¶å…³é—。 Google Sitemaps 功能:将WP站点制作æˆsitemap,方便Googleæœç´¢å¼•擎索引。 示例:åŽå°ã€‚ 4ã€ç®¡ç†åŠŸèƒ½çš„æ’件: Enhanced Post List 功能:在管ç†ç•Œé¢ä¸å¯ä»¥æ›´å¤šæ–¹å¼æŽ’列帖å,方便查找和管ç†ã€‚ 示例:åŽå°çš„东西。 Stattraq 功能:一个功能强大的WPæ•°æ®ç»Ÿè®¡å·¥å…·ã€‚ 示例:åŽå°çš„东西。 WordPress Database Backup 功能:WP的数æ®åº“备份æ’件,é…åˆä¸‹é¢çš„Cronæ’件,å¯è‡ªåЍæ¯å¤©å®šæ—¶å¤‡ä»½æ•°æ®ã€‚ 示例:åŽå°çš„东西。 WP-Cron 功能:WP的自动定时工具,å¯è®©å®ƒå®šæ—¶æ‰§è¡ŒæŸä¸ªæŒ‡ä»¤ã€‚(比如,定时自动备份数æ®ï¼Œè¿˜æœ‰å¾ˆæœ‰ç”¨çš„定时检查Feed更新。åŽè€…我很需è¦ï¼Œä½†å¯æƒœåˆ°çŽ°åœ¨è¿˜ä¸ä¼šä½¿ç”¨ã€‚) 示例:åŽå°çš„东西。 Spam Karma 2 功能:一个ä¸é”™çš„防blog垃圾的æ’件,管ç†éžå¸¸æ–¹ä¾¿ã€‚ 示例:åŽå°çš„东西。 Bad Behavior 功能:å声ä¸å°çš„防垃圾æ’件,å¬è¯´WordPress.com官方也采用了。ä¸è¿‡ä¸åƒSpam Karma 2é‚£æ ·å¯åœ¨åŽå°ç®¡ç†ï¼Œæ‰€ä»¥æˆ‘都感觉ä¸åˆ°å®ƒçš„作用:) 示例:åŽå°çš„东西。 Search Meter 功能:统计访问者在WP网志上æœç´¢çš„结果。 示例:åŽå°çš„东西。 WordPress: Touched 功能:利用Ajax技术让WP站点管ç†å‘˜åœ¨å¤–部页é¢ä¸Šç›´æŽ¥ç¼–辑帖å,而ä¸éœ€åˆ°ç®¡ç†ç•Œé¢ä¸ï¼Œä¹Ÿä¸éœ€åˆ·æ–°é¡µé¢ã€‚ 示例:åŽå°çš„东西。 æ¤å¤–还有一些使用过但现在没用的æ’件,那些æ’ä»¶è¦ä¹ˆæ˜¯è§‰å¾—ä¸å¤ªå¥½ã€æ²¡å¿…è¦ï¼Œæˆ–者有更好的替代了,在这里就ä¸å†åˆ—出了。 在下é¢åˆ—å‡ºçš„ä¸æ˜¯WPæ’ä»¶ï¼Œè€Œæ˜¯åœ¨æœ¬ç«™ä¸æ•´åˆä½¿ç”¨çš„ä¸€äº›åº”ç”¨ç¨‹åºæˆ–网络æœåŠ¡ã€‚ 本站使用的其它应用: NewsGater 功能:一个著åçš„RSS阅读器,å¯å°†è®¢é˜…的内容整åˆåˆ°ä¸ªäººç½‘站上作为新闻èšåˆå™¨ä½¿ç”¨ã€‚ 示例:本站新闻èšåˆå™¨ã€‚ DukuWiki 功能:一个PHPè¯è¨€çš„wiki工具,ä¸éœ€æ•°æ®åº“,轻é‡çº§åº”用,支æŒUTF-8䏿–‡æ£å¸¸æ˜¾ç¤ºã€‚å¦å¤–坿•´åˆåˆ°WP系统ä¸ï¼Œæˆä¸ºä¸€ä¸ªBliliç³»ç»Ÿã€‚ï¼ˆå°šæœªæ•´åˆæˆåŠŸï¼‰ 示例:çªå维基。 Google Group 功能:轻é‡çº§ç½‘上论å›ï¼Œå¯ä½œä¸ºblogäº¤æµæ–¹å¼çš„补充工具。 示例:çªå论å›ã€‚ Google Adsense åŠŸèƒ½ï¼šç»™ç½‘ç«™åŠ ç‚¹å¹¿å‘Šï¼Œè™½ç„¶æ ¹æœ¬è¿˜æ²¡çœ‹åˆ°Dollar的影å。 示例:本站å•个帖å内容和评论间的Google广告。 Feedburner 功能:独立的RSS订阅和统计æœåŠ¡ã€‚ 示例:本站统一订阅的RSS Feed。 Del.icio.us 功能:收è—ä¸é”™çš„网å€ï¼Œå¯æ•´åˆåˆ°è‡ªå·±çš„blog上。 示例:çªåçš„Del.icio.us网摘收è—。 Flickr 功能:网上图片å˜å‚¨ã€å…±äº«çš„地方,自己blog上图片的仓库。 示例:çªå的网络图片库。 IceRocket 功能:跟踪链接到自己blog帖å的网å€ã€‚ 示例:本站æ¯ç¯‡å¸–åä¿¡æ¯æ ä¸çš„Linking Posts。 Technorati 功能:tagæœç´¢ã€å…±äº«ï¼›è·Ÿè¸ªæœ‰å…³é“¾æŽ¥ã€‚ 示例:本站的Technoratiåå‘链接。 Ys168 功能:方便的网络硬盘å˜å‚¨ã€‚ï¼ˆå¯æƒœç©ºé—´æœ‰é™ã€‚) 示例:çªå的共享空间。 Send-a-friend 功能:å£ç¢‘ä¼ æ’的便利工具。 示例:本站的Tell a friend页é¢ã€‚ StatCounter 功能:站点访问数æ®ç»Ÿè®¡åˆ†æžã€‚ 示例:本站左下脚处的PageViews统计数å—。 QuickSub 功能:方便使用å„ç§åœ¨çº¿RSS订阅器的读者一键å¼è®¢é˜…站点RSS Feed。 ç¤ºä¾‹ï¼šé¼ æ ‡ç§»åˆ°æœ¬ç«™ä¾§è¾¹æ ä¸Šçš„è®¢é˜…å›¾æ ‡ã€‚ User Online Counter 功能:一段统计在线用户数é‡çš„å°ç¨‹åºã€‚ 示例:本站页脚ä¸çš„在线用户统计数。 Creative Commons 功能:Web 2.0时代将广泛应用的内容版æƒå议。 示例:本站的创作共享版æƒçº¦å®šã€‚ [...]
[...] 今天用了Casey Bisson çš„bstatæ’件,挺ä¸é”™ã€‚能æä¾›æ¯ç¯‡æ–‡ç« 的访问统计,æœç´¢å‘½ä¸ç‰ä¿¡æ¯ã€‚ 用WordPress的伙计们å¯ä»¥è¯•试。 [...]
[...] Casey Bisson çš„ bstat 。这个æ’ä»¶å‰é¢æè¿‡ï¼Œå¯ä»¥ç»Ÿè®¡å¾ˆå¤šä¿¡æ¯ï¼Œæ¯”如å•ç¯‡æ–‡ç« é˜…è¯»æ¬¡æ•°ï¼Œé˜…è¯»æœ€å¤šæ–‡ç« ï¼Œæœç´¢å¼•擎命ä¸ç‰ç‰ã€‚我用到的并ä¸å¤šã€‚å½“ç„¶ï¼Œåƒæˆ‘è¿™ç§é¦–é¡µæ˜¾ç¤ºæ–‡ç« å…¨éƒ¨å†…å®¹çš„åœ°æ–¹ï¼Œç»Ÿè®¡ä¿¡æ¯ä¼šä¸å°½å®Œæ•´ï¼Œä¸è¿‡æ€»æ˜¯ä¸ªæ„æ€ã€‚å•ç¯‡æ–‡ç« ä¸‹çš„story pluseä¹ŸæŒºæœ‰æ„æ€ï¼Œç»˜å‡ºäº†é˜…读趋势。 [...]
[...] Site Stats as a Spellchecker AyntRamblings 6:00 am I recently installed the bstat plugin to my WordPress and have discovered that it doubles as a handy-dandy (after the fact) spellchecker. For instance, I was wondering how could it be that this lowly site is getting so many hits for such a popular term as Firefox? Upon opening my eyes a little wider, I discovered that the post getting all the hits had Fixefox in the title. Actually, I don’t feel so bad for my blunder, knowing that so many people were making the same mis-spelling and going as far as to click the link to my page - ignoring the red text at the top of the Google search result page that states: Did you mean: firefox. If not for their blunder, I would have never noticed mine. Another discovered goof-up: billlboard = billboard [...]
[...] Casey over at MaisonBisson has developed a sweet WordPress plugin called bstat. I’ve been using it since I installed WordPress as my blog. Well, one thing that is missing from the plugin that I decided I wanted was a search cloud (like a tag cloud, only for incoming searches)… I recently created a tag cloud on MasterWish so decided to use that. Here’s the function: [...]
[...] Additionally cool is the idea that Google Analytics is a sucker punch to Microsoft. Hey, I love anything that hurts Microsoft. They don’t suck as much as our President, but they’re sure as hell trying. Some analysts saw the timing of Google’s latest announcement as significant: It came on the heels of a Microsoft (MSFT) manifesto that Web and ad-subsidized services were the future (see BW Online, 11/10/05, “Microsoft: Ozzie’s Online Charge”). “It’s a bit of a slap of the face to Microsoft, reminding them, ‘We’re in this game,’” says Marc Strohlein, vice-president and lead analyst at Outsell, a market research firm. For my part, my only complaint is that they don’t update update the data often enough, and they seem to have some gaps in the data they’ve collected. For instance, this morning, they thought I had had 400 visits, when in reality I had 1136 just yesterday according to bstat. They have been up and down because of high load over the past few days though, so the discrepancy is understandable. Apparently they have had a whole lot of people signing up since they went public. [...]
[...] bstat [...]
[...] 2.Casey Bisson çš„ bstat 。å¯ä»¥ç»Ÿè®¡å¾ˆå¤šä¿¡æ¯ï¼Œæ¯”如å•ç¯‡æ–‡ç« é˜…è¯»æ¬¡æ•°ï¼Œé˜…è¯»æœ€å¤šæ–‡ç« ï¼Œæœç´¢å¼•擎命ä¸ç‰ç‰ã€‚ [...]
[...] bstat [...]
bsuite updated
Please post comments on the most recent release.
[...] Bisson çš„bstatæ’件,挺ä¸é”™ã€‚能æä¾›æ¯ç¯‡æ–‡ç« 的访问统计,æœç´¢å‘½ä¸ç‰ä¿¡æ¯ã€‚ [...]
[...] サイドãƒãƒ¼ã«è¡¨ç¤ºã•ã›ã‚‹ã€Œæœ¬æ—¥ã®äººæ°—記事ã€ã®è¡¨ç¤ºã®ä»•æ–¹ã«ã¤ã„ã¦ã¯ã€è‹±èªžã®ãƒšãƒ¼ã‚¸ã«ãªã£ã¦ã—ã¾ã„ã¾ã™ãŒã€ã“ã¡ã‚‰ï¼ˆÂ» bstat Beta 4 Release)ã®ãƒšãƒ¼ã‚¸ã‚’å‚考ã«ã—ã¾ã—ãŸã€‚具体的ã«ã¯ã€Œ<ul><?php bstat_todaypop(15, “<li>”, “</li>”); ?></ul>ã€ã¨è¨˜è¼‰ã—ã¦ã„ã¾ã™ã€‚ã“ã“ã¾ã§ã®è¨å®šã§ç„¡äº‹ã«æœ¬æ—¥ã®äººæ°—記事ãŒè¡¨ç¤ºã§ãるよã†ã«ãªã‚Šã¾ã—ãŸã€‚ [...]