7/28/2004 ↓

Post counter and Most visited post for WordPress 1.2

Author: Mark Ghosh Category: WordPress Hack

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

1 Star2 Stars3 Stars4 Stars5 Stars (7 votes, average: 3 out of 5)
Loading ... Loading ...
Sphere: Related Content | stumbleit |

Translate

Translate to German Translate to Spanish Translate to French Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Russian Translate to Chinese

Latest Videos

Latest WordPress Jobs

12 Comments | Leave a comment | Comments RSS

  1. Dude… A plugin???

    Sushubh (3 comments.) — 07/28/2004 @ 10:27 am
  2. Yes, it should be a plugin, so shoot me! ;)

    Mark (7 comments.) — 07/28/2004 @ 11:07 am
  3. I’m stuck with step 3

    3) Now open your index.php and find this line:
    < ?php } } else { // end foreach, end if any posts ?>

    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.

    Felixe (1 comments.) — 07/29/2004 @ 7:58 pm
  4. My comment didn’t post (I’m testing with this one).

    Sherri (10 comments.) — 08/1/2004 @ 9:14 am
  5. 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

    Sherri (10 comments.) — 08/1/2004 @ 9:21 am
  6. WordPress单篇日志点击数统计
      在Weblog Tools Collection那里看到一个名为Post counter and Most visited post for WordPress 1.2çš„Hack,Mark终于把这个Hack给放出来了,因为Weblog Tools Collection很早就开始使用这个Hack了。现在就来说说我的安…

    Qiantu's Weblog — 08/2/2004 @ 12:40 pm
  7. [...] feedback, I’ve implemented Mark’s code for tracking visited posts and listing popular posts. Woo exciting yeah? Well no [...]

  8. [...] __ frenchfragfactory.net/ozh/archives/2004/10/02/wordpress-category-map/ __Most popular__

    azeems blog » Hi — 10/13/2004 @ 9:28 am
  9. Using the latest CVS, putting the index.php line just below:
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    does the trick :)

    Podz (11 comments.) — 10/23/2004 @ 8:18 am
  10. [...] é¤Ë³Æµ­»ö¤Ëˬ¤ì¤¿²ó¿ô¤òɽ¼¨¤¹¤ëHACK¤Ç¤¹¡£

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

    Philip Peeples (1 comments.) — 12/5/2004 @ 2:07 am
  12. [...] ¤Ç±ÜÍ÷¿ô¤Î¥«¥¦¥ó¥ÈÊýË¡¤¬Benjamin¤µ¤ó¤¬¤³¤Á¤é¤Ç²òÀ⤵¤ì¤Æ¤¤¤¿¤Î¤Ç¡¢Æ³Æþ¤·¤Æ¤ß¤Þ¤·¤¿¡£ ¤Þ¤º¡¢Post counter and Most visited p [...]

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required, will not be published)


S2