![]() |
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... |
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. |
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.
|
Quote:
My community beg for it, but I am not a coder :-( |
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
Code:
<if condition="$vboptions[noreplist]"> |
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.
|
Thanks, Paul. I think I figured it out. I hooked
Code:
// No Reputation Link // Then I put Code:
<if condition="$show['ratablelink']"> |
Excellent :cool:
|
does this work with 3.62?
|
Look up a few posts ;)
|
Is there a vB 3.6.x version for this one?
|
No, this works fine as is on 3.6
|
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:
Code:
// Negative Reputation // |
I see no reason to need to change it, please explain.
|
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): PHP Code:
|
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. :) |
That worked! Thank you very much as always bro. :) Much appreciated!
|
Quote:
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=133775 |
All times are GMT. The time now is 12:52 AM. |
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:
|