View Full Version : Enhanced Reputation Given Checks
Paul M
11-28-2005, 10:00 PM
This modification is no longer available or supported.
This adds a set of extra checks for whenever members try and give reputation to posts.
Reputation Power Cap
Sets the maximum reputation giving power for any member.
Higher Reputation Forum List
Any reputation given in the forums listed will be multiplied by the "Higher Reputation Multiply Factor".
Higher Reputation Multiply Factor
See above : Forums in the "Higher Reputation Forum List" will have any reputation given multiplied by this factor.
No Reputaion Forum List
List of Forums in which members cannot give reputation to posts.
Open Threads Limit
Posts in open threads, that are older than this limit, cannot be given reputation.
Closed Threads Limit
Posts in closed threads, that are older than this limit, cannot be given reputation.
Negative Reputation Multiply Factor
All negative reputation is multiplied by this factor (by default vb sets negative reputation to half of positive reputation).
Require Reputation Comment
Members must leave a comment in order to give a post reputation.
Points to note ;
If a member does not have permission to give negative reputation then any negative reputation they give will be set to zero - in default vb they ended up giving positive reputation.
The vb fixed admin reputation setting is multiplied by the negative reputation factor - in default vb it was the same value for both positive & negative, while everyone elses negative was half the positive value.
If the negative reputation factor is 0.5 (to replicate default vb) then there will be one minor difference, a member whose positive reputation power is 1 will have a negative reputation power of 0, in default vb this would be -1.
The reputation cap is checked before any multiplication factors are applied - also the Forum Multiply and Negative Multiply are cumulative (e.g. if the cap is 40, and you have a forum multiply of 3, and a negative multiply of 2, a member could give a rep of -40 * 3 * 2 = -240).
History:
v1.04 : Initial Public Release.
v1.05 : Fixed zero reputation bug reported by sinaluna in Post #51 (https://vborg.vbsupport.ru/showpost.php?p=900411&postcount=51).
v1.06 : Minor changes, no update necessary.
AshokForums.com
11-29-2005, 04:14 AM
First install!!! Thanks.. Brilliant idea!!
_Corvin_
11-29-2005, 10:04 AM
Thanks a lot!!! This was exactly the Plugin I searched for :)
Snake
11-29-2005, 11:33 AM
Installed! :)
Paul M
11-29-2005, 11:35 AM
Installed! :)Click install then please. :)
nexialys
11-29-2005, 11:53 AM
interesting, i like the reputation points, will be used a lot on some of my communities... this system is a good enhancement!
MThornback
11-29-2005, 11:57 AM
Brilliant, this is HOTM material
*installs (and I DID click it this time Paul :p)
AshokForums.com
11-29-2005, 01:49 PM
even i clicked install.. Paul can u see the users who have installed ur plugin?
Paul M
11-29-2005, 02:02 PM
even i clicked install.. Paul can u see the users who have installed ur plugin?Yes, if they post in the hack, you can see if they have (or haven't, like nexialys & aftermath ;))
nexialys
11-29-2005, 02:06 PM
Yes, if they post in the hack, you can see if they have (or haven't, like nexialys & aftermath ;))yeah, as usual, i comment the hacks, but never click... so i receive no support, and i can't help on the stats...
i did not even click install on my own hacks, imagine, what a shame.. lol
if i find a bug i will tell!!
Paul M
11-29-2005, 02:13 PM
Brilliant, this is HOTM material I wish .....
Sadly I appear destined never to win a HOTM - and given that even if this qualified it would be up against two arcade hacks, I think it's rather unlikely to change that situation :)
Hexemer
11-29-2005, 04:26 PM
Very nice and useful :)
Lea Verou
11-29-2005, 05:55 PM
Useful hack Paul, although I think that a reputation that is member-based instead of post based would be better and members prefer it...
Why nobody has made something like that I can't understand :( :( :(
AshokForums.com
11-29-2005, 07:47 PM
I wish .....
Sadly I appear destined never to win a HOTM - and given that even if this qualified it would be up against two arcade hacks, I think it's rather unlikely to change that situation :)
Dont worry paul!! Your a master coder! Your hacks, mods whatever it is are brilliant!! I love u mate :)
Lea Verou
11-29-2005, 09:51 PM
I wish .....
Sadly I appear destined never to win a HOTM - and given that even if this qualified it would be up against two arcade hacks, I think it's rather unlikely to change that situation :)
don't worry mate! We all know that you are a brilliant coder and we need no HOTM to prove that!!
MThornback
11-30-2005, 11:21 AM
don't worry mate! We all know that you are a brilliant coder and we need no HOTM to prove that!!
I'm running into a little problem...the system seems to be working, but i'm getting a parse error when i actually give rep points:
Parse error: parse error, unexpected ';' in /../../forum/reputation.php(172) : eval()'d code on line 13
I looked at the plugin code and I didn't see it off the bat...any ideas?
Paul M
11-30-2005, 04:42 PM
Line 172 of reputation.php is a call to the reputation_add_process hook - which is not made by this hack - so I think your problem is elsewhere.
The Geek
11-30-2005, 04:50 PM
This looks sweet Paul. Think ill have to give this an install AND a thumbs up (now where did I put that thumb...)
rb290
12-01-2005, 04:38 AM
where is the options or settings for this ?
cant find it
and whats the proper coding you input to give rep
Paul M
12-01-2005, 07:16 AM
where is the options or settings for this ?
cant find itWith all the other reputation settings in the ACP.
and whats the proper coding you input to give repSorry, I don't understand the question.
rb290
12-01-2005, 07:25 AM
Sorry, I don't understand the question.
like in the postbit, how you can click to give someone rep points, you know ?
lazytown
12-01-2005, 01:10 PM
Very Nice & Needed Mod!
THanks! -vissa
lazytown
12-02-2005, 04:31 AM
If we "rebuild" the user reps, will these new scoring actions take affect on the rebuilt score? For example, will it give them extra rep for forums I've specified even on old posts (if rebuilt)? What about forums that are not supposed to have rep -- will those still count if rebuilt?
Thanks -vissa
lazytown
12-02-2005, 04:50 AM
It would be great if we could somehow have 3 or 4 different multiplier categories... (and have fractional multipliers -- maybe that's already possible).. So I can have some forums worth a lot more, some worth the normal amount, some worth less, and others 0.
-vissa
Paul M
12-02-2005, 04:58 AM
If we "rebuild" the user reps, will these new scoring actions take affect on the rebuilt score? For example, will it give them extra rep for forums I've specified even on old posts (if rebuilt)? What about forums that are not supposed to have rep -- will those still count if rebuilt?
Thanks -vissaI've not looked at the rebuild code, but I assume it processes all the scores stored in the reputation table - so it will rebuild them as per the points stored at the time the reputation was given.
Paul M
12-02-2005, 04:59 AM
and have fractional multipliers -- maybe that's already possibleYou can use any number, not just integers.
Hoffi
12-09-2005, 06:38 AM
A multiplier per Forum would be great. If you build that, it would be easier to handle big Forums.
A Forum that should not count, can be have a multiplier of zero, and any other the special. So are also more multipliers possible what would be a great benefit.
I'll test it... and I think I will use it.
Edit: I just tested it, and with a recalculation of the Reputation, the Settings takes no effekt. Thats Bad.
Paul M
12-09-2005, 07:02 AM
There are no plans to make this a per forum option, or infact, any other alterations to it.
Hoffi
12-09-2005, 10:36 AM
What about the recalculation of Reputation?
Paul M
12-09-2005, 04:06 PM
What about the recalculation of Reputation?Erm, I don't understand the question.
Borgs8472
12-13-2005, 10:00 PM
Hey paul, I installed just because I wanted to stop giving reputation in closed threads.
But I had to set
Closed Threads Limit
Posts in closed threads, that are older than this limit, cannot be given reputation. The value is in days - zero means unlimited.
to 0.000000000000001 !
Because I don't want people giving any reputation in closed threads!
Any chance you could have a 'never' option of some kind if you update? :)
Very minor thing, you had it defaulting to require a comment, I had to immediately turn that off, I suggest you default it to off.
Paul M
12-13-2005, 10:45 PM
But I had to set
to 0.000000000000001 !
Because I don't want people giving any reputation in closed threads!
Anything less than 0.00001 is a waste as that's about 1 second :)
Any chance you could have a 'never' option of some kind if you update? :)Nope, those that want to do this can do it as you have.
Very minor thing, you had it defaulting to require a comment, I had to immediately turn that off, I suggest you default it to off.Not a chance - I don't think anyone should give reputation to a post without a comment of some sort, even if it's just a smile or a thumbs up.
Borgs8472
12-14-2005, 12:18 AM
Anything less than 0.00001 is a waste as that's about 1 second :)
A second's too long :/
Not a chance - I don't think anyone should give reputation to a post without a comment of some sort, even if it's just a smile or a thumbs up.
Well that's a personal POV.
I use public display of affection, popular posts rack up lots of 'agrees' or 'disagrees' so with, some without comments. Anyhow...
I ended up having to uninstall this because some setting or other was stopping negative reputation comments show up in posts. This was possibly a conflict with the public display of affection hack I'm running.
Paul M
12-14-2005, 02:08 AM
I ended up having to uninstall this because some setting or other was stopping negative reputation comments show up in posts.If reputation has been given then this cannot stop that reputation showing up - it can only change the value (at the time the rep is given [or prevent it being given in the first place]).
Well that's a personal POV.
I use public display of affection, popular posts rack up lots of 'agrees' or 'disagrees' so with, some without comments. Anyhow...
That's fine, that's why there is the choice, and your choice is to turn it off, however - the default will remain as on. :)
Much appreciated, installed on 3.5.2 and all is well.
Smiry Kin's
12-17-2005, 05:32 PM
Nice release
dutchbb
12-17-2005, 08:12 PM
very very usefull plugin
thanks a lot
dutchbb
12-18-2005, 05:26 PM
Paul I have a question about this:
Higher Reputation Forum List
Any reputation given in the forums listed will be multiplied by the "Higher Reputation Multiply Factor".
Higher Reputation Multiply Factor
See above : Forums in the "Higher Reputation Forum List" will have any reputation given multiplied by this factor.
I want certain forums to have lower reputation value. Say I want those to have half the value of other forums.
Can I just set "Higher Reputation Multiply Factor " to 0.5 ?
If not, how hard would it be to include a 'Lower Reputation Forum List' / 'Lower Reputation Multiply Factor' ?
Paul M
12-18-2005, 07:16 PM
Can I just set "Higher Reputation Multiply Factor " to 0.5 ?
Yes, you can set any value.
HeRCuL70
12-20-2005, 02:31 PM
What about the recalculation of Reputation?
Yes, I have the same problem. If we want it must recalculate old reputation it should recalculate it after the installation.
I think you add this feature too, doesnt it? ;)
Paul M
12-20-2005, 07:54 PM
Nope.
Hastin
12-22-2005, 08:23 PM
Hey Paul,
I've got a question: Is there anyway to add to the plugins to make my Super Moderators also get the 'Admin' rep. amount? I want all of my Mods/Admins to have the same amount of power, and our users to have less power.
Zenith
01-24-2006, 07:34 AM
I just enabled rep on a forum I've had up for 4 or 5 years. Had a lot of clowns deliberately searching back through year old and older threads taking rep from people they don't like. This hack solved my problem. Thanks.
Hello
I downloaded it and installed it,
reppower that setting is bad becomes 0.
reppower is displayed commonly when I turn off plug in.
If there is a bad place, please teach it
ver3.5.3
Enable User Reputation system yes
Default Reputation 10
Number of Reputation Ratings to Display 50
Administrator's Reputation Power 10
Reputation Power Cap 5
Higher Reputation Forum List 2,3,4,5,6,8,9,10
Higher Reputation Multiply Factor 2
No Reputaion Forum List 12
Open Threads Limit 0
Closed Threads Limit 0
Negative Reputation Multiply Factor 0.5
Require Reputation Comment no
Register Date Factor 365
Post Count Factor 1
Reputation Point Factor 20
Minimum Post Count 1
Minimum Reputation Count 1
Daily Reputation Clicks Limit 10
Reputation User Spread 20
It is the first time that I use a plug in system.
Is other necessary besides this?
ps.
I am weak in English.
Please understand that it is hard to read.
sorry
:surprised:
Paul M
01-25-2006, 08:11 AM
Sorry, I don't follow what your problem is. Those settings all look fine.
Thank you for a reply.
I try to do my best by oneself a little more.
amadergaan
02-01-2006, 01:15 AM
This is an awesome plugin....Lately there have been too much abuse in my forum with URS...and i wanted to have some more options....this is just perfect...
thanks man!
sinaluna
02-08-2006, 04:09 AM
Hello
I downloaded it and installed it,
reppower that setting is bad becomes 0.
reppower is displayed commonly when I turn off plug in.
If there is a bad place, please teach it
I have the same problem. I am working in version 3.5.3 and have two boards. It works perfectly in one board. In the other board, the reputation power goes to zero.
I can only assume it has something to do with a different hack as that is the only difference in the two boards. I've not been able to find the exact problem yet.
Paul M
02-08-2006, 04:14 AM
Well if you want me to have a look, pm me a user with admin access.
sinaluna
02-14-2006, 06:17 PM
Thanks Paul, but this is not for my private board but a commercial one I admin, so I can't allow anyone else in. :(
I did find what was causing the error, though not a fix.
If I say NO to "Can Leave Negative Reputation" in the Usergroups, then the rep points go to zero. Change that to YES and everything works again.
I'd rather my users not give negative rep.
Any ideas?
sinaluna
02-14-2006, 08:45 PM
Paul,
I looked at the plugin code for "Reputation Checks (2)" and saw this line (line 12):
if (!($perms['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cannegativerep'])) $reppower = 0;
This looks like it says that if you cant give negative rep, set your rep power to ZERO. Which is exactly my problem. My guess is that if you moved check down to the end of the plugin, it would work as you wanted it to.
Maybe something like this:
// Negative Reputation //
if ($reputation != 'pos')
{
if (!($perms['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cannegativerep']))
{
$reppower = 0;
} else {
$reppower *= -1;
$reppower *= $vbulletin->options['negrepfactor'];
}
For now, commenting out the line I mentioned above fixes my problems. Thanks for the cool hack!
Paul M
02-14-2006, 10:30 PM
sinaluna - yes, you are right, that's a bug which I have fixed.
MythoLogy
02-15-2006, 08:59 PM
*clicks install - exactly what I needed for guild families.
BigTrucK72
02-28-2006, 06:15 PM
Does this hack give a user the ability to choose the number of points or is it a fixed total as dictated by admincp setting?
Paul M
02-28-2006, 06:57 PM
Sorry, I don't really understand what you are asking.
BigTrucK72
02-28-2006, 07:07 PM
Nevermind... doesn't look like there is an option for what I was asking...
On some forums the user can select how many points to give from a drop down menu up to the total rep points the user has earned. This way post scores can better reflect the content rather than some pre-determined number.
Edmund Tan
03-02-2006, 10:01 AM
Hi, where do I upload the XML doc to my admincp folder? Exactly which folder? I am using 3.5.3
Edmund Tan
03-02-2006, 10:08 AM
I wonder... Is it ignorance or stupidity? https://vborg.vbsupport.ru/external/2006/03/25.gif
(sorry mates, couldn't resist the temptation :p)
Sorry i really do not know. You want to laugh I cant stop you.
Lea Verou
03-02-2006, 10:13 AM
You don't upload it. You go to the plugin section in your admin control panel and import it, either as a product or as a plugin (I don't know if this is a plugin or a product as I don't use the modification, try both it does no harm). NO ftp involved.
Have a nice day. :)
Edmund Tan
03-02-2006, 10:18 AM
You don't upload it. You go to the plugin section in your admin control panel and import it, either as a product or as a plugin (I don't know if this is a plugin or a product as I don't use the modification, try both it does no harm). NO ftp involved.
Have a nice day. :)
thanks. btw, i can accept your comments for my pure ignorance for which i really am still learning. Plain stupidity? I do not need mockery comments from you.
Nathan2006
03-08-2006, 12:53 PM
Thank you these will come in useful :)
Install*
<clicks install>
just what I needed :-)
thanks for the hack
slank
03-28-2006, 02:44 PM
excellent idea...nice work
Dsyn11
03-30-2006, 11:48 PM
Installed! I posted a request, but maybe you can work with it:
I'd like to be able to have reputation POWER expire after X amount of time upon receiving it. This way people don't hoard them.
rareclownfish
04-03-2006, 02:35 AM
What if you are using one of the old hacks for this, will it have any effects on it?
rareclownfish
04-03-2006, 02:58 AM
installed thanks
masterross
04-06-2006, 08:41 AM
looks like very useful hack i'll try it right now!
zweefer
04-06-2006, 09:36 PM
Thanks, once again... This is one of several of your masterpieces that fit just what i need on my forum.
Please keep up the great work!
GoTTi
04-26-2006, 03:36 AM
i entered a forum id to disable the use of reps but i still see the rep icon in the post bit. any ideas?
GoTTi
04-26-2006, 03:37 AM
nevermind, id prefer the rep icon not be shown in the forum that i specify also. the icon shows but gives a error saying rep cant be left
Paul M
04-26-2006, 04:22 AM
nevermind, id prefer the rep icon not be shown in the forum that i specify also. the icon shows but gives a error saying rep cant be leftI'm afraid that's not the way this works - and will never happen with this hack. :)
PersianImmortal
06-06-2006, 12:40 PM
Great mod, very helpful thanks :)
I wonder if there's any way you could add the ability to specify different Reputation Quotas for each usergroup - in particular Moderators and Super Moderators.
That is, would it be possible to specify the total amount of Reputation points per day that members of a particular usergroup can have? At the moment VB only allows Admins to have a different Rep quota. I find that my moderators/super moderators need more than the default quota that all other users get (3 points on my forum).
FLMom
06-06-2006, 01:25 PM
Thank you so much for all of your hard work!
/me clicks install
Sculli
06-16-2006, 03:24 AM
Nice mod, thank you very much.
What would I need to change to only require a comment for negative feedback?
Milez
07-18-2006, 08:58 AM
I would love to install this but it is a bit limited in its current form for me. A quick suggestion:
Reputation Power Cap - Allow this to be different for different groups. This way an Admin or mod can have more Rep power than a normal user.
Also do you have plans to port this to vB3.6?
Paul M
07-18-2006, 04:59 PM
Also do you have plans to port this to vB3.6?Yes, but no functionality will be added.
lazytown
08-09-2006, 06:49 AM
Any idea on when we may see this for 3.6? This one is necessary for me to upgrade. Thanks for the great work!
-vissa
lazytown
08-15-2006, 01:55 AM
Paul mentioned to me via PM that this should work on 3.6 without modification (hope it's ok to repeat that). Has anyone tested it? I won't be upgrading to 3.6 until I am sure this will work.
thanks,
-vissa
Paul M
08-15-2006, 01:57 AM
/me has tested it (on his 3.6 test site) ......
Roxie
08-15-2006, 02:07 AM
It works fine on my site running 3.6 Gold. :)
Very usefull hack!!! Good Job!
Feature REQUEST .-) : - can you adopt changes so that users will get per Forum (groups) rep. points?
Example:
WEBDESIGN SITE FORUM will have these forums>
Photoshop Forums, Corel Forums, CSS Forums, PHP Forums .... so that we can specify which topic is user's best field of interest and profesionalism...
Paul M
09-26-2006, 06:50 PM
That sounds like a very specific change for you, not something the majority need.
Anyway, there are no changes planned to this (esp as it's a 3.5 mod). Atm there are not even any plans to upgrade it to 3.6 as this will work on 3.6 as is.
Antivirus
09-27-2006, 01:38 AM
Nice job Paul, it's great to see some added features for Reputation! In my opinion (along with User Notes), it's one of the often overlooked and features of vb. Nice to see an add-on for it.
That sounds like a very specific change for you, not something the majority need.
Anyway, there are no changes planned to this (esp as it's a 3.5 mod). Atm there are not even any plans to upgrade it to 3.6 as this will work on 3.6 as is.
I think chart with reputation given per forum would be usefull also for others. Your hack is very close to this. If you search vb.org there are some requests for this...
My community beg for it, but I am not a coder :-(
zylstra
10-09-2006, 05:21 PM
I want to show reputation links only for the forums in which reputation votes count, so I used the following code in the postbit template <if condition="$vboptions[noreplist]">
<else />
<if condition="$show['reputationlink']">
Rep Link
</if>
</if>
but it didn't work. Any ideas on how to implement this?
Paul M
10-09-2006, 07:19 PM
It's not as easy as that - you would need to add another plugin to the hack to check if the forum you are in allows reputation.
zylstra
10-09-2006, 08:01 PM
Thanks, Paul. I think I figured it out. I hooked// No Reputation Link //
$flist = explode(',',$vbulletin->options['noreplist']);
$show['ratablelink'] = (!in_array($threadinfo['forumid'],$flist)) ? true : false;into showthread_getinfo.
Then I put <if condition="$show['ratablelink']">
<if condition="$show['reputationlink']">
Rep Link
</if>
</if>
into the postbit template.
Paul M
10-09-2006, 08:48 PM
Excellent :cool:
imranbaig
10-27-2006, 04:13 PM
does this work with 3.62?
Paul M
10-27-2006, 06:43 PM
Look up a few posts ;)
Eagle Creek
10-30-2006, 09:08 AM
Is there a vB 3.6.x version for this one?
Paul M
10-30-2006, 11:03 AM
No, this works fine as is on 3.6
h2ojunkie
11-05-2006, 03:18 AM
If you want to continue to use the VB default of negative reputation counting only 1/2 as much as positive reputation, you need to change the Negative Reputation section of Reputation Checks (2) to the following:
// Negative Reputation //
if ($reputation != 'pos')
{
$reppower *= $vbulletin->options['negrepfactor'];
if ($reppower < 1 & $reppower > 0)
{
$reppower = 1;
}
$reppower *= -1;
if (!($perms['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cannegativerep'])) $reppower = 0;
}
I've only tested this on vb 3.6.2, so I'm not sure if it still applies for older versions
Paul M
11-05-2006, 09:45 AM
I see no reason to need to change it, please explain.
h2ojunkie
11-05-2006, 08:56 PM
If you set the reputation modification factor to 0.5 (vb default) so negative reputation only counts 1/2 has much as positive reputation.
Let's say a users rep power is 1.
Using your mod as it is, the following happens.
1st: reppower converted to a negative number (1 X -1) = -1 reppower
2nd: the negrepfactor is applied (-1 X 0.5) = -0.5 reppower
So now the system tries to apply a -0.5 to the users reputation. Except for some reason, when applying -0.5 to a users reputation, VB rounds it to zero, so no negative reputation is actually given. I couldn't find any code that was causing it to round to zero, but for some reason that's what happens. It appears that when it actually assigns the points to the users total reputation, it only factors in whole numbers, and does not round them. So a reppower of 5.5 for example, only applies 5 points to the users total reputation. Therefore a reppower of 0.5 only applies 0 points to the users reputation. What is weird, if you view the reputation comments in admin, you'll see it rounds 4.5 to a whole number and displays it as 5. But if you look at the users profile, you'll see that it rounded it down and only applied 4 points to the reputation.
So I took at look at the default negative rep code in functions_reputation.php to see how VB dealt with it by default (I'm writing this off the top of my head but I believe it went something like this):
$reppower = $reppower/2
if ($reppower < 1)
{
$reppower = 1;
}
$reppower *= -1;
So I took that and applied the same idea to your code except I added "greater than 0" condition because without it a person with a reppower of 0 would still be able to give negative rep to other members.
Paul M
11-05-2006, 09:20 PM
Thank you for the note, however, it works exactly as it was designed - there is/was no requirement for it to work exactly like default vbulletin - I won't be changing it. :cool:
If you set the factor to 0.5 then it will almost be the same, the two exceptions being (as you have found) if your positive rep power is 1, then your negative rep will be 0 (not -1). The other exception is already mentioned in the notes (fixed Admin rep power). I will add another note to point out this small difference. :)
Guest210212002
11-07-2006, 10:41 AM
That worked! Thank you very much as always bro. :) Much appreciated!
Phrost
12-03-2006, 08:13 PM
<if condition="$show['ratablelink']">
[/CODE]into the postbit template.
And if you wrap that conditional around the one that displays rep, you can limit showing reputation scores only in the forums in which it can be earned.
Paul M
12-11-2006, 11:58 PM
Is there a vB 3.6.x version for this one?There is now ;
https://vborg.vbsupport.ru/showthread.php?t=133775
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.