Customizing SMF > SMF Coding Discussion
Setting a Needed Amount of Karma to Give Karma
(1/1)
iBoredom_:
On 1.x I was able to do this, but on 2.0 I am unable.
I am wanting to change it from needed a certain amount of posts to needing a certain amount of karma before being allowed to give karma.
On 1.x I was able to do:
--- Code: ---if ($user_karma_good < $modSettings['karmaMinPosts'])
fatal_error('Sorry, you don\'t have enough reputation to modify other\'s rep points - you need at least ' . $modSettings['karmaMinPosts'] . '.');
--- End code ---
something along those lines in Karma.php
In 2.0, I am unsure of what to do, as that does not work. My SMF version is 2.0.2.
Thanks to anyone who can help.
iBoredom_:
I'm still trying to figure this out.
Navigation
[0] Message Index
Go to full version