UBB.Dev
Posted By: Pyros Karma (warn/praise) Mod - 09/09/2000 9:22 PM
Lots of feautures in this mod. One to mention is that this will warn or praise users on their posts. Written by Leshrac, you can find more info on this hack in our database.
https://www.ubbdev.com/db/cgi/ubbcount.cgi?expath1=Forum8&expath2=&topic=000008&type=&number=8

------------------
Quality Pages designing the world professional web pages for affordable prices.
Posted By: Leshrac Re: Karma (warn/praise) Mod - 12/23/2000 2:47 AM
The new version is finally out!

New is this version are:
- Multiple warn/praise levels.
- Recording of warnings/praises in an admin/mod viewable "Karma history."
- Numerous bug fixes.
- Some other things that I just can't remember right now. [Linked Image]

Upgrading from a previous version is incredibly easy. All you need to do is replace the karma.pl file with the new version and make a couple small updates, noted in the readme file. Just look for the "*** Look here if you're upgrading! ***" lines to find the updates.

If you have any problems or suggestions for future updates, let me know. [Linked Image]

------------------
Leshrac
leshrac@magictraders.com
Founder, Owner - Magic Online Trading League (MOTL)
http://www.magictraders.com
MOTL Bulletin Board
Posted By: Deb Re: Karma (warn/praise) Mod - 12/23/2000 5:33 AM
GREAT! Thanks for letting us know Leshrac. I'm sure a lot of members will be VERY, very happy!! I can't wait to try it.... [Linked Image]

Cheers!
Posted By: WEAPON Re: Karma (warn/praise) Mod - 12/23/2000 6:02 AM
I'm glad you updated this hack. It's one of my favorites.

The only problem I'm having is the karma history values aren't appearing. I've warned a user multiple times and included a reason, but still...nothing appears accept "Issuer, Amount, & Reason"

Oh, and here's a suggestion for your next update (if there is one): Make it so that the reason why a person is warned or praised appears at the bottom of their "karmaed" message.

One last minor thing, on the Adjust Karma panel, it says "You must be an administrator or moderator of the Bad Trader Alerts forum." (Obviously specific code for your forums)

------------------
-Webmaster of Cheat City

This message has been edited by WEAPON on December 22, 2000 at 10:39 PM
Posted By: Greg Hard Re: Karma (warn/praise) Mod - 12/23/2000 6:50 AM
Nice job on this one! [Linked Image]

------------------

Modification Developer of the Ultimate Bulletin Board
Due to time limitation, I do not offer support Via. E-mail, ICQ or AIM. Please post on the forums.

Sincerely,
MasterMind
Posted By: PGZ Rick Re: Karma (warn/praise) Mod - 12/24/2000 3:41 AM
First of all, just wanted to say that I really like this hack. It really STOPS a lot of spammers from my forum. Also, I turned some trouble makers into helpers after I praised them for good things they have done. Thanks for the great hack.

A few things:

1) I can't find the latest version in the database (yet), can you provide the link here.

2) You were looking for a good picture to replace the lightning, how about

3) Someone suggested that it maybe cool to have a page to display the highest karma and lowest karma members, is this hard to incorporate.

4) In case anyone is interested, here is the thread to our karma rating discussion on our forum http://pgz.pgamers.com/ubb/Forum1/HTML/000059.html

P.S. Please take other hacks into consideration when you document the instructions.

------------------
Pokemon Gameboy Zone
PGZ Forum
Posted By: Greg Hard Re: Karma (warn/praise) Mod - 12/24/2000 3:43 AM
http://www.magictraders.com/ubb/karma.zip
That IS the new updated version.

------------------

Modification Developer of the Ultimate Bulletin Board
Due to time limitation, I do not offer support Via. E-mail, ICQ or AIM. Please post on the forums.

Sincerely,
MasterMind
Posted By: PGZ Rick Re: Karma (warn/praise) Mod - 12/24/2000 3:47 AM
Thanks. That was fast. Are you peaking over my shoulder or something? [Linked Image]

Anyway, Mastermind, I have a few questions about your hacks too, but I'll find the appropriate threads to post them on.

------------------
Pokemon Gameboy Zone
PGZ Forum
Posted By: Greg Hard Re: Karma (warn/praise) Mod - 12/24/2000 4:20 AM
Yea. Thanks.
If you have specific concerns about my hacks, you can e-mail me at [email protected]
DONT ASK FOR HELP!

------------------

Modification Developer of the Ultimate Bulletin Board
Due to time limitation, I do not offer support Via. E-mail, ICQ or AIM. Please post on the forums.

Sincerely,
MasterMind
Posted By: indoe Re: Karma (warn/praise) Mod - 12/24/2000 5:52 AM
What dose it do?<-------NEWBIT
Posted By: MorphStar Re: Karma (warn/praise) Mod - 12/24/2000 3:06 PM
I second rick's request,
about the highest and lowest listing.
What would be neat is a list of spammers (for example, everyone with -2 or lower) and a list of helpers (+5 or higher) .

anyway, great hack!

------------------
www.skinningworld.net
Posted By: WEAPON Re: Karma (warn/praise) Mod - 12/24/2000 7:04 PM
No one else is having a problem with the Karma History not displaying?

------------------
-Webmaster of Cheat City
Posted By: Fuzion Re: Karma (warn/praise) Mod - 12/24/2000 7:14 PM
Quote
quote:
No ones works.. well atleast mine doesnt either

------------------



Go to the Forums:
http://www.gamerzparadize.com/cgi/Ultimate.cgi
Posted By: Dark Templar Re: Karma (warn/praise) Mod - 12/24/2000 11:00 PM
One of these days I'll install this new version on my boards...so much to do, plus I'm real lazy [Linked Image].

------------------
Posted By: Metallifukinca Re: Karma (warn/praise) Mod - 12/25/2000 12:47 AM
Works great for me [Linked Image] Thanks

------------------
I Disappear ?
http://www.Metallifukinca.com
Posted By: DraGooN Re: Karma (warn/praise) Mod - 12/25/2000 2:13 AM
I'm having the same trouble with the History things as well. Is it a UBB version problem

This message has been edited by DraGooN on December 24, 2000 at 07:55 PM
Posted By: DraGooN Re: Karma (warn/praise) Mod - 12/25/2000 4:38 AM
Where does this new History Feature store its information. Does it write to a separate file. Just curious, asking some common questions to help figure out why its not showing the Karma History.

I've had the original hack installed for a long time and it worked great. I just upgraded to this one, everything still works ok except the History.

Thanks
Posted By: Eminem Re: Karma (warn/praise) Mod - 12/26/2000 6:13 PM
I installed the hack and it works perfectly fine.

The problem is that not too long ago I have installed Turbinator's hack with the custom title and custom icons, now when a person posts, instead of their personal icon and title this appears: 0:0 .

I really hate to get rid of any of those hacks, so doesn anyone know a way that I get to keep both hacks and it would work perfectly?

------------------
RPGone Forums
Posted By: Leshrac Re: Karma (warn/praise) Mod - 12/26/2000 7:13 PM
Oops, I forgot to include this:

You need to create a folder named "karma" in your Members directory and CHMOD it to 777 in order for the history feature to work.
Posted By: WEAPON Re: Karma (warn/praise) Mod - 12/26/2000 8:08 PM
stuff is being recorded in the karma directory but, it's still not displaying anything...

------------------
-Webmaster of Cheat City
Posted By: Eminem Re: Karma (warn/praise) Mod - 12/26/2000 9:01 PM
Quote
quote:

No help huh?


------------------
RPGone Forums
Posted By: WEAPON Re: Karma (warn/praise) Mod - 12/27/2000 4:15 AM
Eminem, change the karma hack value to the next available one. You can do that in the Karma Control Panel.

------------------
-Webmaster of Cheat City
Posted By: SpAwN Re: Karma (warn/praise) Mod - 12/27/2000 4:26 AM
Hi guys i dont have this hack yet.

But i made some image for it.

dark bg :
light bg :

------------------

Happy Holidays Everyone!!!
Posted By: DraGooN Re: Karma (warn/praise) Mod - 12/27/2000 9:11 AM
k, I created the "karma" directory and set permission. I'm getting the same results as WEAPON is, its login now, but not displaying...any other hints or information missed.

Thanks
Posted By: Ultra GrrL Re: Karma (warn/praise) Mod - 12/27/2000 12:37 PM
I just want to thank you for releasing such a supurb mod..... it rocks *hugs*
Posted By: Alien Re: Karma (warn/praise) Mod - 12/27/2000 10:33 PM
Leshrac: I'd like to see this done *also* without the modification of the handling of the profile fields. If you're interested in doing this for me personally, I'll make it worth your time.

(I don't mind if you release it as well).

------------------


Visit Alien Soup Forums
http://www.aliensoup.com/cgi-bin/forums/Ultimate.cgi
Posted By: SpAwN Re: Karma (warn/praise) Mod - 01/01/2001 6:56 AM
Code
quote:</font><HR><font face="Verdana, Arial" size="2">Originally posted by Alien:
Leshrac: I'd like to see this done *also* without the modification of the handling of the profile fields. If you're interested in doing this for me personally, I'll make it worth your time.

(I don't mind if you release it as well).

</font><HR></BLOCKQUOTE>

Same here Leshrac, i got to much profile vields and if i use that chunk of code, i get probly problems with it, i am talkin about theese 2.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:

Code
code:

Thanks...

------------------
Posted By: Alien Re: Karma (warn/praise) Mod - 01/01/2001 7:52 PM
Yes, I'd definatly like to use the old method myself.

While I do appreciate the way you set it up the new way though, I just can't get used to it. [Linked Image]

------------------


Visit Alien Soup Forums
http://www.aliensoup.com/cgi-bin/forums/Ultimate.cgi
Posted By: Jigga-Master Re: Karma (warn/praise) Mod - 01/01/2001 8:33 PM
yea me too soo much that would help sooo much

------------------
-= DFT =-
...................
I don mean dis in a disrespectful way//
But colombine happens in the ghetto happens every day//
Uncle L
Posted By: Leshrac Re: Karma (warn/praise) Mod - 01/06/2001 10:50 PM
It looks like you guys are running into some permission problems, so I've updated karma.pl to hopefully handle it. Just download the ZIP file again and upload the new karma.pl. Then, CHMOD all the files in your Members/karma directory to 777 (if you can, otherwise just delete them).

As for changing the profile writing method, it's actually a lot easier to install new profile fields with the new method than it is with the old one. If there are people willing to read it, I'll write up some instructions on how the new method works and how to convert hacks that use the old one.
Posted By: WEAPON Re: Karma (warn/praise) Mod - 01/07/2001 1:02 AM
I'm still not getting any karma history, Leshrac.

------------------
-Webmaster of Cheat City
Posted By: Leshrac Re: Karma (warn/praise) Mod - 01/08/2001 1:52 AM
It looks like one of the new GetUserNumber speed-ups is causing problems with this due to a lack of proper variable declaration. I'd recommend either using my original GetUserNumber speedup (which is faster anyway if you're using Memberlist), or changing your GetUserNumber subroutine so that it declares $ProfileNumber as a local variable.

------------------
Leshrac
leshrac@magictraders.com
Founder, Owner - Magic Online Trading League (MOTL)
http://www.magictraders.com
MOTL Bulletin Board
Posted By: DJLunacy Re: Karma (warn/praise) Mod - 01/10/2001 5:32 PM
can you post the url for the new way of the profile field additions?

------------------
Peace Out,
DJLunacy
www.mp3.com/voi
Posted By: cRackY Re: Karma (warn/praise) Mod - 01/13/2001 2:36 PM
hi leshrac!

first: your hack is really great :-)

i really love this hack so i translated it to german!

i had already a karma hack and translated the new one also, but i downloadet the new one @ first of januar, so i dont have the bugfix included.

could you please let me know what you changed in your new karma.pl?

if you're interested you can have the GERMAN version of your hack (just the hack, not the instructions, i think everyone can read englisch [Linked Image]) to release it!

for sure i'll translate further versions of your hack to if needed.

feel free 2 contact me: [email protected]
and please post your updates :-) thx

greets, cRackY
Posted By: Hawaiibullrider Re: Karma (warn/praise) Mod - 01/24/2001 7:21 PM
Is that profile field info avail yet? just wondering what I should do with the extra profile fields I got >14 help please. Thanks.
specifically this line of code:
# Karma Hack
$theprofile[4] = "$PermissionLine";
$theprofile[8] = "$UserStatus";
if (($maxmemfields > 14) && ($#thisprofile > $maxmemfields)) { $#thisprofile = $maxmemfields; }
foreach $foo (@theprofile) {
chomp($foo);
print MEMBERSHIP "$foon";
}



------------------
http://gmncomputers.dyndns.org/ubbcgi/Ultimate.cgi?
Posted By: Leshrac Re: Karma (warn/praise) Mod - 01/25/2001 1:31 AM
From the readme file:

Then find:

------------------------------
print MEMBERSHIP ("$theprofile[0]n");
print MEMBERSHIP ("$theprofile[1]n");
print MEMBERSHIP ("$theprofile[2]n");
print MEMBERSHIP ("$theprofile[3]n");
print MEMBERSHIP ("$PermissionLinen");
print MEMBERSHIP ("$theprofile[5]n");
print MEMBERSHIP ("$theprofile[6]n");
print MEMBERSHIP ("$theprofile[7]n");
print MEMBERSHIP ("$UserStatusn");
print MEMBERSHIP ("$theprofile[9]n");
print MEMBERSHIP ("$theprofile[10]n");
print MEMBERSHIP ("$theprofile[11]n");
print MEMBERSHIP ("$theprofile[12]n");
print MEMBERSHIP ("$theprofile[13]n");
print MEMBERSHIP ("$theprofile[14]n");
------------------------------

REPLACE that entire code block, INCLUDING ANY SIMILAR LINES ADDED FROM HACKS, with:

------------------------------
# Karma Hack
$theprofile[4] = "$PermissionLine";
$theprofile[8] = "$UserStatus";
if (($maxmemfields > 14) && ($#thisprofile > $maxmemfields)) { $#thisprofile = $maxmemfields; }
foreach $foo (@theprofile) {
chomp($foo);
print MEMBERSHIP "$foon";
}
------------------------------

*Also*

Then find:

------------------------------
print MEMBERSHIP ("$profileinfo[0]n");
print MEMBERSHIP ("$Passwordn");
print MEMBERSHIP ("$Emailn");
print MEMBERSHIP ("$URLn");
print MEMBERSHIP ("$Permissionsn");
print MEMBERSHIP ("$Occupationn");
print MEMBERSHIP ("$Locationn");
print MEMBERSHIP ("$TotalPostsn");
print MEMBERSHIP ("$Statusn");
print MEMBERSHIP ("$Interestsn");
print MEMBERSHIP ("$DateRegisteredn");
print MEMBERSHIP ("$in{'EmailView'}n");
print MEMBERSHIP ("$Signaturen");
print MEMBERSHIP ("$in{'ICQnum'}n");
print MEMBERSHIP ("$in{'AllowMassMail'}n");
------------------------------
(IMPORTANT: You may have additional lines here if you have hacks installed that have added fields to your profile. Take careful note of them when you make the following modification.)

REPLACE this with:

------------------------------
# Karma Hack
$profileinfo[1] = "$Password";
$profileinfo[2] = "$Email";
$profileinfo[3] = "$URL";
$profileinfo[4] = "$Permissions";
$profileinfo[5] = "$Occupation";
$profileinfo[6] = "$Location";
$profileinfo[7] = "$TotalPosts";
$profileinfo[8] = "$Status";
$profileinfo[9] = "$Interests";
$profileinfo[10] = "$DateRegistered";
$profileinfo[11] = "$in{'EmailView'}";
$profileinfo[12] = "$Signature";
$profileinfo[13] = "$in{'ICQnum'}";
$profileinfo[14] = "$in{'AllowMassMail'}";
$profileinfo[$KProLoc] = "$Karma:$LastKPosts";
if (($maxmemfields > 14) && ($#thisprofile > $maxmemfields)) { $#thisprofile = $maxmemfields; }
foreach $foo (@profileinfo) {
chomp($foo);
print MEMBERSHIP "$foon";
}
-----------------------------
IMPORTANT: If you have additional fields in your profile, you should include them into the code above. You can do so by using the following format:
-----------------------------
$profileinfo[location of the field goes here] = "Variable that would normally be printed goes here";
-----------------------------
Create an additional line for each additional field you have. Place these extra lines directly BELOW the following:
-----------------------------
$profileinfo[$KProLoc] = "$Karma:$LastKPosts";
-----------------------------

Please read the last part carefully, it explains everything you need to do to add extra profile fields used by other hacks.
Posted By: Matthew Re: Karma (warn/praise) Mod - 01/25/2001 11:55 PM
Did anyone get anywhere on the problem with the history not showing up? I have the same problem and it isn't related to permissions, as far as I can tell. I've checked all of that kind of stuff a hundred times.
Posted By: Matthew Re: Karma (warn/praise) Mod - 01/26/2001 3:09 AM
Ok, everyone. I've sorta figured out the "history not showing up" problem. Keep in mind, I'm a big time Perl amateur, so I'd be pleased if someone wants to explain this more clearly or verify my findings.

I traced everything back through karma.pl to the sub karmaMsg and did various kinds of troubleshooting to see what was working and what wasn't. The karma profiles were writing fine and the code to print the history was working fine, too. The problem seemed to be where the karma profile file opens and then loads into the array. I focused my attention on this bit of code:

open (MESSAGES, "$MembersPath/karma/$ProfileNumber.cgi");
@kMessages = ;
close (MESSAGES);


I subsituted the expression

open (MESSAGES, "$MembersPath/karma/$ProfileNumber.cgi");

for the direct path of a profile file I knew existed, like this:

open (MESSAGES, "/usr/otd/cgi-bin/ubb/Members/karma/00000003.cgi");

Sure as heck, it worked. My history was reading fine. I worked backwards and replaced the absolute path with $MembersPath/karma/ again and it continued to work, thus showing that the problem was with the variable $ProfileNumber. I assumed that $ProfileNumber is being reset to some other value in between loading the profile number at the beginning of the routine and where it is being used to load the karma profile from the Members/karma directory. I pinpointed the problem to this expression:

$PN = &GetUserNumber($UserName);

This expression finds the user number of YOU, the person looking up the karma, which is later used to make sure you're authorized. It calls sub GetUserNumber, which is located in ubb_libary.pl. During this routine, $ProfileNumber is set to YOUR user number and stays that value upon return to sub karmaMsg in karma.pl. So, in my case, with the history was trying to read from MY profile file that didn't exist because I *had* no karma adjustments, therefore no history was being displayed.

My fix:
I changed $ProfileNumber to $ProfileNumber2 everywhere in sub karmaMsg, in karma.pl. There are four instances of it.
It now seems to work reliably.

Good luck!

This message has been edited by Matthew on January 25, 2001 at 07:13 PM
Posted By: Leshrac Re: Karma (warn/praise) Mod - 01/26/2001 3:32 AM
I solved this problem two weeks ago:

Quote
quote:
Posted By: CARTOON Re: Karma (warn/praise) Mod - 01/27/2001 2:52 AM
For this line??


$profileinfo[$KProLoc] = "$Karma:$LastKPosts";
if (($maxmemfields > 14) && ($#thisprofile > $maxmemfields)) { $#thisprofile = $maxmemfields; }
foreach $foo (@profileinfo) {
chomp($foo);
print MEMBERSHIP "$foon";
}

******************************
If we got more profile fields than 14, say in ubb_library.pl it says maxmemfields 20. Would we keep the 2 or three chunks of codes that look like the one above to maxmemfields 14 or change the 14 to fit our current number of member fields???

Also you say the Karma History problem is fixed, has it been updated in the hack link??

By chance what would I add if I wanted members Karma to be displayed in a Author Extra field... Like under post, from, registered.. Say like on the bottom, or even by the IP ICON, if I wanted everyones karma level to be viewable, where would I do so??? I think this is a briliant hack.. If I can get it to work as needed...

Thanks!
Posted By: kaost Re: Karma (warn/praise) Mod - 01/27/2001 3:03 AM
yo C" ((Cartoon)) I got the Karma Hack to work for UC.com maybe I can help you out a lil' bit just holla... But now in return dawg I need that news event hack where the **** do I find it? The karma hack took me a while to figure out... I just installed it but still the HISTORY problem hasn'r been fixed I get the cgi page fine just doesnt show recent or in fact warned people... Phewwwww.. I thought I installed it wrong guess not.... Let me know about the fixed history...
Posted By: CarToyz Re: Karma (warn/praise) Mod - 01/27/2001 4:29 AM
CARTOON I did exactly what you requested and this is how I did it. - It will add a Karma : (rating ) in the area under the MemberName.

Find This in ubb_library2 :

($Karma, $LastKPosts) = split(/:/, $thisprofile[$KProLoc]);
$Karma += 0; $LastKPosts += 0;

Under that add this :

if (($ThisStatus ne "Administrator") && ($ThisStatus ne "Moderator")) {
$MyKarma = qq(
Karma: $Karma);
} else {
$MyKarma = "";
}

Then a few lines down find this :

$AuthorExtra = qq(

You should have three lines starting that way.

Add right after the $RegDate in two of them with $MyKarma so the end of the line should look like this :

Registered: $RegDate $MyKarma);

Do not add this to the last one that looks like this :

$AuthorExtra = " ";

But add the $MyKarma to the other two.

That is what I did and it works perfectly. You can see it at my UBB site.

http://www.cartoyz.net/cwl/cgi/Ultimate.cgi?action=intro

Hope it works for you.......

------------------
James "CarToyz" Mitchell
CWL Creator & WebMaster
CyberSpace Wrestling League
Where the eXtreme RPers come to play !!
Posted By: CARTOON Re: Karma (warn/praise) Mod - 02/04/2001 9:38 AM
Thanks to that last guy, it works great.. Only problem is the Karma History. I had it working, but than we uploaded 2300 members and now it does what it used to.. No issuer, reason or warn level giving. It stores the info in karma directory, it properly shows everyones karma rating next to the My Karma I added in ubb_library2.pl.

It's just the karma history, anyone got a sure fix for the history yet??
Posted By: Hawaiibullrider Re: Karma (warn/praise) Mod - 02/08/2001 1:37 AM
I had no problems with the history thing on mine. I am using v5.47d. As far as the profile fields remove all the original print lines do not keep any of them behind. Leshracs code adds them automatically. It kinda "searches" for more than 14. The only thing you got to do with the profile fields is add them to the 2 parts of the code like this:

IMPORTANT: If you have additional fields in your profile, you should include them into the code above. You can do so by using the following format:
-----------------------------
$profileinfo[location of the field goes here] = "Variable that would normally be printed goes here";
-----------------------------
Create an additional line for each additional field you have. Place these extra lines directly BELOW the following:
-----------------------------
$profileinfo[$KProLoc] = "$Karma:$LastKPosts";
Posted By: UltraNEO* Re: Karma (warn/praise) Mod - 03/16/2001 10:02 AM
Hey, many thanks... mod not install yet but, it should be when you visit. laugh laugh laugh

Posted By: PGZ Rick Re: Karma (warn/praise) Mod - 04/23/2001 5:26 AM
I just downloaded the newest? version of the karma.zip and install it. Everything seems to work except for the karma history. Do I need to make the modifications of the valuable like that other guy mentioned? or is this supposed to be fixed? (the local valuable issue).
Posted By: Andrew Pakula Re: Karma (warn/praise) Mod - 08/09/2001 2:53 AM
to fix the history problem just go to Matthew's post on the previous page and it explains how to fix it.

i did his fix and it worked.
Posted By: Andrew Pakula Re: Karma (warn/praise) Mod - 08/09/2001 3:08 AM
Is there any way to change it so anybody can leave Karma instead of just admins and moderators?

If someone could help me out I would really appreciate it.
© UBB.Developers