[wp-hackers] bypostauthor class disappears on comments page

Chip Bennett chip at chipbennett.net
Wed Apr 13 11:04:44 UTC 2011


WordPress only has one method of login. One does not "log in" via the
comments form.

If the comments form presents the author fields (Name, Email, Website), then
the current user isn't logged in; otherwise, the comment form would consist
solely of the comment textarea.

The Gravatar comes from email alone. If the user provides the same email in
the comment form as the one configured in that user's profile, the Gravatar
will be the same.

Chip

On Tue, Apr 12, 2011 at 10:03 PM, RePost <repost_08 at yahoo.com> wrote:

> Chip. Very astute, and thanks!
>
> I've let the site author know she must log in via admin before addressing
> her audience via the comments form.
>
> This must be a common problem for unsophisticated users. The admin doesn't
> know any different, because WordPress recognizes her Gravatar both from the
> admin page and the comments page, even though she's logging in two different
> ways. I wonder if WP could be made to recognize the two different states and
> serve up the bypostauthor class in each case?
>
>
>
>
>
> On 4/12/11 9:19 PM, Chip Bennett wrote:
>
>> It appears you posted those comments while not logged in to your site.
>> Notice the differences in the classes assigned to your last .bypostauthor
>> comment, and your first non-.bypostauthor comment:
>>
>> .bypostauthor:
>>
>> comment byuser comment-author-kathysena bypostauthor odd alt thread-even
>> depth-1
>>
>>
>> not .bypostauthor:
>>
>> comment even thread-odd thread-alt depth-1
>>
>>
>> Try logging into your site again?
>>
>> Chip
>>
>> On Tue, Apr 12, 2011 at 9:10 PM, RePost<repost_08 at yahoo.com>  wrote:
>>
>>  I have .bypostauthor set to provide a tan background color to the
>>> author's
>>> comments. Seemed to be working, until it wasn't.
>>>
>>> As you can see in this thread, the .bypostauthor class goes away sometime
>>> after about about noon today. I didn't make any changes to the stylesheet
>>> and I've tried disabling plugins, but can't pinpoint the cause. Same with
>>> the other comments page on this new blog.
>>>
>>> http://bit.ly/fM0jhO
>>>
>>> My styles for .bypostauthor:
>>> ol.commentlist li.bypostauthor { background:#ebc094 !important; }
>>> ol.commentlist li.comment ul.children li.bypostauthor {
>>> background:#ebc094
>>> !important; }
>>>
>>> I would appreciate any suggestions!
>>>
>>> Thanks.
>>>
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list