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
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!