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:

    <mt:Entries recently_commented_on="5">
    <$MTEntryTitle$><br />
    </mt:Entries>
    

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

    <MTEntries recently_commented_on="10" limit="100">
    ...
    </MTEntries>
    

    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

151 405

Last Topic: MT Interface Missing by Sherri on Nov 10, 2008

36 144

Last Topic: Installation can't finish by Drazend on Nov 10, 2008

34 93

Last Topic: Creating your own Plug-in by jondauz on Nov 5, 2008

10 33

Last Topic: new licensing confusion by Neil Epstein on Aug 14, 2008

code.sixapart.com

62 226

Last Topic: Callback after blog publishing. by Tomato Interactive on Oct 27, 2008

34 98

Last Topic: Ajax Rating Plugin by kiran on Oct 17, 2008