Creating a Sideblog in MT

Having seen some great “sideblogs” across the internet (Christine’s Crumbs, Movablog’s Asides, and many others) I’m inspired to add a Sideblog to my own MT-powered blog. Anders created a short “how-to” for those who are not using php and it has inspired me to create a php version here.

What is a Sideblog?
First, I guess it would be important to understand the “what” of the whole Sideblog phenomenon. A Sideblog could have many purposes, but is generally used as a quick link repository. For me, if I see something that was really interesting, but I didn’t feel connected enough to blog it - I would post it in the Sideblog. The Sideblog would then be included in the main blog.

How to create a Sideblog in MT
A Sideblog is basically a new weblog that gets included in your original blog. The steps are very painless. The creation steps are universal. The include steps presume you are using php. Anders has an SSI version of these instructions as well.

  1. Create a new blog in MT’s main menu. I’ve called mine “Sideblog”.
  2. Create a basic index template that shows just the html that you want to include in your main blog. I strongly suggest that you implement some type of limit on the number of entries displayed. For example:

    <MTEntries lastn=”15″> <MTDateHeader> <br /> <$MTEntryDate format=”%Y-%m-%d”$>: <br /> </MTDateHeader> <$MTEntryBody$><br /> </MTEntries>

  3. Exit the Sideblog and edit the main index template for your existing main blog. We want to include the index page from the Sideblog, so we’ll use a php include. For example:

    <?php include(”http://www.to-be-simple-just-use-full-web-path.com/sideblog/index.php”);
    ?>

That’s it! Now you can post to your Sideblog and (if you use the template I’ve shown) the 15 most recent posts will show up in your main blog.

How to use the Sideblog

There are a lot of variations on using the sideblog. Some people post the interesting link in the excerpt and use the extended entry to include a brief little message about it. I suggest posting the interesting link in the entry body and then any other comments I have on the link in the extended entry. That works for me in my testing. Your mileage may vary.

Variations
There are a lot of ways to “spice up” the sideblog. Since we just included the index template from the Sideblog into the main blog, all of our template tags are available to us. For example, Christine’s Crumbs show the number of comments for each Sideblog post as a link to the Sideblog entry itself. This is a great way to allow your visitors to interact with your Sideblog. If we modify the template in #2 above as follows to mimic Christine’s Crumbs:

<MTEntries lastn=”15″>
<$MTEntryBody convert_breaks=”0″$> (<a
href=”<$MTEntryLink$>”><$MTEntryCommentCount$></a>)<br />
</MTEntries>

You can additional spaces to separate the interesting link from the comment count or modify the code to include any detail you like. I like the way Christine’s works, so I plan to use the comment count on my own Sideblog.

That’s all there is to it. Again, we just include the MT tags directly from the index template of the Sideblog. There are other ways to accomplish this, but I think this is the simplest of them all!

77 Responses to “Creating a Sideblog in MT”

  1. Zachhale.com Says:
    Staying Busy
    Some things to do this summer: 26 Things: The International Photographic Scavenger HuntThe Mirror ProjectMake a Photography WeblogRe-design this siteMake my Linux ServerLearn JavaGet a JobRead moreUpdate: Create a sideblog…

  2. halla Says:

    can’t you do this with MTOtherBlog?

  3. Mama Write Says:
    Blogging Bits
    I just added a sideblog here (thanks to ) — it’s basically a running list of links that I find on the ‘net with a comment feature in the event such a link sparks discussion. I may change the name…

  4. Kevin Says:

    Yes, as David pointed out, OtherBlog is intended for those without Php or SSI. I haven’t worked with that plug-in, so I couldn’t say if you have to rebuild both blogs after creating an entry or not. IMHO, this is the no-muss, no-fuss way of doing it - and it is always updated.

  5. VIncent Says:

    And remember, if you dont want to convert all your files to .php you can add html as an extention to be parsed by the server as a php file.

  6. Mariann Says:

    I’ve tried this and MTOtherBlog, and this is much , much faster!

  7. The Lost Olive Says:
    sideblogs
    scriptygoddess SG has a cool way of adding a “sideblogs” to your blog. Something I have been considering for a while now…….

  8. j. brotherlove Says:

    I’ve implemented a solution like this but for the life of me couldn’t figure out how to get rid of those annoying extra spaces between links. Forgot all about convert_breaks=”0″. Thanks!

  9. Open Stacks Says:
    Sideblog
    I was toying around with Chris’ Sideblog tool on Planet Neutral, but I’ve noticed a few different ways to accomplish the same goal in Movable Type without external applications. The central benefit of this for me is the ability to…

  10. Abhimanyu Chirimar Says:

    HI there,
    I run a small blog about/for students at http://www.vritti.net I have been working on the photo site http://www.vritti.net/mt/photo/ and its pretty much done, but I need to get these three things done and I just can seem to get it done:
    i. Show the thin border around the pictures in both ie and netscape/opera. Right now, I can only get it work in opera. ii. When you click on the title like abhi or W, it goes to that category page, here I want below the menu and before the title, a previous and next category. iii. When you click on one of the photo thumbs, it goes to the individual entry page, here I want it to show a previous and next photo, only within that category.

    How do I get this to work? I have been trying all the combinations I could think of, nothing works. Hope you can help somehow.

    abhi

    p.s. I dont know if I am supposed to post this here, but couldnt find another place to do it.

  11. Kevin Says:

    1) I’m not sure exactly how you want your “border” to appear, but there are plenty of cross-browser, border tags that you can set to images. Glish.com has some good references and links, but there are plenty of others out there - just google for css image border and go nuts.

    2) Next/Previous category is a little trickier. Brad has a plugin here and I know Kristine had a php solution here on Scriptygoddess at one time, but there may be others ways of doing it. This should be a start. Then just paste the tags into your template where you would have them appear.

    3) If you’re using individual archives, which you seem to be, then next/previous within categories should be pretty easy too. I think you’ll find the answer here on scripty by searching for next previous.

  12. Christine Says:

    I didn’t even think of looking for an MT plugin when I set mine up - I’ve used similar tricks for over a year to get the thumbnails on Pixelog over to my BPC site, so setting up “Cookie Crumbs” the same way was just fast and easy. PHP is my friend!

  13. Abhimanyu Chirimar Says:

    Amazing.everything is up and running. the category and indi entry links are perfect.
    this site rox.

  14. Abhimanyu Chirimar Says:

    Problem: I cant seem to get the img border to work. I use two css. one for the main site and one for the photos. Yet, I cant get it to be ok in both browsers. Can anybody gimme a cut and paste solution here?
    sorry for the inconvenience.
    abhi

  15. Abhimanyu Chirimar Says:

    HI,
    I have got them to border my images, but the layout is still messed up. http://www.vritti.net/mt/photo/new.php
    if one of you would be kind enough to take a look at this code and let me know. I need to arrange my images, next to each other and some padding between with and vertical-align:middle. I dont know if this is asking for too much, but hopefully somebody can help me out.

  16. Vin Says:

    Hi,
    I searched a lot but couldn’t get hold of this thing.
    I want to be able to show something like this below each post.

    Comments(5) | Last by someone

    I already have this “Comments(5)”, but how do make it to show “Last by someone”
    someone - is the name of who commented last.

    Please help…

  17. Happy Steve Says:

    Vin, I’m new to making MT hacks, but I think this is what you want…

    Last by
    <MTComments lastn=”1″ sort_order=”descend”>
    <$MTCommentAuthor$>
    </MTComments>

    And you can use other MTComment tags to include more info like links or dates.

  18. mind of knowledge Says:
    fiddling
    Now that i’m totally addedicated (thanks to bezempje for the new word) to BlogShares, I wanted to show this website’s worth, but also the total worth of my portfolio. Unfortunately it doesn’t quite show up yet. Also, as you can…

  19. Sideblog MoK Says:
    http://www.leonieke.net/MovTy/sideblog/archives/000273.shtml
    scriptygoddess: sideblog…

  20. Stephanie Says:

    Hi, on Jan 16, 2003 you had an entry about the “expand/collapse” code for MT…I don’t use PHP for my current layout and was wondering if you ever wrote that extra code because I know that it won’t work for my site. I’m going to look again because I’m probably just being blind like I usually am. Love the site you have here though, it’s quite helpful and enjoyable.

  21. Stephanie Says:

    Nevermind, after I kicked my lazy arse in the behind and switched to php, I got it working. =)

  22. kiesows.de Says:
    sideblog
    nachdem ich bei scriptygoddess und im MovableBLOG über sideblogs gelesen habe, musste ich mir doch auch gleich einen einrichten. ist…

  23. Sideblog Says:
    Dasme.org/sideblog open!
    Saw the idea and implemented it courtesy of scriptygoddess. I wanted a way to quickly post links and such to my blog, and a sideblog may just be the way to do it! We’ll see how it goes ;)…

  24. Chris Says:

    If you’re extra lazy, you might try Sideblog. One line of HTML does the trick.

    Yes, I realize that most MT hackers won’t want something like this, but I thought I’d mention it.

    And, yes, I’m the clown running it.

  25. SixDifferentWays Says:
    RSS Experts?
    UP

  26. markpasc.org Says:
    How to make a quick links weblog in Movable Type
    Some directions.

  27. Jay Allen Says:

    If, like me, you don’t want (or already have) 100 blogs listed on your Movable Type main menu, you can easily implement this without creating another blog.

    If you think about it, a sidebar blog is probably the same type of content as your main blog except without a lot of commentary. Hence, why not use your main blog?

    In order to do this, you simply set up a category called something like “sidebar” to hold your sidebar entries. Then, you set up the sidebar blog using <MTEntries category=”sidebar”>…</MTEntries> and your main blog using the MTEntriesExCat plugin with <MTEntriesExCat category=”sidebar”>…</MTEntriesExCat>.

    For commentary, you can use either the MTEntryMore Or MTEntryExcerpt (my favorite) field…

  28. Kevin Says:

    Another excellent example. As noted, there are a lot of ways to accomplish this. Jay’s suggestion does require the installation of at least one plugin - so that may be the path for you if you are wanting to take those steps! Thanks, Jay, for the good idea!

  29. izzy|wizzy Says:
    New Sideblog: Scraps
    I’ve been wrestling with the idea for several weeks now. Recently, while trying to figure out how to best store a bookmark I was interested in, rather than fill up my Bookmarks list in Firebird, I decided to create a…

  30. Jay Allen Says:

    FYI: I detailed the method here.

  31. Design-A-Blog Says:
    On My Current To Do List

  32. Find a Mozilla-friendly two-column layout that still works with IE
  33. Find some way to embed my Livejournal as a sort of
  34. Christine Says:

    Thanks for the info Jay - I found it handy to read through even if I don’t change the way my microblog works.

    Chris, you have posted on the sideblog site the very reason why I won’t rely on other services. “Sideblog soon to be either: a) ad free or b) turned off entirely.” I hope you find a way to keep it up and running.

  35. Gary Says:

    Ummmm, not to be too dense here, but why not just use a “Quick Link” Category. That’s all I do, granted, I have to muck around a bit an make sure that the “Quick Link” category isn’t in my main MTEntries declaration, but that’s not too tough and I don’t need to install other extensions.

  36. Jennifer Says:

    Gary - It’s not a matter of “why not just use”… I think it’s a matter of personal preference. I think that’s why Kevin said at the end “There are other ways to accomplish this” - these are just a few ideas.

    In any case, thanks for sharing your method as well. :D

  37. SideBlog Says:
    Create A SideBlog In MT
    scriptygoddess…

  38. Sid Says:

    In the sidebar of my main blog I am getting this:
    Warning: main(): stream does not support seeking in /home/chism/public_html/index.php on line 749

  39. SlimsWorld Says:
    Sideblog
    I have finally made a sideblog (with helf from a tutorial from ScriptyGoddess) so that all interesting links I come across that I don’t feel like blogging about will have a new home. I did this so my main page…

  40. atmaspheric | links Says:
    How to’s: Creating a Sideblog in MT
    scriptygoddess How to’s: Creating a Sideblog in MT…

  41. Jonathan Greene Says:

    I am getting the same error on my page…

    Warning: main(): stream does not support seeking in /home/virtual/site74/fst/var/www/html/mt/index.html on line 2642

    How do I fix that please?

  42. Kevin Says:

    Jonathon - you’re really going to have to help us with some code or an example somewhere. What type of server are you on? Is your sideblog working as it’s own independent blog? If not, that’s your first project. If it is, a simple include shouldn’t be that tough. Are you using an include? PHP or SSI? Are you using a category method? Thanks!

  43. Jonathan Greene Says:

    It’s my own site hosted on a shared linux box. I am pretty sure that php is php is supported as I use Textism’s refer which runs as php script.

    I set up a sideblog - http://www.atmasphere.net/links.

    I’ve tried the php and include method, but neither seems to be working correctly. As I noted in my previous comment, the php method left me with an error:

    Warning: main(): stream does not support seeking in /home/virtual/site74/fst/var/www/html/mt/index.html on line 2642

    The include method did not leave any error, but did not include the links.

  44. Kevin Says:

    OK. This is good. Presuming you can use PHP includes, then it’s simply:

    <?php
    include(”http://www.atmasphere.net/links”);
    ?>

    wherever you want it to appear.

  45. Kevin Says:

    If that’s not working for you, then we would certainly want to know what exactly is in

    “/home/virtual/site74/fst/var/www/html/mt/index.html on line 2642″

  46. Jonathan Greene Says:

    Just changed back to the php bit and got the error again-

    Warning: main(): stream does not support seeking in /home/virtual/site74/fst/var/www/html/mt/index.html on line 2643

    My index file only goes to line 312

  47. Jonathan Greene Says:

    OK - feeling a bit dense… Just viewed source on my own page (not the MT template) and found this at line 2643:

    Warning: main(): stream does not support seeking in /home/virtual/site74/fst/var/www/html/mt/index.html on line 2643

    seems odd that it is a self-reference…

  48. Tim Says:

    I hope this isn’t off topic, but I am trying to make a homegrown sideblog using php, and I am looking for a function that takes a long string (a weblog entry) and truncates it at a certain number of words or characters AND makes sure that it is html safe — e.g. no unclosed open brackets. Basically I’m looking for the php equivalent of the MT Plugin “MTFirstNWords”, but I want something that doesn’t depend on MT.

    I’ve googled truncate+php, browsed php.net and all the places I could think of, but haven’t had any luck.

    Any ideas?

    TIA

  49. sideblog Says:
    http://miles.hu/sideblog/001274.php
    How to’s: Creating a Sideblog in MT…

  50. Amber Says:

    I tried exactly what this said, but when I look at the page, I can’t see anything. The actual sideblog is located at http://www.myaimistrue.com/sideblog/index.php

    The main index is at http://www.myaimistrue.com/test/blog/index.html

    The code I used was
    <?php include(”http://www.myaimistrue.com/sideblog/index.php”); ?>

    What am I doing wrong? Does it have to do with the fact that I put it in a table?

    Any help will be appreciated. Thanks,

    Amber Nussbaum
    amber@myaimistrue.com

  51. Kevin Says:

    Amber- The php code you’re using needs to be on a php page. You’re home page is an html page. You can either convert your homepage to php or having the server parse you html page as php. After that it should work fine.

  52. [supafine] geek blog Says:
    Using PHP to make a sideblog or blogroll
    Found a great article on Scripty Goddess’s blog about creating sideblogs. Thanks to a hint from Ken, I’m going to use this to make my own blogroll. Ha-HA! I have the basics down, which you can see on my links…

  53. shonk::selling waves Says:
    Recovering Lost Knowledge
    In the process of moving, I had to re-do a lot of stuff I had done before but didn’t keep a record of. The most frustrating, so far, has been re-creating my “Reading” head (which should appear to the right)….

  54. Mizzou Guy Says:
    Sidebar Tutorial
    I’ve had several inquiries how I created the photolog sidebar, so I offer this link… How to’s: Creating a Sideblog in MT. I will also document exactly what I did to create and display my photos in the photolog sidebar,…

  55. 酋長的部落格 Chieftain's BLOG Says:
    新增My Schedule於sidebar上
    我人笨,常忘記東西。所以要有電子秘書,一個行事曆。 參考Scriptygoddessçš„How to’s: Creating a Sideblog in MT這篇文章作成的。…

  56. MB Says:

    Even with all my indexes in php, I was still getting the main stream warning. Placing the ‘at’ sign in front of ‘include’ cleared it up. Here’s where I found the tip: http://www.onaje.com/php/article.php4/43.

    Hope this helps.

  57. [supafine] geek blog Says:
    Oh yeah, baby. Sideblog.
    Have managed to finagle my links blog to serve as a sideblog or blogroll for the Geek blog, as viewed in the links section. With a little help from the tutorial on scriptygoddess, of course. Lo and behold, it was…

  58. MArco Says:

    Hello,
    I think I have a *very* trivial problem but I can’t solve it.
    The index file of my weblog is a php file, so it should work fine. Anyway, the include does not work, and I get the message [an error occurred while processing this directive] in the home of the primary blog.
    I think the problem is with the characters, but I’m just guessing. Any idea ?

    Thanks

  59. Faraway, So Close Says:
    New Blog Stuff
    New sideblog listing the things I’ve recently watched, read or listened to compliments of scriptygoddess.com….

  60. life of nicole lee Says:
    Sideblog tweaks
    I’ve changed my side mini-blog coding from HTML to PHP, using this scriptygoddess article as a guide. I was previously using the MTOtherBlog plugin to update the mini-blog, but I felt it was a bit too much of a pain…

  61. jeph Says:
    製作sideblog
    第一次看到「sideblog」是在”文森咖啡館”:http://winsoncafe.com/archives/000126.html,後來”奶爸也提到了”:http://tamshui.typepad.com/yuchang/2003/09/sideblog_1.html。本來還不覺得有此需要,後來發現有時候想找某些…

  62. freecia Says:

    Can you tell me a bit about the performance of the sideblog? If I update my sideblog (say with kadyellebee.com’s winamp hoverable playlist), does it force the main blog in which the sideblog is embedded to rebuild? I’m trying to speed up my posting time as it can take 60+ seconds to make a post.

  63. Bloggie Broad Says:
    Bloggie Scripty Reverb
    BB’s Script, Plugin and Hack Archive as of 3/1/04: Collapse…

  64. Sideblog Says:
    How to make a sideblog
    scriptygoddess…

  65. Bloggie Broad Says:
    Sideblog: My Version
    I discovered at least four or five different ways to…

  66. Code Novice Says:
    Sideblog: My Version
    I discovered at least four or five different ways to…

  67. .:: I am Janine's Blog ::. Says:
    Navbar Updates
    Just some website updates….

  68. Janine's Blog Says:
    Navbar Updates
    Just some website updates….

  69. caffeinelinks Says:
    content management through MT: my bookmarks
    I am fascinated by the idea of using MT as a full content management system, and therefore using it to…

  70. TooMuchSexy.links Says:
    Create your own Sideblog
    Roll your own Sideblog — ScriptGoddess never fails at providing the simplest means to add features to Movable Type….

  71. عصرجديد Says:
    يک لينکدونی خيلی ساده با MT
    درست کردن لینکدونی برای وبلاگ راههای مختلفی دارد ولی یکی از راحتترین روشهای آن استفاده از Server Side Include یا SSI است. حقیقتش تا دیروز از روشی Ú©Ù‡ د…

  72. Living Dead Girl Says:
    Sideblog
    Creating a Sideblog…

  73. Living Dead Girl Says:
    Sideblog
    Creating a Sideblog…

  74. Tasks Says:
    Sideblog
    Creating a Sideblog…

  75. Tutorials Says:
    Scripty Goddess :: Sideblog
    Creating a Sideblog…

  76. Divine Reality Says:
    Geeks in luuuuuuuurve!
    Me geeking it up on Jimbo’s PC in his spare room. I was playing with sideblogs. Jimbo was geeking it up in the living room, comfy on his recliner, with his laptop on a chair in front of him, the…

  77. Paul Randall Says:

    How can I make my main index page a .php without making all my archives .php. I ask because it seems a waste of server resources to have all my pages parsed by php when all I want is the index so I can do this sideblog thing.

    The only place I see to change the extension is under archives in the preferences page.

    What am I missing?

    TIA

  78. hibi Says:
    Sideblog
    恩師ページにミニ掲示板(実は別blog、21コ目)を付けるというblog移行時か…

  79. Tom Keating Says:

    The advantage of a separate blog for links is that sideblog entries don’t show up in your blog’s search engine when people perform a search and they don’t show up in your RSS feed. Both of these can either be a good or bad thing depending on what you want.

    Personally, I’d rather that sideblog entries not bother my RSS subscribers since it has minimal content and input from me.

    though they may be a way to exclude this content from the RSS feed using the MTExCat plugin. If so, let me know.