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:
<MTEntryIfAllowComments>
<?
if (<$MTEntryCommentCount$> > 0) {
?>
*** put all your current code here ***
<? } ?>
</MTEntryIfAllowComments>
I'm not sure where I first saw this, but I think it was either Jennifer or Girlie...




Comments (5)
Yep. Since I'm not php, I c... (Below threshold)1. Posted by James Joyner | January 14, 2004 11:00 PM | Score: 0 (0 votes cast)
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. . .
1. Posted by James Joyner | January 14, 2004 11:00 PM |
Score: 0 (0 votes cast)
Posted on January 14, 2004 23:00
2. Posted by King of Fools | January 15, 2004 1:18 AM | Score: 0 (0 votes cast)
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).
2. Posted by King of Fools | January 15, 2004 1:18 AM |
Score: 0 (0 votes cast)
Posted on January 15, 2004 01:18
3. Posted by Val Prieto | January 15, 2004 9:12 AM | Score: 0 (0 votes cast)
English please!
3. Posted by Val Prieto | January 15, 2004 9:12 AM |
Score: 0 (0 votes cast)
Posted on January 15, 2004 09:12
4. Posted by Morgan | January 18, 2004 5:58 PM | Score: 0 (0 votes cast)
Thanks so much for sharing your secret. It worked like a charm!
4. Posted by Morgan | January 18, 2004 5:58 PM |
Score: 0 (0 votes cast)
Posted on January 18, 2004 17:58
5. Posted by Christian | February 2, 2004 10:24 PM | Score: 0 (0 votes cast)
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.
regards,
Chris
5. Posted by Christian | February 2, 2004 10:24 PM |
Score: 0 (0 votes cast)
Posted on February 2, 2004 22:24