Recent Changes - Search:

SimpleLog wiki

Installing SimpleLog

        MT(gs) users
        DreamHost users

Upgrading

Working with themes

How to

Troubleshooting

Development & resources

AuthorComments

Here's a way to style your own comments differently than those of site visitors:

In your theme's "views/posts/_item_detailed.rhtml" file, find the comment block beginning with:

<% for comment in post.comments -%>

Where you see:

<div class="comment_content" id="c<%= comment.id.to_s %>">

Change to the following:

<div class="comment_content<% if comment.email == post.author.email -%> author_comment<% end -%>" id="c<%= comment.id.to_s %>">

Now, when you post comments, if you enter into the comment 'email' field the same email that is specified as the author's email in Preferences, you can style those comments using

.author_comment {}

in your CSS file.

Edit - History - Print - Recent Changes - Search
Page last modified on January 08, 2008, at 12:36 PM EST