B
Bustra
Гость
добавь в ланг $lang['Zero_reputation '] = "че то тут";
Notice: Undefined index: user_reputation in /home/maxtrack/public_html/viewtopic.php on line 944 Fatal error: Call to undefined function append_sid() in /home/maxtrack/public_html/viewtopic.php on line 965 что за фигня?
ZEvS, функцию выпилили, а первое запрос не проходит, добавь его.
//
// This function will send the PM to the user $user_2id
// (заимствовано из privmsg.php)
//
function r_send_pm(&$user_id, &$user_2id, &$rep_sum, &$user_ip)
{
global $lang;
$msg_time = time();
$timenow = TIMENOW;
$privmsg_sent_id = $l_box_name = $to_username = $privmsg_subject = $privmsg_message = $error_msg = '';
$privmsg_sent_id = DB()->sql_nextid();
$sql = "INSERT INTO " . BB_PRIVMSGS_TEXT . " (privmsgs_text_id, privmsgs_text)
VALUES ($next_id, '" . str_replace("\'", "''", $privmsg_message) . "')";
if ( !DB()->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not insert/update private message sent text.", "", __LINE__, __FILE__, $sql_info);
}
//
// Add to the users new pm counter
//
$sql = "UPDATE " .BB_USERS . "
SET user_new_privmsg = user_new_privmsg + 1, user_last_privmsg = " . $msg_time . "
WHERE user_id = " . $user_2id;
if ( !$status = DB()->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update private message new/read status for user', '', __LINE__, __FILE__, $sql);
}
return;
$privmsg_sent_id = DB()->sql_nextid();
$sql = "INSERT INTO " . BB_PRIVMSGS_TEXT . " (privmsgs_text_id, privmsgs_text)
VALUES ($privmsg_sent_id, '" . str_replace("\'", "''", $privmsg_message) . "')";
if ( !DB()->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not insert/update private message sent text.", "", __LINE__, __FILE__, $sql_info);
}
//
// Add to the users new pm counter
//
$sql = "UPDATE " .BB_USERS . "
SET user_new_privmsg = user_new_privmsg + 1, user_last_privmsg = $timenow,
user_newest_pm_id = $privmsg_sent_id
WHERE user_id = " . $user_2id;
if ( !$status = DB()->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update private message new/read status for user', '', __LINE__, __FILE__, $sql);
}
return;
, u.user_reputation
u.user_opt