Removing negative Votes from Profile Statistics in phpBB3

Go down

Completed Removing negative Votes from Profile Statistics in phpBB3

Post by Bpoetic on 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 . . .



Thanks for your help,

Bpoetic


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

Female Posts : 592
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 on 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]);
  }
 }
 });
}
avatar
LGforum
Hyperactive

Male Posts : 2263
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

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

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

Female Posts : 592
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 on March 12th 2012, 9:35 pm

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

Male Posts : 2263
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

Post by Bpoetic on 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!

avatar
Bpoetic
Forumember

Female Posts : 592
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 on March 12th 2012, 9:59 pm

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

Male Posts : 2263
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Completed Re: Removing negative Votes from Profile Statistics in phpBB3

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

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

Female Posts : 592
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 on March 13th 2012, 9:30 am

I'll give that code a try LG. I'll let you know if it works for me.
avatar
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


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