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.

Removing negative Votes from Profile Statistics in phpBB3

View previous topic View next topic 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: http://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

Bpoetic
Forumember

Female Posts : 584
Reputation : 44
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]);
  }
 }
 });
}

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
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!

Bpoetic
Forumember

Female Posts : 584
Reputation : 44
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'

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
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!


Bpoetic
Forumember

Female Posts : 584
Reputation : 44
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.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
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?

Bpoetic
Forumember

Female Posts : 584
Reputation : 44
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.

Neymar1
Forumember

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

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