• Resolved docteurdread

    (@docteurdread)


    Hi !
    I created a blog and I use this great plugin for the comments. All is ok but I just want to have a different background-color for the ranks.

    You can see here that a member and an admin have the same color: red, that I set in the settings of plugin. But I want a different color for the members: green.

    Picture !

    Thanks a lot !

    https://wordpress.org/plugins/wpdiscuz/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi
    You can set those putting this JS in footer.php of your current active theme.

    <script type="text/javascript">
        $(".wc-comment-label:contains('Guest')").css('background-color', 'blue');
        $(".wc-comment-label:contains('Member')").css('background-color', 'red');
        $(".wc-comment-label:contains('Admin')").css('background-color', 'green');
    </script>
    Plugin Author AdvancedCoding

    (@advancedcoding)

    Hi docteurdread,
    We have just released new version of wpDiscuz, you could set different colors by ranks via Custom CSS Code in options page like this:

    #wpcomm .wc-blog-admin{ background: #f00; }
    #wpcomm .wc-post-author{ background: #f00; }
    #wpcomm .wc-blog-member{ background: #f00; }
    #wpcomm .wc-blog-guest{ background: #f00; }

    Please, update.

    orgi

    (@orgi)

    HellO!
    Love ur plagin so much, but still got this issue with admin post background color.
    Ive updted, but this code

    #wpcomm .wc-blog-admin{ background: #f00; }
    #wpcomm .wc-post-author{ background: #f00; }
    #wpcomm .wc-blog-member{ background: #f00; }
    #wpcomm .wc-blog-guest{ background: #f00; }

    still doesnt work, even if to put to css file.
    What could be wrong?

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi orgi,
    Please try with “!important”:

    #wpcomm .wc-blog-admin{ background: #f00!important; }
    #wpcomm .wc-post-author{ background: #f00!important; }
    #wpcomm .wc-blog-member{ background: #f00!important; }
    #wpcomm .wc-blog-guest{ background: #f00!important; }

    Put this code in Dashboard > wpDiscuz > Background and Colors Tab in the “Custom CSS Code” textarea.

    orgi

    (@orgi)

    Hello!
    Thnx for quick resnond, but still not working
    http://i.imgur.com/L2IIPrn.png
    and the result is the same

    View post on imgur.com

    Plugin Author gVectors Team

    (@gvectors-team)

    Have you removed the Javascript I given you here: https://wordpress.org/support/topic/different-color-for-rank?replies=5#post-6688148
    If you don’t, just remove it.

    Also try this:

    #wpcomm .wc-blog-admin{ background-color: #f00!important; }
    #wpcomm .wc-post-author{ background-color: #f00!important; }
    #wpcomm .wc-blog-member{ background-color: #f00!important; }
    #wpcomm .wc-blog-guest{ background-color: #f00!important; }

    If this doesn’t help, leave some example URL. It seems you have some css which conflicts with wpDiscuz.

    Plugin Author gVectors Team

    (@gvectors-team)

    Wait a minute!

    But you were talking about different background-color for the ranks. Why you’re showing Usernames? We are trying to set diff backgrounds for user ranks not for username.

    Plugin Author gVectors Team

    (@gvectors-team)

    I’m sorry but there is not any way to set different font-colors for different usernames. That’s impossible. It’s only possible with User ranks/labels/badges.

    orgi

    (@orgi)

    Yes Im talking abt background, I just underlined the admin, hes still has the same bg as the others(

    Plugin Author gVectors Team

    (@gvectors-team)

    We were talking about User ranks/labels/badges background color
    Screenshot: http://screencast.com/t/rOIdEY2hPMg6

    As far as I see you want to change whole comment background. I’m sorry but there is not a way to set different bg color of admins yet. We’ll add some classes in future releases.

    orgi

    (@orgi)

    Oh, I see. Sorry for missunderstanding! Again thnx for ur plagin!
    good luck!

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi orgi,
    Please update wpDiscuz to 2.2.2. With this version you can use this css code:

    #wpcomm .wc-blog-admin .wc-comment-right{ background-color: #f00!important; }
    #wpcomm .wc-post-author .wc-comment-right{ background-color: #f00!important; }
    #wpcomm .wc-blog-member .wc-comment-right{ background-color: #f00!important; }
    #wpcomm .wc-blog-guest .wc-comment-right { background-color: #f00!important; }

    HellO!

    Thnx so much! It works right now))

    Plugin Author gVectors Team

    (@gvectors-team)

    You’re welcome!
    Hope you’ll leave some good comment on wpDiscuz plugin review section.

    I did))) Thnx fo r the great job!

    But I faced up with another issue))) All the responses to the post author come in the same color.

    View post on imgur.com

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Different color for rank’ is closed to new replies.