Forums

How do I add more people to have colored background comments? (1 post)

  1. sworddude247
    Member
    Posted 3 years ago #

    How do I add more people to have colored background comments?

    I currently have a code that works fanominally for changing a certain users comment background color (highlighting it). What I want to know is how do I add another user to be highlighted? Here are my current codes:

    Comments.php (for the user ID "1":

    <li class=”user_id)
    if (1 == $comment->user_id) $oddcomment = "admincomment"; echo $oddcomment;
    ?>” id=”comment-”>

    Style.css:

    .admincomment{
    background:#00FFFF;
    border:1px solid #FFFF00;
    padding:5px 0px 5px 0px;
    }

    Also, if I add another user, can they have their own backround color or will it be the same as the user ID '1'?

    Thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.