Welcome, Guest. Please Login or Register.
June 08, 2024, 08:14:04 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  post based groups based on karma « previous next »
Pages: [1] Reply Ignore Print
Author Topic: post based groups based on karma  (Read 1478 times)
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
post based groups based on karma
« on: November 25, 2003, 04:24:28 AM »
Reply with quote

Hey all.

I'm dinking around in load.php, trying to make the post based groups based on karma total instead.  Has anyone tried to do something like this?
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Ayeka
Jr. Member
**
Posts: 80


Good & Evil, there is never one without the other.

WWW
Re:post based groups based on karma
« Reply #1 on: November 25, 2003, 01:53:03 PM »
Reply with quote

try this:

Search for:

/* create the memberinfo and memberstars entries */
   if ($userprofile[$user]['posts'] > $GodPostNum)


replace with this:

/* create the memberinfo and memberstars entries */
   if (($userprofile[$user]['karmaGood'] - $userprofile[$user]['karmaBad']) > $GodPostNum)


Do this for each membergroup.
This assumes that you have changed your 'post numbers' to the amount of Karma you want instead.  Otherwise simply replace $GodPostNum with the number you want.
Logged

--Ayeka
Master of the purple!
HAHAhahahahahaha!
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:post based groups based on karma
« Reply #2 on: November 25, 2003, 02:37:11 PM »
Reply with quote

Yeah, that's exactly what I did.. and it works!  The only problem is that now there is an error when I try to modify profiles.  I did this thing last night and didn't bother to mess with it further, but I'm going to go digging in profile.php now.  There is probably a couple things I need to change.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:post based groups based on karma
« Reply #3 on: November 25, 2003, 02:43:42 PM »
Reply with quote

Nevermind.. apparently the error is due to a misconfiguration of my own computer, since this only happens on my test board (a clean install) and not once I upload the changed Load.php.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
sunpetch
Noobie
*
Posts: 7


I'm a llama!

Re:post based groups based on karma
« Reply #4 on: November 25, 2003, 05:50:16 PM »
Reply with quote

what is karma can do ??? I saw this option..but didn;t use..because don;t know what is it..T_T
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:post based groups based on karma
« Reply #5 on: November 25, 2003, 07:08:49 PM »
Reply with quote

I added more groups and made the amount of karma for these groups changeable in modsettings..  I increased it to ten different titles based on karma.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:post based groups based on karma
« Reply #6 on: November 28, 2003, 05:28:33 PM »
Reply with quote

Now.. I'm trying to make it so people with higher karma can effect other people's karma more greatly.  I can't seem to get it to work properly.  I have it coded so someone with karma over 50 should give or take 2 points every time they modify someone's karma..  but it still remains at 1.

Any ideas?
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:post based groups based on karma
« Reply #7 on: November 28, 2003, 05:31:39 PM »
Reply with quote

Hrm.. I think I know what the problem is.  Looks like I messed up.  I have to test it to make sure it is doing this, but I suspect if the target has karma over 50, then his/her karma will be modified by 2 points whenever anyone applauds or smites them.

Oops.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  post based groups based on karma « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.013 seconds with 16 queries.