WordPress.org

Ready to get started?Download WordPress

Forums

Storing user ID in comments (3 posts)

  1. Echo
    Member
    Posted 9 years ago #

    I looked through the WP SQL database, and I see that there is a field for user_id in in the wp_comments table. But it's always set to 0 for all comments, even my own when I write them while logged in. (recent WP 1.5 nightly)

    Is there a way to store the user ID in the comment table? I'd like to use that to style comments differently without having to resort to matching the user's email.

  2. gb_
    Member
    Posted 9 years ago #

    i'd like to do this as well, if only to style the comments by the site admin (ie, me). I have been doing it via a rather backward combo of CSS and the id returned by my gravatar id (so as not to leave any emails in the markup)... which doesn't work in IE (as IE doesn't understand partial attribute value selectors in CSS2).

  3. gb_
    Member
    Posted 9 years ago #

    okay... found a plugin to help out:

    http://inner.geek.nz/archives/2005/01/12/wp-plugin-official-comments/

    does exactly what i wanted. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.