// for every certain number of posts, gain a point
if ($vboptions['pcpower'])
{
$postfactor = intval($post['posts'] / $vboptions['pcpower']);
}
else
{
$postfactor = 0;
}
// for every certain number of reputation points, gain a point
if ($vboptions['kppower'])
{
$reputationfactor = intval($post['reputation'] / $vboptions['kppower']);
}
else
{
$reputationfactor = 0;
}
// for every certain number of days registered, gain a point
$timepassed = intval((TIMENOW - $repjoindate) / 86400);
if ($vboptions['rdpower'])
{
$timefactor = intval($timepassed / $vboptions['rdpower']);
}
else
{
$timefactor = 0;
}
// compute the user's total reputation power
$score = $score + $postfactor + $timefactor + $reputationfactor;
# the following only matters for admin
$perms = fetch_permissions(0, $post['userid'], $post);
if ($perms['adminpermissions'] & CANCONTROLPANEL AND $vboptions['adminpower'])
{
$score = $vboptions['adminpower'];
}
else if (($post['posts'] < $vboptions['minreputationpost']) OR ($post['reputation'] < $vboptions['minreputationcount']))
{
$score = 0;
}
#####
I have only found 4 or 5 users that get the 0 power level. From looking at their profiles I still cannot see anything different that would set them apart. Totally wierd.
In the admincp they have proper power ratings...I swear to god!
I have only found 4 or 5 users that get the 0 power level. From looking at their profiles I still cannot see anything different that would set them apart. Totally wierd.
In the admincp they have proper power ratings...I swear to god!
Then that's even stranger, if there is no pattern with the ones with 0 power level. Does it show 0 power level for them in all their posts?
Yes. I'm still looking and don't see what it could possibly be. Some of the users affected are old members some are new. Seems to be no pattern and I even changed some of their user options that would effect this, ie: post count, joindate, rep score. Very bizarre.
Did you manage to get on my forum and see the problem for yourself? I made you an account and PM'ed the details.
Yes. I'm still looking and don't see what it could possibly be. Some of the users affected are old members some are new. Seems to be no pattern and I even changed some of their user options that would effect this, ie: post count, joindate, rep score. Very bizarre.
Did you manage to get on my forum and see the problem for yourself? I made you an account and PM'ed the details.
It looks strange, I mean there is no (obvious) pattern. Possibly additional usergroups, etc. affecting it? Strange, very strange indeed
I have also found a second bug. When you look at your private messages the Repuation Power text does not show up. I will attach an image so you can see what I mean.
I have also found a second bug. When you look at your private messages the Repuation Power text does not show up. I will attach an image so you can see what I mean.
Change the new phrase type from Show Thread to Global type
Wow I still have no idea what could be causing the 0 to show up under some (4) users Rep Power scores. Seems to be only these 4 users in the group I created. It's baffling because in the admincp the proper score is displayed. I have gone into the database and compared 2 users: 1 who is working peoperly and 1 who isn't. I don't see any clues or indicators as to what it could be.
You might have it set so that a user has to post 50 messages to have their power work and they have less than 50 posts. I'm pretty sure it's something like this. Check your Reputation settings.