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

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

http://smejker@yahoo.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by Justice™ on June 23rd 2017, 1:52 pm

Forum link?
avatar
Justice™
Forumember

Posts : 514
Reputation : 117
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by smejker on June 24th 2017, 7:51 am

Here is it:

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

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

http://smejker@yahoo.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

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

Nothing...???
avatar
smejker
Forumember

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

http://smejker@yahoo.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by Justice™ on 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
Justice™
Forumember

Posts : 514
Reputation : 117
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by smejker on June 26th 2017, 8:23 pm

Thanks @Wolfuryo, but not work...

See image:

avatar
smejker
Forumember

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

http://smejker@yahoo.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by Justice™ on June 26th 2017, 8:33 pm

My code is working as it should(tested in the console):

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
Justice™
Forumember

Posts : 514
Reputation : 117
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by smejker on June 26th 2017, 8:57 pm

Thanks @Wolfuryo,

I sent you PM with name & pass

Respect!

EDIT: @Wolfuryo Beer



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

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

http://smejker@yahoo.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by Justice™ on 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
Justice™
Forumember

Posts : 514
Reputation : 117
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: Remove Negative Votes From Statistics

Post by Draxion on June 26th 2017, 10:15 pm

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


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1696
Reputation : 223
Language : English
Location : USA

http://www.draxionsgameden.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