Whitespace Themed Habari

5 views
Skip to first unread message

Tatsui

unread,
Mar 25, 2009, 9:23:32 AM3/25/09
to habari-users
Hi,

I've been running habari for a few months already and love the ease of
it. I have some coding background and can get into the codes to figure
out what does what, but for whatever reason I can't find a way to
correct multiple entries on one page.

For instance, if I were to select more than 1 entry to be shown per
page, the first (latest) entry will be shown at top with the correct
CSS styles (font, paragraph spacing, line height, etc...) but then the
rest of the entries are not formated in the same way (no CSS style
applied).

Where in the codes can I modify to allow me to show multiple entries
with CSS styles applied to all?

I appreciate any assistance. Thank you.

I'll include my link to show what I'm referring to.

http://www.tatsuidesign.com/habari

Jeff

DazzlinDonna

unread,
Mar 25, 2009, 9:32:33 AM3/25/09
to habari-users
I believe it is because the succeeding posts are not wrapped in
paragraph tags <p></p>. Make sure each post is within p tags and it
should fix itself.

Tatsui

unread,
Mar 25, 2009, 11:10:08 PM3/25/09
to habari-users
Hi Dazzlin' D,

I noticed that the succeeding posts were not between <p> tags however
do not know where or how to have them tagged automatically. I notice
the top posts of each page is formatted when viewing source and are
embedded with the <p> tags. I tried looking into each and every php
file to see where I can modify this but to no avail.

Additionally as I'm leaving my blog as is right now for reference, I
just saw on page two, the bottom 2 posts are definitely formatted out
of sync! No other pages are looking like that except for the current
issue I have of having them in sync. Why are those 2 the only posts
that are not formatted like the top post and is styled entirely
different than the others?

I hope I didn't change some CSS settings in my style.css when I was
tweaking some things.

Much appreciate the assistance on this forum.

Thanks
Jeff

DazzlinDonna

unread,
Mar 25, 2009, 11:16:42 PM3/25/09
to habari-users
Guessing here: In your theme, perhaps entry.multiple.php? (Someone
with more experience than me might know better).

Andy C

unread,
Mar 26, 2009, 5:29:47 AM3/26/09
to habari-users
Jeff

I ported Brian Gardner's Whitespace theme but don't know any PHP or
CSS.

It may well be a bug in the theme although I have tried and failed to
reproduce the issue (two most recent entries do not have any paragraph
tags).

http://nbrightside.com/sandpit/

I suspect you may have modified the CSS with unexpected results.
--
Andy

Josh Wood

unread,
Mar 26, 2009, 3:04:56 PM3/26/09
to habari-users
Tatsui:

If you'd post your theme.php & home.php files to pastoid.com or a
similar place, we can probably be of more help. It seems from blackbox
guess that you have modified your filters or posts loops such that
autop is only happening for the first post.

-Josh

Josh Wood

unread,
Mar 26, 2009, 3:30:43 PM3/26/09
to habari-users
Nevermind request for a code sample. I think the http://nbrightside.com/sandpit/
test area actually *does* display the bug. Posts subsequent to the
first do not have surrounding <p>. So I grabbed the default source
from andyc.

I think this is due to the design of the theme as explained by this
comment in theme.php:
"// Limit post length to 1 paragraph or 100 characters. As currently
implemented
// in home.php and entry.multiple.php, the first post will be
displayed in full
// and subsequent posts will be excerpts. search.php uses excerpts for
all posts.
// Comment out this line to have full posts."

Every post but the first post in _out'd with content_excerpt, rather
than content_out. However, the instruction to "comment out this line"
to change the behavior won't work, exactly, because then entry.php
will be making calls to a content_excerpt that does not exist.

What I did was apply autop to post_content_excerpt in theme.php:28,
like so:

Format::apply('autop', 'post_content_excerpt');

This applies autop to posts after the first one on home.php and
entry.multiple views.

HTH -

-Josh

Andy C

unread,
Mar 27, 2009, 4:31:23 AM3/27/09
to habari-users
Thanks Josh

I find it inconsistent that 'echo $post->content_out;' is passed
through the autop filter whereas 'echo $post->content_excerpt;'
doesn't.

Andy


On Mar 26, 7:30 pm, Josh Wood <jos...@gmail.com> wrote:
> Nevermind request for a code sample. I think thehttp://nbrightside.com/sandpit/

Michael Harris

unread,
Mar 27, 2009, 4:43:38 AM3/27/09
to habari...@googlegroups.com
2009/3/27 Andy C <andy...@gmail.com>:

>
> Thanks Josh
>
> I find it inconsistent that 'echo $post->content_out;' is passed
> through the autop filter whereas 'echo $post->content_excerpt;'
> doesn't.

Line 14 of theme.php in the whitespace theme is
Format::apply( 'autop', 'post_content_out' );

That tells habari to pass $post->content_out through the autop
formatter. There is no equivalent call for $post->content_excerpt.

The theme is just doing what it's told.

--
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari

Andy C

unread,
Mar 27, 2009, 6:36:02 AM3/27/09
to habari-users
Oh - that's OK then. Completely consistent. My bad (as my kids say).

In order to absolve myself of all responsibility, I now pass blame to
that pesky elephant in the corner of the room and the original author
of the wonderful Connections theme port who was unknowingly the father
of so much of Whitespace which was born using the latest IVF
techniques and blind plagiarism.

Andy

On Mar 27, 8:43 am, Michael Harris <michael.twof...@gmail.com> wrote:
> 2009/3/27 Andy C <andyc...@gmail.com>:

Michael Harris

unread,
Mar 27, 2009, 8:27:24 AM3/27/09
to habari...@googlegroups.com
2009/3/27 Andy C <andy...@gmail.com>:

> On Mar 27, 8:43 am, Michael Harris <michael.twof...@gmail.com> wrote:
>> 2009/3/27 Andy C <andyc...@gmail.com>:
>>

>> > I find it inconsistent that 'echo $post->content_out;' is passed
>> > through the autop filter whereas 'echo $post->content_excerpt;'
>> > doesn't.
>>
>> Line 14 of theme.php in the whitespace theme is
>> Format::apply( 'autop', 'post_content_out' );
>>
>> That tells habari to pass $post->content_out through the autop
>> formatter. There is no equivalent call for $post->content_excerpt.
>>
>> The theme is just doing what it's told.
>

> Oh - that's OK then. Completely consistent. My bad (as my kids say).
>
> In order to absolve myself of all responsibility, I now pass blame to
> that pesky elephant in the corner of the room and the original author
> of the wonderful Connections theme port who was unknowingly the father
> of so much of Whitespace which was born using the latest IVF
> techniques and blind plagiarism.

/me whistles VERY loudy.


--

Reply all
Reply to author
Forward
0 new messages