Old Us [Here] posts: August 2003 Archives

Otherblog II

| | Comments (1)

So I was playing around with this some more, I wanted to have it link to the entry the comment was made on, etc...but wasn't sure if it would work correctly.
But it does!! So thought I would share again :-)

<MTOtherBlog blog_id="1,6">
<h2><$MTBlogName$></h2>
<MTComments lastn="2">
<a href="<$MTBlogURL$>archives/
<$MTCommentEntryID pad="1"$>.html">
<$MTCommentDate format="%m.%d.%y"$></a>
<$MTCommentAuthorLink spam_protect="1"$>:
<$MTCommentBody trim_to="50" convert_breaks="0"$>...
[<a href="<$MTBlogURL$>archives/
<$MTCommentEntryID pad="1"$>.html">more</a>]<br/><br/>
</MTComments>
</MTOtherBlog>

again, bolded items can be changed: blog id numbers, how big you want the header, how many to show, whatever your archive folder name is, your file extension (php, shtml, html, htm, etc...) how long you want the comment to be. The date format can also be changed.
Have fun!

Otherblog Comments

| | Comments (1)

So I was searching high and low for a script or plugin that would let me pull in comments from another blog on the same MT installation, but it seemed every one I tried gave me a lovely 500 error before I got a chance to test it out, or required me to have a MySql database, and I'm happy running Berkley DB.
I did find a plugin that would let me pull in posts from another blog (called Otherblog) that worked with my configuration, so I sat and figured out how to modify it to work with comments instead of posts.
Much to my surprise, it worked! So, I thought what better way to get this blog restarted with a bang.
You will need the Otherblog plugin, installed in your plugins folder (you might have to create this) where MT is installed, then place this code in your template where you want it to show up:

<MTOtherBlog blog_id="1,6">
<h2><$MTBlogName$></h2>
<MTComments lastn="2">
<$MTCommentAuthor$> said:<br />
<$MTCommentBody trim_to="75"$><br />
</MTComments>
</MTOtherBlog>

The bolded numbers can be changed, obviously the blog_id would be changed to the id of your blog you want to pull the comments off of, and you can do this with more than one.
The lastn="" can be set to however many comments you want to show.
The trim_to can be set to however many characters you want to pull in, or can be removed to show the entire comment.

Its very basic, but it works! Play around with it and see what you can get it to do.

About this Archive

This page is a archive of entries in the Old Us [Here] posts category from August 2003.

Old Us [Here] posts: September 2003 is the next archive.

Find recent content on the main index or look in the archives to find all content.