[…] feedback, I’ve implemented Mark’s code for tracking visited posts and listing popular posts. Woo exciting yeah? Well no […]
[…] é¤Ë³Æµ»ö¤Ëˬ¤ì¤¿²ó¿ô¤òɽ¼¨¤¹¤ëHACK¤Ç¤¹¡£ http://weblogtoolscollection.c.....dpress-12/” title=”Post counter and Most visited post for W […]
WordPresså•ç¯‡æ—¥å¿—点击数统计
  在Weblog Tools Collection那里看到一个å为Post counter and Most visited post for WordPress 1.2çš„Hack,Mark终于把这个Hack给放出æ¥äº†ï¼Œå› 为Weblog Tools Collection很早就开始使用这个Hack了。现在就æ¥è¯´è¯´æˆ‘的安…
[…] ¤Ç±ÜÍ÷¿ô¤Î¥«¥¦¥ó¥ÈÊýË¡¤¬Benjamin¤µ¤ó¤¬¤³¤Á¤é¤Ç²òÀ⤵¤ì¤Æ¤¤¤¿¤Î¤Ç¡¢Æ³Æþ¤·¤Æ¤ß¤Þ¤·¤¿¡£ ¤Þ¤º¡¢Post counter and Most visited p […]
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
Using the latest CVS, putting the index.php line just below:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
does the trick
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!