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.

Removing negative Votes from Profile Statistics in phpBB3

3 posters

Go down

Completed Removing negative Votes from Profile Statistics in phpBB3

Post by Bpoetic March 12th 2012, 8:13 pm

The title says it all. Is there a way to do this? I have a poetry forum and don't feel this is constructive. I have followed this tutorial: https://help.forumotion.com/t84472-tuesday-tip-reputation-system-only-allow-positive-votes so there will be no more negative voting, but I need to clean up a poet's personal statistics . . .

Removing negative Votes from Profile Statistics in phpBB3 Neg_vo10

Thanks for your help,

Bpoetic


Last edited by Bpoetic on March 13th 2012, 6:21 am; edited 1 time in total
Bpoetic
Bpoetic
Forumember

Female Posts : 594
Reputation : 46
Language : English
Location : Florida, USA

http://www.bpoetry.net/

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

Post by LGforum March 12th 2012, 9:01 pm

Try this in JS management:
Code:

if(/\/u\d+/.test(window.location.href)){
$(function(){
 var lis = document.getElementById('cp-main').getElementsByTagName('li');
 for(var i=lis.length-1;i>0;i--){
  if(lis[i].firstChild.innerHTML == 'Negative votes received :') {
    lis[i].parentNode.removeChild(lis[i]);
  }
  if(lis[i].firstChild.innerHTML == 'Negative votes given :') {
      lis[i].parentNode.removeChild(lis[i]);
  }
 }
 });
}
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

Post by Bpoetic March 12th 2012, 9:23 pm

Thank you LGforum! But . . . didn't work:-) Thanks for trying though!
Bpoetic
Bpoetic
Forumember

Female Posts : 594
Reputation : 46
Language : English
Location : Florida, USA

http://www.bpoetry.net/

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

Post by LGforum March 12th 2012, 9:35 pm

I've edited the code, give it another try, make sure to tick, 'In all pages'
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

Post by Bpoetic March 12th 2012, 9:49 pm

Okay, I tried. The first couple times I submitted, I realized "Enable Javascript code management" wasn't saving to yes. It is now, but the code is not working. Crying or Very sad

Thanks again LG!

Bpoetic
Bpoetic
Forumember

Female Posts : 594
Reputation : 46
Language : English
Location : Florida, USA

http://www.bpoetry.net/

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

Post by LGforum March 12th 2012, 9:59 pm

Can I take a quick look at your forum, there may be other errors preventing it from working.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

Post by Bpoetic March 12th 2012, 10:19 pm

Okay:-) I'll PM you, okay?
Bpoetic
Bpoetic
Forumember

Female Posts : 594
Reputation : 46
Language : English
Location : Florida, USA

http://www.bpoetry.net/

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

Post by Neymar1 March 13th 2012, 9:30 am

I'll give that code a try LG. I'll let you know if it works for me.
Neymar1
Neymar1
Forumember

Male Posts : 406
Reputation : 28
Language : HTML, CSS, and a bit of JavaScript
Location : Scotland

http://www.simplyfifa.com

Back to top Go down

Back to top

- Similar topics

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