Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2013, 01:43:31 am

Login with username, password and session length
Members
Total Members: 10766
Latest: Heater Sajid
Stats
Total Posts: 32387
Total Topics: 5479
Online Today: 48
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 49
Total: 49
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: KARMA Badge  (Read 703 times)
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« on: August 09, 2012, 01:49:07 pm »

My users are getting the karma badge automatically when they first sign in.  I am guessing this is because I use the advanced reputation mod that starts everyone with 100 karma points.  I'd like to set that limit from 0 to 101 so they get the badge when someone gives them karma rather than up front...

I found this line:

Code:
if ($memberContext[$memberID]['karma']['good'] != 0 && !in_array($badgeAction,$currentBadges))

Would I be correct in assuming I could change that 0 to 101 to accomplish what I am looking to do?

Thanks!
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #1 on: August 10, 2012, 03:04:41 pm »

Oh... and to be clear... the advanced rep mod does use the "stock" karma string... but like I said,  I have it starting folks with 100 karma to begin with.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« Reply #2 on: August 10, 2012, 03:23:40 pm »

I would change != 0 to > 100
I think that would work.
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #3 on: August 10, 2012, 04:29:05 pm »

Yeah... that works... sort of.  Unfortunately the Advanced Rep System also gives karma for posting... so as soon as I posted while testing my karma went to 102 from 100 and... welp,  I got the karma badge.

Bummer... maybe I will just change it to 200 and in the description change it to "Recipient of this badge has earned 200 Karma Points or more" or something generic...
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 22, 2013, 10:03:30 pm]

[May 22, 2013, 03:00:09 pm]

[May 22, 2013, 03:03:31 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.343 seconds with 21 queries.