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.
The forum of the forums
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 June 23rd 2017, 1:07 pm

    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 June 26th 2017, 9:23 pm; edited 1 time in total
    avatar
    Guest
    Guest


    Solved Re: Remove Negative Votes From Statistics

    Post by Guest June 23rd 2017, 1:52 pm

    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 June 24th 2017, 7:51 am

    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 June 26th 2017, 9:17 am

    Nothing...???
    avatar
    Guest
    Guest


    Solved Re: Remove Negative Votes From Statistics

    Post by Guest June 26th 2017, 7:08 pm

    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 June 26th 2017, 8:23 pm

    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 June 26th 2017, 8:33 pm

    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 June 26th 2017, 8:57 pm

    Thanks @Wolfuryo,

    I sent you PM with name & pass

    Respect!

    EDIT: Remove Negative Votes From Statistics 4032543900 @Wolfuryo Beer



    Last edited by smejker on June 26th 2017, 9:23 pm; edited 1 time in total
    avatar
    Guest
    Guest


    Solved Re: Remove Negative Votes From Statistics

    Post by Guest June 26th 2017, 9:18 pm

    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 June 26th 2017, 10:15 pm

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

      Current date/time is September 23rd 2024, 3:32 am