https://www.icyphoenix.com/viewtopic.php?f=28&t=6479&p=44526#p44526
-----------------------------------
Lopalong
Sun 20 Sep, 2009 11:54

Re: [MOD IPv1.3.0.*] User Reputation System
-----------------------------------
The trials and tribulations of trying to get this stuff working with so many changes from v27 is going to wear me down - - - - - One Day!  :mryellow: 

And Mmmm! Yep, there's no such table as PRIVMSGS_TEXT_TABLE :(

Find in functions_reputation.php

[code linenumbers=false]	$privmsg_message = sprintf($lang['PM_notify_text'], $rep_sum);
	$sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text)
		VALUES ($next_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')";
	if ( !$db->sql_query($sql, END_TRANSACTION) )
	{
		message_die(GENERAL_ERROR, "Could not insert/update private message sent text.", "", __LINE__, __FILE__, $sql_info);
	}

[/code]
Replace with this, and could you let me know if PM's are being received etc.

[code linenumbers=false]	$privmsg_message = sprintf($lang['PM_notify_text'], $rep_sum);
	$sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_id, privmsgs_bbcode_uid, privmsgs_text)
		VALUES ($next_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')";
[/code]

I've killed the message_die, else the error message would still be coming up even though I can verify that the info is going into the Db. :(
I also think it may be $bbcode_uid that is an unknown quantity here and I'll have to figure out how MG replaces this. ;)


Oh! And re the "Karma" MOD for ipv27 - With the permission of The KuKa to take over his work - - - - I've done that too! And fixed it up some. :P

It's not as heavy as the Rep mod, but may suit those who want something lighter.  :twisted:

[b]Edit:[/b]

[b]EEEEEK[/b] I don't know if the "Enable Email" is a good option or not and whether it should in fact be removed from the script and the ACP options - - - - Why? 100 people x 5 reps = 500 probably really unnecessary db entries in the PRIVMSGS_TABLE! That's why!
 :censored:


