The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Remove Negative Votes From Statistics

View previous topic View next topic Go down

Solved Remove Negative Votes From Statistics

Post by inallsorts on December 24th 2014, 8:21 am

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 December 24th 2014, 12:39 pm; 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 December 24th 2014, 8:50 am

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

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by inallsorts on December 24th 2014, 12:37 pm

@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 December 24th 2014, 12:40 pm

You're welcome ^^

Topic archived

Have a nice holiday. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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