![]() |
Display Reputation Power in postbit
This hack will display each user's reputation power in their postbit.
No extra queries run and this code doesn't really add too much extra load time, maybe only 0.0000000000000001 seconds :D Very easy hack to install, 1 minute or less :D Okay let's begin :) First create a new Global phrase called reputation_power with the content Code:
Reputation Power PHP Code:
PHP Code:
PHP Code:
PHP Code:
HTML Code:
</div> HTML Code:
<if condition="$show[score]"><br />$vbphrase[reputation_power]: $score</if> |
Wow and no extra queries or serious overhead! Thanks a ton Gary!
|
No problemo :)
|
How will this look? Any screenshots?
|
One moment :)
|
Attached to first post ;)
|
I like it:)
*edit* - umm, it doesn't look like it's calculating the rep power properly. Some users (like the admins) are being calculated correctly...others, no. |
Strange! I did everything properly and have triple checked your script. I keep getting incorrect score values showing up. They do not match what is shown in the admincp. Even stranger the scores are always in the 400's. The values are always: 416, 417, 418, 419, etc. Really strange.
Did you notice the phrase name: current_reputation_power ? Maybe that helps... Let me know if you have a solution...This is a live board so I better unhack what I did here ;) |
What does Reputation Power show? The 'points' instead of the grafics?
|
There are 2 variables concerning reputation. Rep points and Rep power. The images are showing rep points. I want to show Rep power as well.
|
Quote:
|
Okay problem fixed now, I'm just updating instructions :)
|
Please update the hack on your forums to get this working properly :D
|
Argh...
Works for regular user, admins, and moderators, but not for members in the other special user group I created. They show a score of: 0. Any ideas?? Your soooo close! Thanks again :) |
Even stranger. After looking around I see that its only 'some' member of that group that get 0. Others have proper scores. I'm still looking...
|
crazy! I have no clue what is causing this. I thought that maybe it was users with show rep set to NO but that is not it either. No idea why certain user's in my created groups are showing scores of 0. It's only a few too. Like maybe 20% of them.
I would show you but the board is live and I had to turn it off to install this... |
I'll look into this when I have the chance but thanks for the bug reports guys :D
|
I see one of my users in the 'moderators' group also has a 0 rating.
UPDATE: My mistake this user is in the group I created. Disregard. |
Quote:
|
Strange I tried using a user from a usergroup that I created, but it looks fine to me.
|
Its on. Take a look if you can...
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! |
Quote:
|
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. |
Quote:
|
No additional user groups. I will keep looking.
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. |
Quote:
|
Nice :)
|
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.
|
Nope. The users affected have 1500 posts.
|
Tried moving the affected users to another usergroup but still they show Rep Power: 0.
Anyone out there installed this on a busy board with alot of members and have no troubles at all? |
Gary: Perhaps since only 3 users seem to be affected I should recreate their user accounts? Not sure how to do this without them losing their posts though which is not good. Any advice?
You can for yourself the problem with the 0 Rep Power score with the user account I created for you on my board. I pm'ed you the info so not sure if you saw it or not. |
Quote:
|
Followed your intstructions on page 1 and all mods/supermods/admins show 0. Regular members show correctly, as do members of a custom user group.
See: http://www.britishblades.com/forums/...6&page=1&pp=20 The template edit is on the "vB3 grey style" skin only, so make sure you have that selected. |
Quote:
|
No mistake. My power is currently 6, it displays as 0. I checked several mods/admins to make sure they had power, they did, it was displaying 0. If you browse the thread linked above, notice the different user groups have their names in different colours.
There is no mistake. Correction *some* mods show the power rating also some members of other user groups do not. It would appear to be random, although it does not show for any of the 3 admins, and is missing of all but 1 of the moderators. On an aside, I manually set the power rating in the ACP to 10 for admins - the hack then showed this value (for admins only, the mods still had 0 showing). I then reset it to 0 in the ACP (this should set admins to the same rules as everyone else) and the admins showed as 0 in the postbit - even though the ACP correctly showed my power as 6. |
I have similiar issues that Gary is aware of.
As a side note I have also noticed that none of my users in my created group show having incorrect values. Some as I have mentioned are 0 yet some are showing values slightly off from what is shown in the admincp. Anyways there is definately something wrong. I think I will have to uninstall this hack until someone comes up with a solution to fix this - I have spent dozens of hours trying to figure out what it could be. As a side note: I recreated an account for one of the affected users and merged his existing account with the new one. After doing this the rep power didn't display zero but it did display a value that was incorrect from what is shown in the admincp. has anyone else with a large board tested this code? Can a vb dev member shed some light as to what it could be? |
The power=0 issue seems random. I get it accross all user groups, regardless of actual power rating. Some read correctly, some just say 0. So far, I havent found a member with a value other than 0, which is also incorrect.
|
Strange that's real weird, I posted a question at vB.com about this hopefully I get a response :)
|
Hehe so did I Gary. Thanks for your attention.
|
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|