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.

Remove Negative Votes From Statistics

2 posters

Go down

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
smejker
smejker
Forumember

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

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

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

Forum link?
avatar
Guest
Guest


Back to top Go down

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

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by smejker June 26th 2017, 9:17 am

Nothing...???
smejker
smejker
Forumember

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

Back to top Go down

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();
});
avatar
Guest
Guest


Back to top Go down

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
smejker
smejker
Forumember

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

Back to top Go down

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.
avatar
Guest
Guest


Back to top Go down

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
smejker
smejker
Forumember

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

Back to top Go down

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).
avatar
Guest
Guest


Back to top Go down

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
Draxion
Draxion
Helper
Helper

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

https://www.talesoftellene.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum