The whole More Like This From Others thing really intrigued me, so I thought I'd write a little plugin for it to toss into my blog and see what comes up. So here it is.
Here's an example of how you can use it:
<MTPings>
<a name="<$MTPingID$>"></a>
<span class="trackback-post">
<a href="<$MTPingURL$>" target="new"><$MTPingTitle$></a><br />
<b>Excerpt:</b> <$MTPingExcerpt$><br />
<b>Weblog:</b> <$MTPingBlogName$><br />
<b>Tracked:</b> <$MTPingDate$><br />
<b>More Like This:</b><br />
<ul>
<MTMoreLikeThisFromOthers>
<li><a href="<$MTMLTFOLink$>" target="new">
<$MTMLTFOTitle$></a>: <br />
<$MTMLTFODescription$></li>
</MTMoreLikeThisFromOthers>
</span>
</div>
</MTPings>
Download morelikethis.tar.gz or morelikethis.zip , unpack it, and put morelikethis.pl in your plugins directory. In addition, you will also have to get Ben's MLTFO perl module from the link at the beginning of this entry. Just download the archive, unpack it, and place MLTFO.pm in your extlib directory. You may also need to install the XML::RSS module for Perl. All I ended up having to do was place RSS.pm in the extlib/XML directory.
MTMoreLikeThisFromOthers
- Container tag that encapsulates Ben's MLTFO module.
- When used within MTPings, finds similar entries in the blog from which the trackback ping was received.
- When used within MTPingedURLs finds similar entries in the blog to which the ping was sent.
MTMLTFOLink
- The URL for the entry that was found.
MTMLTFOTitle
- The Title for the entry that was found.
MTMLTFODescription
- The Description for the entry that was found.
ChangeLog
- Version 0.29: Fixed interation with MTPingedURLs
- Version 0.25: Added support for MTPings and MTPingedURLs
- Version 0.1: First version
template_tags=MTMoreLikeThisFromOthers,MTMLTFOLink,MTMLTFOTitle,MTMLTFODescription
This looks great! I have a couple questions.
1) Would the plugin work in the trackback plugin for the entry or does the code need to be placed in the individual entry archive?
2) Does this list ALL the entries in the same category as the one that pinged? Is there some way to specify how many entries it will return?
Thanks again for all the great work you do.
One more question. I noticed that Ben's original sample output listed the category in the other blog that the posts were taken from. Does the plugin support this?
I am getting the following template error when I try to rebuild my site:
Error in tag: Not within MTMoreLikeThisFromOthers
Any ideas?