« GFK | Main | Calgon Take Me Away »

Mailbag - Comment Blocks

From the mailbag: I was wondering if you could tell me how you made your inline comments? The link you have from ScriptyGoddess has changed and shows it as expandable links. I like your style better, where each comment is in its own separate box.

I use Jennifer's original code verbatim. That code has since been completely updated here, but for my purposes the old code is working fine. Since I run PHP pages I can do a conditional check for comments > 0 and show the inline display only if there are comments.

The box is just blockquote formating, which merely entails enclosing each individual comment in blockquote tags. If you look at a post where I do a blockquote you'll note that it's the same style.

To get the same effect in for your comments put the <blockquote> right after <MTComment> and put </blockquote> right before </MTComment>. Of course if your stylesheet doesn't have blockquote defined, or it's not boxed like mine, then you will need to work on your style sheet first.

In case you were wondering how to do the conditional "Show Comments Here" text, here is the code you can use if (and only if) you are using PHP pages for your MT site:

if (<$MTEntryCommentCount$> > 0) {

*** put all your current code here ***

<? } ?>

I'm not sure where I first saw this, but I think it was either Jennifer or Girlie...


Listed below are links to weblogs that reference Mailbag - Comment Blocks:

» Rambling Webgirl linked with Link Love

» DramaQueen linked with i've been a'tweakin'

» DramaQueen linked with i've been a'tweakin'

Comments (5)

Yep. Since I'm not php, I c... (Below threshold)

Yep. Since I'm not php, I can't do the "check for comments" thing but I did quite a bit of format tweaking of the code, too. If *I* can do it with my coding skills. . .

There is also a MT Plugin (... (Below threshold)

There is also a MT Plugin (MTEntryIfComments) which provides MT Tags to do the same thing (helpful if you don't know PHP or are not using PHP pages).

English please!... (Below threshold)

English please!

Thanks so much for sharing ... (Below threshold)

Thanks so much for sharing your secret. It worked like a charm!

Morgan, Do I know yo... (Below threshold)

Morgan, Do I know you?
Have you ever been to St Louis?
If yes, hit me up on ICQ: 136547585.
If not - sorry you just remind me of someone.






Follow Wizbang

Follow Wizbang on FacebookFollow Wizbang on TwitterSubscribe to Wizbang feedWizbang Mobile


Send e-mail tips to us:

[email protected]

Fresh Links


Section Editor: Maggie Whitton

Editors: Jay Tea, Lorie Byrd, Kim Priestap, DJ Drummond, Michael Laprarie, Baron Von Ottomatic, Shawn Mallow, Rick, Dan Karipides, Michael Avitablile, Charlie Quidnunc, Steve Schippert

Emeritus: Paul, Mary Katherine Ham, Jim Addison, Alexander K. McClure, Cassy Fiano, Bill Jempty, John Stansbury, Rob Port

In Memorium: HughS

All original content copyright © 2003-2010 by Wizbang®, LLC. All rights reserved. Wizbang® is a registered service mark.

Powered by Movable Type Pro 4.361

Hosting by ServInt

Ratings on this site are powered by the Ajax Ratings Pro plugin for Movable Type.

Search on this site is powered by the FastSearch plugin for Movable Type.

Blogrolls on this site are powered by the MT-Blogroll.

Temporary site design is based on Cutline and Cutline for MT. Graphics by Apothegm Designs.

Author Login

Terms Of Service

DCMA Compliance Notice

Privacy Policy