Remove Negative Votes From Statistics Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
2 posters

    Remove Negative Votes From Statistics

    smejker
    smejker
    Forumember


    Male Posts : 167
    Reputation : 4
    Language : serbo-croatian/english/macedonian/bulgarian

    Solved Remove Negative Votes From Statistics

    Post by smejker Fri 23 Jun - 13:07

    Hi,

    I wish to remove the "Negative votes" located In the Statistics Tab of the user profile. This applies to both "Negative votes received" & "Negative votes given".
    I have Implemented a Likes functionality, whereby the Negative feature Is not enabled In posts.

    I read this topic, and I put this code in CSS

    Code:
            /* removal of profile stats */
            .stats-field:first-child li:nth-child(3), /* negative votes */
            .stats-field:first-child li:nth-child(6), /* negative votes given */
            .stats-field:first-child li:nth-child(7) /* thanks given */
            {
              display:none;
            }

    but Negative votes is still there... I tried and with @Ange Tuteur script:

    Code:
            /\/u\d+stats/.test(window.location.pathname) && $(function() { $('.stats-field.genmed li:contains(Negative votes)').remove() });

    but... nothing change...

    phpBB3.
    Thanks In advance for all help given.


    Last edited by smejker on Mon 26 Jun - 21:23; edited 1 time in total
    avatar
    Guest
    Guest


    Solved Re: Remove Negative Votes From Statistics

    Post by Guest Fri 23 Jun - 13:52

    Forum link?
    smejker
    smejker
    Forumember


    Male Posts : 167
    Reputation : 4
    Language : serbo-croatian/english/macedonian/bulgarian

    Solved Re: Remove Negative Votes From Statistics

    Post by smejker Sat 24 Jun - 7:51

    Here is it:

    Code:
    http://yugo.forum.st/
    smejker
    smejker
    Forumember


    Male Posts : 167
    Reputation : 4
    Language : serbo-croatian/english/macedonian/bulgarian

    Solved Re: Remove Negative Votes From Statistics

    Post by smejker Mon 26 Jun - 9:17

    Nothing...???
    avatar
    Guest
    Guest


    Solved Re: Remove Negative Votes From Statistics

    Post by Guest Mon 26 Jun - 19:08

    Hi,

    Add this JS code with placement on all pages:
    Code:
    $(function(){
    if(!/u\d+stats/.test(window.location.pathname)) return;
    var elem=$("li:contains('Negative votes')");
    elem.remove();
    });
    smejker
    smejker
    Forumember


    Male Posts : 167
    Reputation : 4
    Language : serbo-croatian/english/macedonian/bulgarian

    Solved Re: Remove Negative Votes From Statistics

    Post by smejker Mon 26 Jun - 20:23

    Thanks @Wolfuryo, but not work...

    See image:

    Remove Negative Votes From Statistics Untitl10
    avatar
    Guest
    Guest


    Solved Re: Remove Negative Votes From Statistics

    Post by Guest Mon 26 Jun - 20:33

    My code is working as it should(tested in the console):
    Remove Negative Votes From Statistics Screen11
    The problem is that you have an error in one of your javascripts that prevents my code or any other code from working. It has to do with the toolbar from what I can see. You should remove that code and my code should work. If you can't find it, pm me an account with administrator(not necessary founder) access so that I can solve the issue for you.
    smejker
    smejker
    Forumember


    Male Posts : 167
    Reputation : 4
    Language : serbo-croatian/english/macedonian/bulgarian

    Solved Re: Remove Negative Votes From Statistics

    Post by smejker Mon 26 Jun - 20:57

    Thanks @Wolfuryo,

    I sent you PM with name & pass

    Respect!

    EDIT: Remove Negative Votes From Statistics 4032543900 @Wolfuryo Beer



    Last edited by smejker on Mon 26 Jun - 21:23; edited 1 time in total
    avatar
    Guest
    Guest


    Solved Re: Remove Negative Votes From Statistics

    Post by Guest Mon 26 Jun - 21:18

    Hi,

    I received your PM. The problem should be solved now. You had 2 javascripts with problems(I deleted one of them because it was html code into a javascript file. The other one is deactivated).
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Remove Negative Votes From Statistics

    Post by Draxion Mon 26 Jun - 22:15

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules