Post counter and Most visited post for WordPress 1.2
Thanks for visiting! If you're new here, you may want to subscribe to our RSS feed. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. Go ahead, subscribe to our feed! You can also receive updates from this blog via email.
There are some changes in order for that hack of mine. This hack counts the number of times users click on a certain permalink and then allows the creation of a “Most Popular Posts” list. This was written for WordPress 1.0 and now has been modified for WordPress 1.2 Mingus.
You can see how it works on this blog and can download the instructions from here:
http://weblogtoolscollection.com/b2-img/top10posts12.txt















Comments RSS
Dude… A plugin???
Yes, it should be a plugin, so shoot me!
I’m stuck with step 3
I can’t find that line in a almost-standard WP 1.2 Mingus installation. I suppose it’s neer the end of The Loop but not quite sure.
Thank you.
My comment didn’t post (I’m testing with this one).
Well, it must not have liked my long urls, even though I put them in CODE.
pop_posts() is showing the entire archive url with $siteurl, followed by the &p=217&more=1&c=1 query looking url after the index.php part. So if I have an archive like shreela.f2o.org/2004/July/28/LaLa/
then the $siteurl turns out to be
shreela.f2o.org/2004/July/28/LaLa/index.php&p=217&more=1&c=1
I can’t figure out how to get the $siteurl to NOT included the entire archive permalink url. But looking at yours on this blog, I see that yours has the pretty permalinks, and none of that query business stuff. I want mine like yours, with properly working, pretty links, not wonky query links that go nowhere LOL
WordPresså•篇日志点击数统计
  在Weblog Tools Collection那里看到一个å为Post counter and Most visited post for WordPress 1.2çš„Hack,Mark终于把这个Hack给放出æ¥äº†ï¼Œå› 为Weblog Tools Collection很早就开始使用这个Hack了。现在就æ¥è¯´è¯´æˆ‘的安…
[...] feedback, I’ve implemented Mark’s code for tracking visited posts and listing popular posts. Woo exciting yeah? Well no [...]
[...] __ frenchfragfactory.net/ozh/archives/2004/10/02/wordpress-category-map/ __Most popular__
Using the latest CVS, putting the index.php line just below:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
does the trick
[...] é¤Ë³Æµ»ö¤Ëˬ¤ì¤¿²ó¿ô¤òɽ¼¨¤¹¤ëHACK¤Ç¤¹¡£
I have implemented this post view counter prior to using permalinks. I have found a couple plugins now that I would like to implement, but they require permalinks. If I enable permalinks, the post view counter no longer counts the post views.
This site seems to have implemented it properly. Can someone post a revised code that works with permalinks? Thanks in advance for your help!
[...] ¤Ç±ÜÍ÷¿ô¤Î¥«¥¦¥ó¥ÈÊýË¡¤¬Benjamin¤µ¤ó¤¬¤³¤Á¤é¤Ç²òÀ⤵¤ì¤Æ¤¤¤¿¤Î¤Ç¡¢Æ³Æþ¤·¤Æ¤ß¤Þ¤·¤¿¡£ ¤Þ¤º¡¢Post counter and Most visited p [...]