开发者 | Alexander Holbreich |
---|---|
更新时间 | 2010年11月20日 23:47 |
PHP版本: | 2.5.0 及以上 |
WordPress版本: | 2.5.1 |
Since home and feed views have not been recorded for old posts, they won't be ranked as highly as new posts.
If you have received comment spam or just need to recount your comments/trackbacks for any reason, you can use the 'Reset Comments/Trackback/Pingback Counts' button on the Options > Popularity page. If somment spam is an ongoing problem for you, you may want to set up a CRON job to run this script every night. This example will run the recount every night at 3am:
0 3 * * * wget -q http://www.example.com/wordpress/wp-content/plugins/wpopularity.php?ak_action=recount_feedback
Go back to you Plugins page, and click 'Deactivate' for Popularity Contest.
No problem. Go back to the Plugins page and click 'Activate' for wPopularity. wPopularity will check to see if there are new posts and feedback since it was last activated, and will "catch up" as much as possible.
For this, you need to edit the wPopularity plugin .php file. Just change this:
@define('AKPC_SHOWPOP', 1);
to this:
@define('AKPC_SHOWPOP', 0);
If you don't want to edit the .php file, you can add this to your WordPress index.php file:
@define('AKPC_SHOWPOP', 0);
You can also set this on a conditional basis via your own plugin by accessing the 'akpc_display_popularity' hook.
For this, you need to edit the wPopularity plugin .php file. Just change this:
@define('AKPC_SHOWHELP', 1);
to this:
@define('AKPC_SHOWHELP', 0);
If you don't want to edit the .php file, you can add this to your WordPress index.php file:
@define('AKPC_SHOWHELP', 0);
Just use Dynamic sidebar Widget Called 'Most Popular'. YOu can configure: Titele of Blog, Maximum number of shown posts. And Advanced mode. Advaced mode knows: categories, and archives. So is category is selected, the included sidebar shows a list of most popular posts in that category. When viewing a month archive, the included sidebar shows a list of most popular posts for that month.
That about does it - enjoy! --Alexander Holbreich http://holbreich.de/