![]() |
Default Rep Power 10 at Registration
How can I make the default rep power 10 for every user when they register? And how can I make it 10 for the people who already registered on my board??
I know a site that did this, so don't tell me it's impossible. When someone registers, they start with 10 rep power. How is this possible? |
Well, it looks like rep power is calculated by starting with 1 and adding on to it for # of posts, days registerd, and reputation. So if you wanted to start with 10 instead of 1 you could make a plugin using hook reputation_power and this:
Code:
if ($reppower != 0) The check for 0 is because $reppower is set to 0 in certain cases (like they haven't met the minimum # of posts yet). As for setting it for people already on your board, they're still going to have theirs calculated as mentioned above, they'll just get 9 more on top of that. I'm not sure if that's what you want to do, especially if you allow negative reputation. |
Ooo! Thank you!! That worked :D
I do not allow Neg Reputation. It was a real pain trying to balance rep when ppl started at 1 rep power and you dont get another "rep pip" until like, 50 or whatever I have it set to. |
Quote:
|
Quote:
|
All times are GMT. The time now is 03:56 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:
|