From d58652d20f6a315362f554b84b408adb59182821 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 22 Nov 2009 08:19:01 +0000 Subject: [PATCH] Fixes for refback mail --- inc/libs/refback_functions.php | 7 ++++--- templates/de/emails/member/member_refback.tpl | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) 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 -- 2.39.5