default userpic

Last comments replies

Vote 0 Votes

Hello, I would like to have a box in my sidebar with the last 10 replies I gave to user comments in my blog.

I've searched a bit but no luck.

Thanks

--
Simone

Reported on Movable Type 4.0x

4 Replies

| Add a Reply
  • Take a look at this tag http://www.movabletype.org/documentation/appendices/tags/commentreplies.html and see if you can pass it an author attribute ID equal to your MT user account's database ID number (you should be able to find it by mousing over your username in the user management screen under system view).

  • You can base your widget off of this code, which works for me:

    <mt:Comments blog_id="2" sort_order="descend" lastn="100">
    	<mt:CommentReplies>
    		<mt:If tag="CommenterID" eq="1"> 
    			<mt:setvarblock name="push(bodies)"><mt:commentbody/></mt:setvarblock>
    			<mt:setvarblock name="push(ids)"><mt:commentid/></mt:setvarblock>
    			<mt:setvarblock name="push(authors)"><mt:commentauthor/></mt:setvarblock>
    		</mt:If>
    	</mt:CommentReplies>
    </mt:Comments>
    
    

    <mt:loop name="bodies" limit="10">
    <mt:If name="__counter__" lt="11">
    <mt:var name="__counter__" setvar="counter"/>
    <mt:var name="ids[$counter]"/>
    <mt:var name="authors[$counter]"/>
    <mt:var name="bodies[$counter]"/><br/><br/>
    </mt:If>
    </mt:loop>

  • Thanks for your help, Mike.
    I've been searching for this solution for my problem in which it was been so confusing to have it. I am on my way to test the codes and would love to keep an update on it.

    Best Regards,
    brad
    arthritis pain relief

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1771 6153

Last Topic: Preview Template - Where can I find it? by Dice on Feb 6, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1428 5076

Last Topic: Stupid Question? How to make a static homepage by Jeremy on Feb 3, 2012

693 2907

Last Topic: database upgrade hangs - upgrading to 4.37 by CrankyProfessor on Feb 1, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

221 710

Last Topic: Publish queue cache coherence issue by Istvan Kallai on Jan 27, 2012