Help - Search - Members - Calendar
Full Version: Space below date and entry
Movable Type Community Forum > Additional Resources > Tips and Tricks
beck
Under the date there is a huge gap, and under the entries there are huge gaps. I would like to put the date on the same line as the entry, along with the link to comments, so that it makes one large paragraph.

This is how they are now:

Date

ENTRY BLAHBLAHBLAH

Comments

I would like to have mine like this:

Date ENTRY BLAHBLAHBLAH Comments

Anybody know how to do this? Thanks.  :)
kadyellebee
The easiest answer is to turn off "Convert Line Breaks".  That will allow you to have the items on the same line.  Other alternatives will reduce the amt. of space between them, but not take the line break out.  The format_breaks plugin might also work for you. smile.gif

Kristine
beck
You are a layout-saver! biggrin.gif  :D  :D  :D  :D
Belle
I'm having a similar issue on my site,Invisible Ink, but it's in the sidebar where I insert recent comments.  I'm trying to reduce (or remove!) the line breaks between the comment author and the comment body, as well as between the comment body and the entry link.  Right now I use the following code:
CODE
<div class="side">
<MTComments lastn="2" sort_order="descend">
<MTCommentEntry>
<$MTCommentAuthorLink show_email="0" spam_protect="1"$>:<i><$MTCommentBody$></i><a href="<$MTEntryLink$>">(<$MTEntryTitle$>)</a>
</MTCommentEntry>
<hr />
</MTComments>
</div>


I tried turning off "Convert Line Breaks", but I saw no change.  Any ideas or hints?
girlie
There are separate Convert Breaks options in Blog Configuration | Preferences - one for entries, one for comments. Did you uncheck the one for comments (it's down under the "Comments Configuration" section)?
girlie
Or - you can write that code like this:



CODE
<div class="side">
<MTComments lastn="2" sort_order="descend">
<MTCommentEntry>
<$MTCommentAuthorLink show_email="0" spam_protect="1"$>:<i><$MTCommentBody convert_breaks="1"$></i><a href="<$MTEntryLink$>">(<$MTEntryTitle$>)</a>
</MTCommentEntry>
<hr />
</MTComments>
</div>


That applies the convert_breaks option only to that instance of the tag.
Belle
Thanks, girlie, I didn't catch the "Convert Line Breaks" in the comment section.  I tried both methods, and neither one works.  I'm guessing it is inherent formatting in the MT tags.

My only other thought is to try assigning an inline style to those particular comment tags, but in all honestly, I'm afraid of scary code.  Thanks for the suggestions.
Belle
Success!  I was finally able to work around the formatting issue by using the FirstNWords Plugin.  This is how the code currently reads:
CODE
<MTComments lastn="3" sort_order="descend">
<div class="side">
<MTCommentEntry>
<span class="author"><$MTCommentAuthorLink show_email="0" spam_protect="1"$></span>:
<MTFirstNWords n="12" append="...">
<$MTCommentBody$>
</MTFirstNWords>
<a href="<$MTEntryLink$>">(<$MTEntryTitle$>)</a>
</MTCommentEntry>
</div>
</MTComments>


It works like a charm.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.