From: Roland Häder Date: Sun, 22 Nov 2009 08:19:01 +0000 (+0000) Subject: Fixes for refback mail X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d58652d20f6a315362f554b84b408adb59182821;p=mailer.git Fixes for refback mail --- diff --git a/inc/libs/refback_functions.php b/inc/libs/refback_functions.php index cdf60a9fff..733314735d 100644 --- a/inc/libs/refback_functions.php +++ b/inc/libs/refback_functions.php @@ -328,7 +328,7 @@ function getArrayFromUserRefbackData ($id) { $id = bigintval($id); // Get entry from database - $result = SQL_QUERY_ESC("SELECT `id`, `refid`, `refback`, `level` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `id`=%s AND `userid`=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `id`, `userid`, `refid`, `refback`, `level`, `points` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `id`=%s AND `userid`=%s LIMIT 1", array($id, getMemberId()), __FUNCTION__, __LINE__); // Is there an entry? @@ -394,11 +394,12 @@ function updateMemberRefbackPercents ($id, $percents) { $content = array( 'percents' => translateComma($percents), 'refid' => $dummy['refid'], - 'level' => $dummy['level'] + 'level' => $dummy['level'], + 'points' => translateComma($dummy['points']), ); // Load member email template - $mail = loadEmailTemplate('member_refback', $content, getMemberId()); + $mail = loadEmailTemplate('member_refback', $content, $dummy['refid']); // Send email to user sendEmail($dummy['refid'], getMessage('MEMBER_REFBACK_SUBJECT'), $mail); diff --git a/templates/de/emails/member/member_refback.tpl b/templates/de/emails/member/member_refback.tpl index e393a0a7d8..06da7bff2c 100644 --- a/templates/de/emails/member/member_refback.tpl +++ b/templates/de/emails/member/member_refback.tpl @@ -1,6 +1,6 @@ Hallo {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}, -Das Mitglied $userid hat Ihnen soeben Ref-Back eingestellt. Sie erhalten also anteilig {?POINTS?} von seinen Referal-Gutschriften die Sie ihm/ihr bringen ebenfalls gutgeschrieben. +Das Mitglied $content[refid] hat Ihnen soeben $content[percents]% Ref-Back eingestellt. Sie erhalten also anteilig {?POINTS?} von seinen Referal-Gutschriften die Sie ihm/ihr bringen ebenfalls gutgeschrieben. ------------------------------ Ihr Mitglieder-Id ist: $userid @@ -8,6 +8,8 @@ Ihr Mitglieder-Id ist: $userid Ref-Back: $content[percents]% ------------------------------ +Sie haben bereits $content[points] {?POINTS?} Ref-Back-Vergütung an das Mitglied abgegeben. + Mit freundlichen Grüßen, Ihr {?MAIN_TITLE?} Team