Remove Negative Votes From Statistics

Go down

Solved Remove Negative Votes From Statistics

Post by inallsorts on Wed 24 Dec 2014 - 8:21

Greetings everyone,

As the topic's title reads, 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.

Here's a pic:



I'm running phpBB3.
Thanks In advance for all help given.


Last edited by inallsorts on Wed 24 Dec 2014 - 12:39; edited 1 time in total

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by Ange Tuteur on Wed 24 Dec 2014 - 8:50

Hello @inallsorts,

Go to Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In all the pages
Paste the code below and submit :
Code:
/\/u\d+stats/.test(window.location.pathname) && $(function() { $('.stats-field.genmed li:contains(Negative votes)').remove() });
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by inallsorts on Wed 24 Dec 2014 - 12:37

@Ange Tuteur wrote:Hello @inallsorts,

Go to Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In all the pages
Paste the code below and submit :
Code:
/\/u\d+stats/.test(window.location.pathname) && $(function() { $('.stats-field.genmed li:contains(Negative votes)').remove() });

Once again, absolutely perfect Ange. Of course, I didn't expect anything less.

Thank you kindly.
/Topic.

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by Ange Tuteur on Wed 24 Dec 2014 - 12:40

You're welcome ^^

Topic archived

Have a nice holiday. Smile
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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