user-pic

recently_commented_on no longer working?

Vote 0 Votes

I've just upgraded to 4.2 and the mt:Entries attribute recentlycommentedon doesn't seem to be working for me any more.

I have a test template like this:


But it outputs nothing, despite there being comments on the site recently (eg here http://www.pepysdiary.com/archive/1665/08/12/ )

Have I made some stupid mistake or can anyone else replicate this?

Also, am I imagining things, or did the value for recentlycommentedon used to be the number of entries to display, rather than "the number of days to use to limit the selection"? http://www.movabletype.org/documentation/appendices/tags/entries.html

Thanks.

Reported on Movable Type 4.2

6 Replies

| Add a Reply
  • My test template didn't show up (and I couldn't see an option to Preview my post). Here it is:




    Strange, works fine in a reply...

  • Pasted your snippet in exactly, and it works fine. Have you tried isolating it in its own index template and manually rebuilding it, just to see if something else might be interfering?

    The docs are wrong. Bug filed; I'll submit a patch this weekend if someone doesn't get to it first.

  • Many thanks for checking that for me Su, but I can't seem to fix the problem here.

    [Here's a sample page](http://www.gyford.com/temp/recent_comments_test.html) including the MT code I'm using in an index template, and a list of recent comments to show that more Entries should appear.

    Anything obvious I've done wrong there, or is there some other weirdness at play?

  • Many thanks for checking that for me Su, but I can't seem to fix the problem here.

    [Here's a sample page](http://www.gyford.com/temp/recent_comments_test.html) including the MT code I'm using in an index template, and a list of recent comments to show that more Entries should appear.

    Anything obvious I've done wrong there, or is there some other weirdness at play?

  • (Oops, sorry for duplicate... seems it's possible to go 'Back' to a previous page and submit the same comment again.)

  • The solution is to add limit="100" to the MTEntries tag, so something like:


    ...

    If 100 isn't enough, try a larger number. No idea why this works or is needed, but it does.

    Incidentally, this is only needed if the template is being published statically. If you're publishing the template dynamically, the limit modifer isn't required to get recently\_commented\_on working.

Add a Reply

Forum Groups

513 1681

Last Topic: Google Analytics by Argentina Elections on May 27, 2009

202 880

Last Topic: Welcome to Movable Type by solle on May 27, 2009

49 204

Last Topic: Odd problem with searches - need help by Phill M on May 24, 2009

11 42

Last Topic: Community Solution -- but where? by webmoney on Mar 16, 2009

25 99

Last Topic: Search enhancement? by Rob on Apr 14, 2009

10 21

Last Topic: Comment Box Missing by rushskeith on Jan 9, 2009

90 318

Last Topic: Getting to the settings on Post Office by Rob G on Apr 2, 2009

code.sixapart.com

104 373

Last Topic: Login/Registration issue by Gaurav Sharma on May 26, 2009

90 307

Last Topic: HTML Printer-Friendly page shrinks by Mikki on May 19, 2009